网上有一个解答:
The reason was in JVM version. Platforms where deployment was successful used JVM 1.5 but problematical one had JVM 1.6. SAX2DOM class from Java 1.6 has a call to DocumentImpl::setXmlVersion() from its setDocumentInfo(). The version of xerces library I used doesn't have this method - it's a real reason of exception. So after I downloaded the latest version of xerces everything works fine.
我我环境jdk 6.15 tomcat 6 .021 需要去掉xerces.jar
本文介绍了一种解决JDK6与Xerces兼容性问题的方法。问题出现在使用JVM1.6环境下,由于SAX2DOM类调用了不兼容的DocumentImpl::setXmlVersion()方法导致异常。通过更新Xerces库到最新版本,问题得以解决。
139

被折叠的 条评论
为什么被折叠?



