wood burning stoves
The moose likes Web Services and the fly likes Class javax /xml /rpc /encoding /TypeMappingRegistry violates loader constraints Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Class javax /xml /rpc /encoding /TypeMappingRegistry violates loader constraints" Watch "Class javax /xml /rpc /encoding /TypeMappingRegistry violates loader constraints" New topic

Class javax /xml /rpc /encoding /TypeMappingRegistry violates loader constraints

Askar Kalykov

Joined: Nov 24, 2005
Posts: 2
I have web service MyService on server side and two clients on my computer. Clients are webapps and have the same service-stub.jars; one of them starts sucessfully and another throws exception below:

Both applications cunstructs their stubs in ServletContextListener.contextInitialized() with this code:

I don't really understand what's the point..
Rick Fischer

Joined: May 15, 2003
Posts: 19
I am having the same problem. Did you ever get this resolved?
Campbell Moss

Joined: Feb 11, 2008
Posts: 1
See http://www.coderanch.com/t/128344/XML/Class-violates-Loader-COnstraints

I managed to fix this error by removing all classes under the javax package from the .war file - these should be in the app server's classpath anyway, so shouldn't need to be in the deployed package.
I agree. Here's the link: http://aspose.com/file-tools
subject: Class javax /xml /rpc /encoding /TypeMappingRegistry violates loader constraints
It's not a secret anymore!