Java Spring和Soap API错误:";无法使用XSD:Your JAXP provider进行验证;
我有一个基于Spring的java应用程序,它使用PayPal的Soap API连接到PayPal。Jetty可以很好地使用它,但是当我尝试用Tomcat部署它时,我得到了以下错误: 无法使用XSD验证:您的JAXP提供程序Java Spring和Soap API错误:";无法使用XSD:Your JAXP provider进行验证;,java,spring,soap,paypal,Java,Spring,Soap,Paypal,我有一个基于Spring的java应用程序,它使用PayPal的Soap API连接到PayPal。Jetty可以很好地使用它,但是当我尝试用Tomcat部署它时,我得到了以下错误: 无法使用XSD验证:您的JAXP提供程序 我怎样才能解决这个问题?如错误所示,我尝试更新到最新的xerces jar文件,但没有帮助。要解决这个问题,我必须向JVM添加以下命令行参数: -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xer
我怎样才能解决这个问题?如错误所示,我尝试更新到最新的xerces jar文件,但没有帮助。要解决这个问题,我必须向JVM添加以下命令行参数:
-Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
-Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
这可以在Eclipse中通过
- 双击“服务器”视图中的“Tomcat”
- 选择“开放启动配置”
- 选择“Arguments”,然后选择“VM Arguments”,并粘贴到上面两行
- 为了解决这个问题,我必须向JVM中添加以下命令行参数:
-Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
-Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
这可以在Eclipse中通过
- 双击“服务器”视图中的“Tomcat”
- 选择“开放启动配置”
- 选择“Arguments”,然后选择“VM Arguments”,并粘贴到上面两行