Two Laptop Bag*
The moose likes Java in General and the fly likes java.lang.LinkageError: loader constraints violation.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "java.lang.LinkageError: loader constraints violation...." Watch "java.lang.LinkageError: loader constraints violation...." New topic
Author

java.lang.LinkageError: loader constraints violation....

Andreas Groscurth
Greenhorn

Joined: Mar 08, 2004
Posts: 12
Hi,

i have a war file i would like to deploy on a jboss. This war file uses Web Services to retrieve information. If I deploy it i get a

java.lang.LinkageError: loader constraints violated when linking javax/activation/DataHandler class
at com.sun.xml.ws.message.AttachmentUnmarshallerImpl.<clinit>(AttachmentUnmarshallerImpl.java:55)
at com.sun.xml.ws.client.sei.ResponseBuilder$DocLit.readResponse(ResponseBuilder.java:499)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:238)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:206)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
at $Proxy147.getUPIForAccession(Unknown Source)

searching the net it says that the activation.jar is duplicated and and thats the error. My jboss do have an activation.jar in its lib folders and I do have an activation.jar in my WEB-INF/lib. But removing mine results that jboss throws an error that

java.lang.NoClassDefFoundError: javax/activation/DataHandler

can anybody help me out what the problem is ?

Thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: java.lang.LinkageError: loader constraints violation....
 
Similar Threads
jsp error
Class Loading Configuration
LinkageError on runtime
Strange JBoss error
JBoss 6.1.0 - java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory cannot be cast to jav