Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Andreas Groscurth
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic