cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a shared library (settings) page on SAP PI server to handle native library

Former Member
0 Kudos

On SAP PI server, I have a web application with Java Native methods. The library errors when application is restarted/undeployed and application accessed:-

Unable to load library due to:...... Native Library  already loaded in another classloader

Q1 Is there a location where I could load shared native library on SAP PI server so that my application when restarted can find it.

If Q1 is not answered,

Q2  In web application that uses native library

I am creating Custom classloader(Unload Java JNI DLL - CodeThesis.com) and setting  classes to null before running System.gc() as suggested in example. However when the web application is undeployed and the entire classes and path of Java class gets removed so wanted to know that the path of the class will error as it gets deleted on undeploy.

so this line is meaning less on undeploy:-

Class ca = cl.findClass("com.codethesis.example.A");

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I would like to know whether Q1 was answered or not. I am facing a similar issue.

Former Member
0 Kudos

In Apache tomcat, there is a file at:-


apache-tomcat-6.0.39/conf/catalina.properties

and it has property to specify "shared classloader" called:-


shared.loader=

This can serve the purpose of sharing the library between multiple application.

However I want to know what file stores this information and in which attribute of SAP PI server.