cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.LinkageError : loader constraints violated when linking

Former Member
0 Kudos

Hi,

I had a A_EJB and A_WEB program. I create an EAR and deployed to the server. I used my A_EJB.jar file as an external library file for my new B_EJB and B_WEB. Added as external JAR. When i deploy and run it, i hit this error.

My A_EJB do include the sapjco.jar and also B_EJB also include the sapjco.jar as external library.


Caused by: java.lang.LinkageError: loader constraints violated when linking com/sap/mw/jco/JCO$Table class

This is when i want it run this command as I'm declaring the JCO.Table


JCO.Structure DetStructure = function.getImportParameterList().getStructure("MESSAGE");
JCO.Table DetTable = function.getTableParameterList().getTable("DET");

Before i declare this table i do have a declare the structure as i show at the top. The Structure don't have any error but the table hit error.

I tried to google out regarding this java.lang.LinkageError. Found out that is related to classloader problem. As the object class is package in EJB and WEB. It asked me to remove the class and will solve the problem. I did it and seem still having the problem.

Any way to solve this?

Thanks in advance for helping.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

This is not belong to this section.

Posted in [Java Programming|;

Sorry.