wsb1027006554
2015-03-24 10:12
采纳率: 100%
浏览 2.3k
已采纳

求助!tomcat启动正常,访问javaweb时控制台报错

访问javaweb项目时报错,在myeclise6.0上无该异常,在myeclise10上报如下异常:
org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet jsp threw exception
javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:129)
at org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:128)
at org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:103)
at org.apache.jasper.compiler.JspConfig.init(JspConfig.java:238)
at org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:294)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:112)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:389)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:620)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

6条回答 默认 最新

  • qq_26848107 2015-03-24 13:34
    已采纳

    你导入的包出错了,版本不同导入的包也不同

    已采纳该答案
    评论
    解决 无用
    打赏 举报
  • wsb1027006554 2015-03-24 10:18

    我用的环境是jdk1.6.tomcat6.0.43,框架是struts2和spring

    评论
    解决 无用
    打赏 举报
  • 乐古 2015-03-24 10:43

    数据库连接失败的问题,访问不到数据库

    评论
    解决 无用
    打赏 举报
  • color007 2015-03-24 12:05

    ta提示了:DocumentBuilderFactoryImpl not found 文件BuilderFactoryImpl没找到

    评论
    解决 无用
    打赏 举报
  • qq_26848107 2015-03-24 13:35

    你导入的包出错了,版本不同导入的包也不同

    评论
    解决 无用
    打赏 举报
  • wsb1027006554 2015-03-25 06:25

    确实是导入的包与tomcat版本不兼容,我换了个Tomcat就可以了,谢谢。

    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题