cancel
Showing results for 
Search instead for 
Did you mean: 

Create Java application reference to library "com.sap.security.api.sda"

Former Member
0 Kudos

Hi

I have a third party java application which is running on SAP portal through native call.

I am getting error while loading java classes, and have been requested to create a reference to my java application to resolve this.

Error: Library is already loaded in another ClassLoader

Can any one please guide me on how to create an application reference to the library "com.sap.security.api.sda"

Also where can I find the "web-j2ee-engine.xml" and the "application-j2ee-engine.xml" descriptor files?

Please guide or any code example will be helpful.

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Please explain in more detail how your 3rd party application is structured and how it is deployed.

Is it a WAR packaged application or an EAR packaged one ?

From my perspective you just need to put the library com.sap.security.api.jar into the class path of your application.

There are different ways to manage this, assuming that you have an EAR

1. You could just put the jar file into your EAR archive

2. You can create an application-j2ee-engine.xml and put it into the META-INF folder of your EAR

<application-j2ee-engine>

<reference reference-type="hard">

<reference-target provider-name="sap.com" target-type="library">com.sap.security.api.sda</reference-target>

</reference>

</application-j2ee-engine>