File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "java.lang.LinkageError: loader constraints violation...." Watch "java.lang.LinkageError: loader constraints violation...." New topic

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

Andreas Groscurth

Joined: Mar 08, 2004
Posts: 12

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 $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 ?

I agree. Here's the link:
subject: java.lang.LinkageError: loader constraints violation....
It's not a secret anymore!