javax.xml.parsers.SAXParserFactory.setXIncludeAware(Z)V错误解决方案

Struts2+Tiles2,jdk1.5,启动tomcat服务时报错,错误代码如下:

StandardContext[]Exception sending context initialized event to listener instance of class org.apache.struts2.tiles.StrutsTilesListener
java.lang.NoSuchMethodError: javax.xml.parsers.SAXParserFactory.setXIncludeAware(Z)V
at org.apache.commons.digester.Digester.getFactory(Digester.java:534)
at org.apache.commons.digester.Digester.getParser(Digester.java:786)
at org.apache.commons.digester.Digester.getXMLReader(Digester.java:1058)
at org.apache.commons.digester.Digester.parse(Digester.java:1887)

at org.apache.tiles.definition.digester.DigesterDefinitionsReader.rea

       ……


解决方案如下:

      xml-apis.jar该包原路径:Tomcat5.0\common\endorsed
   删除该包 并使用JDK1.5



阅读更多
个人分类: JAVA
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭