File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

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

Askar Kalykov
Greenhorn

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
Greenhorn

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

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