Unable to call method in custom jars placed in extlib folder on Mid Server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2014 06:52 AM
Hello,
I have a requirement to integrate a third party application with Service-now utilizing the api exposed by them. The jar is uploaded to the extlib folder using the JAR Files module. When I call the methods in the package using the Javascript Probe, I get the output in the ECC queue as :
TypeError: [JavaPackage org.demo.test] is not a function.
However, when I place the jar in the lib folder and invoke the package call using the Javascript Probe, I get the proper results in the ECC queue. I checked in the wrapper.conf file on the midserver that both the folders were present in the classpath as follows:
wrapper.java.classpath.1=lib/*.jar
wrapper.java.classpath.2=extlib/*.jar
Can someone please tell me what is missing in the mid-server configuration so as to call the jar from the extlib folder ?
- Labels:
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2014 02:54 PM
Which version is the SN instance?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2014 03:58 AM
Eureka Patch 6 Hotfix 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2015 12:04 PM
Did this issue ever get resolved? Does it help to swap the order in the classpath?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2018 01:15 PM
Hi kshitij.
Did you get this working? Can you explain how?
Best regards, Marcelo Martins