# Plugin File Upload

**URL:** <https://developer.sailpoint.com/discuss/t/plugin-file-upload/3802>\
**Category:** IIQ Discussion and Questions\
**Created:** [April 12, 2022, 6:22pm UTC](https://developer.sailpoint.com/discuss/t/plugin-file-upload/3802 "2022-04-12T18:22:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![GiuseppeA](https://avatars.discourse-cdn.com/v4/letter/g/e68b1a/32.png) [@GiuseppeA](https://developer.sailpoint.com/discuss/u/GiuseppeA)\
**Post date:** [April 12, 2022, 6:22pm UTC](https://developer.sailpoint.com/discuss/t/plugin-file-upload/3802/1 "2022-04-12T18:22:37Z")

</div>

Hi all,

I’m currently developing a custom plugin in order to upload some excel files and parse them to create structures on IIQ.  
I’ve managed to successfully upload a file using .zip, but I keep getting the error “ClassNotFoundException” on a class imported by an external library (i.e. org.apache.poi.ss.usermodel.Row).

I’ve tested the code locally and it works, I suspect it may have something to do with dependencies/jars.

Do you know what I’m missing here?  
Do I need some ad hoc change on the build.xml file in order to correctly import external libraries?

Thank you.

---

<div class="post-metadata">

**Author:** ![mwoi](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@mwoi](https://developer.sailpoint.com/discuss/u/mwoi)\
**Post date:** [June 20, 2022, 8:43am UTC](https://developer.sailpoint.com/discuss/t/plugin-file-upload/3802/2 "2022-06-20T08:43:28Z")

</div>

Hi Guiseppe,  
did you found a solution already? If not it would be a starting point to check if you need to add an external library into the restResources entry within the manifest file. We were facing some issues as well and it was necessary to add e.g.

```auto
             <entry key="restResources">
                <value>
                    <List>
                        <String>org.glassfish.jersey.media.multipart.MultiPartFeature</String>
                    </List>
                </value>
            </entry>

```

to get our feature working.

---

<div class="post-metadata">

**Author:** ![mikechung](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/mikechung/32/36607_2.png) [@mikechung](https://developer.sailpoint.com/discuss/u/mikechung)\
**Post date:** [August 22, 2022, 7:47am UTC](https://developer.sailpoint.com/discuss/t/plugin-file-upload/3802/3 "2022-08-22T07:47:42Z")

</div>

Hello,

I am guessing you are trying to using the poi library for Excel generation within the plugin.  
By default IIQ doesnt have poi libraries within the package, have you include them in the plugin lib/ ?  
Additionally, you might need to double check the poi jar version you are using, as I recalled with 5+ version, there are additionally dependencies needed to be take care (and those dependencies may not included in the OOTB IIQ package)

---

<div class="post-metadata">

**Author:** ![kcwong\_igsl](https://avatars.discourse-cdn.com/v4/letter/k/e8c25b/32.png) [@kcwong\_igsl](https://developer.sailpoint.com/discuss/u/kcwong_igsl)\
**Post date:** [August 25, 2022, 6:19am UTC](https://developer.sailpoint.com/discuss/t/plugin-file-upload/3802/4 "2022-08-25T06:19:45Z")

</div>

This question is why I’d rather use Maven to build my IdentityIQ plugins, then SSB/Ant. Gotta have that dependency handling.

---

<div class="post-metadata">

**Author:** ![christian\_cairney](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@christian\_cairney](https://developer.sailpoint.com/discuss/u/christian_cairney)\
**Post date:** [August 25, 2022, 6:47am UTC](https://developer.sailpoint.com/discuss/t/plugin-file-upload/3802/5 "2022-08-25T06:47:22Z")

</div>

In the examples we use ANT, not the SSB, thats a different set of build scripts.

There is nothing stopping you use Maven if you wish, and I understand the dependancy handling. Personally I like Gradle but have used Maven as well in the past to build Plugins.

The Plugin package is essentially a ZIP file with an expected folder structure to store the artefacts in. I would say the only trick needed is at the compile stage as you would need to reference IdentityIQ libs, which are not available from the internet but is doable.

---

<div class="post-metadata">

**Author:** ![rajuskey](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@rajuskey](https://developer.sailpoint.com/discuss/u/rajuskey)\
**Post date:** [September 27, 2022, 11:00pm UTC](https://developer.sailpoint.com/discuss/t/plugin-file-upload/3802/6 "2022-09-27T23:00:48Z")

</div>

Hi @GiuseppeA

Would you be able to guide me how you created File upload plugin or share some code snippets ?  
I have tried but keep on getting 405 response and an error request scope has already been closed…  
Any guidance would be welcome…

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [July 19, 2023, 2:25pm UTC](https://developer.sailpoint.com/discuss/t/plugin-file-upload/3802/7 "2023-07-19T14:25:34Z")

</div>

Closed on July 19, 2023, 2:25pm UTC


