Friday, February 12, 2010

Loader constraint violation when trying to generate an AXIS WSDL.

I've got an RPC style web service implemented using Apache AXIS. It was developed using JBoss 4, but when I deployed it on JBoss 5, I got this nasty error:



There seems to be a conflict between axis-jaxrpc*.jar and JbossWS. Both of them contain definitions for the QName class.

The solution? When using JBoss 5, exclude axis-jaxrpc*.jar from your WAR files.

No comments: