[英]Endorsed directory isn't working in Tomcat6
即使我的认可目录似乎配置正确,我仍然收到以下消息。
OpenSAML requires an xml parser that supports JAXP 1.3 and DOM3.
The JVM is currently configured to use the Sun XML parser, which is known
to be buggy and can not be used with OpenSAML. Please endorse a functional
JAXP library(ies) such as Xerces and Xalan. For instructions on how to endorse
a new parser see http://java.sun.com/j2se/1.5.0/docs/guide/standards/index.html
在我的tomcat6.conf
我有以下内容:
CATALINA_OPTS = "... -Djava.endorsed.dirs=/etc/tomcat6/endorsed ..."
在endorsed
文件夹中,我具有以下文件:
resolver-2.9.1.jar xalan-2.7.1.jar xml-apis-2.9.1.jar
serializer-2.9.1.jar xercesImpl-2.9.1.jar
我已经重新启动了Tomcat6,重新部署了我的war文件,并且不断收到上述错误消息。
更新1
我运行了以下命令jps -v
,它给了我这个:
3786跳-Dapplication.home = / usr / java / jdk1.6.0_45 -Xms8m
在您的Web应用程序中,将所有认可的目录输出到控制台
System.out.println("-Djava.endorsed.dirs = " +
System.getProperty("java.endorsed.dirs"));
检查目录是否正确列出,并且没有其他位置添加任何冲突的jar。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.