# Custom connector path issue

**URL:** <https://developer.sailpoint.com/discuss/t/custom-connector-path-issue/10299>\
**Category:** IIQ Discussion and Questions\
**Tags:** apis, custom-connector\
**Created:** [April 18, 2023, 6:15am UTC](https://developer.sailpoint.com/discuss/t/custom-connector-path-issue/10299 "2023-04-18T06:15:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pradeeptvisa](https://avatars.discourse-cdn.com/v4/letter/p/65b543/32.png) [@pradeeptvisa](https://developer.sailpoint.com/discuss/u/pradeeptvisa)\
**Post date:** [April 18, 2023, 6:15am UTC](https://developer.sailpoint.com/discuss/t/custom-connector-path-issue/10299/1 "2023-04-18T06:15:37Z")

</div>

For custom connector, if we need to add third-party external jar then as per documentation, we can add below way to add entry in Application xml .  
  
  
  
\lib-connectors\ GVOL\</String\>

we followed the instruction but its not picking custom jar references but when i put the same jar in web-inf lib folder then its working perfectly.  
any idea what i am doing wrong ?

---

<div class="post-metadata">

**Author:** ![patrickboston](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/patrickboston/32/5876_2.png) [@patrickboston](https://developer.sailpoint.com/discuss/u/patrickboston)\
**Post date:** [April 18, 2023, 3:12pm UTC](https://developer.sailpoint.com/discuss/t/custom-connector-path-issue/10299/2 "2023-04-18T15:12:04Z")

</div>

How are you deploying your custom connector? Raw class files or a .jar file? I’ve run into similar issues in the past. I would try deploying class files to `classes-connectors` as opposed to `/classes` or compile the connector classes into a JAR and deploy the JAR in the same folder where you dependencies are (`/lib-connectors/GVOL`). The issue is that there are separate class loaders for connectors vs other core IIQ functionality, so if your connector class is not in the right place, it cannot load your dependencies.

Topic where I asked about this before: [Custom Connector, Connector Classpath, and SSB](https://developer.sailpoint.com/discuss/t/custom-connector-connector-classpath-and-ssb/832)

---

<div class="post-metadata">

**Author:** ![brian\_weigel](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/brian_weigel/32/2194_2.png) [@brian\_weigel](https://developer.sailpoint.com/discuss/u/brian_weigel)\
**Post date:** [April 18, 2023, 3:13pm UTC](https://developer.sailpoint.com/discuss/t/custom-connector-path-issue/10299/3 "2023-04-18T15:13:20Z")

</div>

It’s been a while since I did a custom connector like that, but I seem to recall that I had to include the `WEB-INF` in the path string to get the custom JARs properly referenced and loaded. I also prefer to use `/` instead of `\` in paths as `\` often gets interpreted as an escape character instead of as a literal character, which could cause the system to reference a non-existent location.

I’m not sure which of these will be the one that actually works (if any, don’t have a good way to test at present), but I believe one of them will and there should be no harm in having them all defined and giving it a try:

```auto
<entry key="connector-classpath"> 
    <value> 
      <List> 
        <String>WEB-INF/lib-connectors/GVOL</String>
		<String>WEB-INF/lib-connectors/GVOL/</String>
		<String>WEB-INF/lib-connectors/GVOL/*</String>
      </List> 
    </value>
</entry>

```

> **[IdentityIQ Connector-classloader FAQ](https://community.sailpoint.com/t5/IdentityIQ-Wiki/IdentityIQ-Connector-classloader-FAQ/ta-p/223385)**
>
> Why Use the Connector-classloader? Enables third-party library upgrades, changes for custom connectors, and connector customization rules You have two different version of the same connectors that need different libraries There is a third-party...

---

<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:26pm UTC](https://developer.sailpoint.com/discuss/t/custom-connector-path-issue/10299/4 "2023-07-19T14:26:02Z")

</div>


