15:44:50.796] couldn't set dynamic validation feature
[15:44:50.796] org.xml.sax.SAXNotSupportedException: http://apache.org/xml/featu
res/validation/dynamic
场景:
在tomcate5.5下运行正常,放在resin3.0.25下步正常,就报此错。
问题解决:因为Resin缺省没有用xerces解析xml。使用httpd.exe启动resion时具体做法:1. 拷贝xercesImpl.jar,xml-apis.jar,如果用到xslt,还需要拷贝xalan.jar;
2. 将下面几行加入到resin.conf中: (经测试,加这个就能正常运行了)
<system-property javax.xml.parsers.DocumentBuilderFactory='org.apache.xerces.jaxp.DocumentBuilderFactoryImpl'/>
<system-property javax.xml.parsers.SAXParserFactory='org.apache.xerces.jaxp.SAXParserFactoryImpl'/>
如果上面不行的话换成下面俩句试试:
<system-property javax.xml.parsers.DocumentBuilderFactory='com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl'/>
<system-property javax.xml.parsers.SAXParserFactory='com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl'/>