cancel
Showing results for 
Search instead for 
Did you mean: 

Library is already loaded in another ClassLoader

Former Member
0 Kudos

Hi,

We have deployed our java application in NetWeaver. To decrpyt the logon cookie we are using the library libsapssoext.o. When we are tying to load this library it fails with the following exception.

[ERROR] SSO2Ticket.<clinit>() - Error during initialization of SSO2TICKET:

libsapssoext.o (Library is already loaded in another ClassLoader)

This had actually worked first time when we deployed the app but after that when we redeployed the application..it throws this error and any native calls fails after this point.

Below is the java code snippet which we are using to load this library.

static {

try {

logger.debug("java.library.path - "+System.getProperty("java.library.path"));

System.loadLibrary("libsapssoext.o");

System.out.println("SAPSSOEXT loaded.");

logger.debug("SAPSSOEXT loaded.");

} catch (Throwable e) {

System.out.println("Error during initialization of SSO2TICKET:\n"+ e.getMessage());

logger.error("Error during initialization of SSO2TICKET:\n"+ e.getMessage());

}

}

Kindly advise.

Accepted Solutions (0)

Answers (1)

Answers (1)

siarhei_pisarenka3
Active Contributor
0 Kudos

Hi

The reason of such behavior might be in the mapping between the library and the old version of your Java class. It seems that the library when it was loaded first time is still mapped to the previous Java class version. Try to undeploy your application from the server and deploy it again.

BR, Siarhei

Former Member
0 Kudos

The only workaround we fond is to bounce the DPO server, it works without the classloader issue.

Is there any different way of loading the libraries instead of loading them in the static block of SSO2Ticket.java ? I think this will solve the problem.

Thanks,

Selvam