Unable to call method in custom jars placed in extlib folder on Mid Server

Kshitij Tripath
Tera Contributor

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 ?

8 REPLIES 8

amit_dhuleshia
ServiceNow Employee
ServiceNow Employee

Which version is the SN instance?


Eureka Patch 6 Hotfix 2


tim_broberg
ServiceNow Employee
ServiceNow Employee

Did this issue ever get resolved? Does it help to swap the order in the classpath?


Marcelo Martins
Giga Explorer

Hi kshitij.

 

Did you get this working? Can you explain how?

 

Best regards, Marcelo Martins