I have a project (say myproject) in which I have hosted a CXF RESTful service and CXF WS/SOAP service, and running on JBoss (6.0.0.FINAL). The RESTful interface is used by a
LinkageError
is JBoss is generally caused by your app packaging its own copies of certain libraries that JBoss considers restricted. These are usually things in the java.*
and javax.*
packages.
Looking at your stack trace, I'd guess that the culprit is javax.activation.DataHandler
. Check your app's bundled JAR files, make sure there's nothing like that in them. If there is, then remove it.
It may not be javax.activation.DataHandler
, but may be something it in turn depends on.
I finally solved the problem but it is really weird.
Thanks for your responses.