Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Askar Kalykov
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having the same problem. Did you ever get this resolved?
 
Campbell Moss
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic