I had a Spring based java app that connected to PayPal using their Soap API. It was working fine with Jetty, but when I tried to deploy it with Tomcat, I got the following error:
Unable to validate using XSD: Your JAXP provider…
How can I solve this problem? I tried updating to the latest xerces jar files, as the error suggested, but that didn’t help.
To solve it, I had to add the following command line arguments to my JVM:
This can be done in Eclipse by
double clicking on “Tomcat” in your “Servers” view
choosing “Open launch configuration”
select “Arguments” then “VM Arguments”, and paste in the above 2 lines