访问出现问题

来源:5-5 消息的接收与响应3

ZeroCentury

2016-04-16 09:20

 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [weixinServlet] in context with path [/Weixin] threw exception [Servlet execution threw an exception] with root cause
java.lang.ClassNotFoundException: org.xmlpull.v1.XmlPullParserException
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
    at com.thoughtworks.xstream.XStream.<init>(XStream.java:350)
    at com.tools.MessageUtil.textMessageToXml(MessageUtil.java:45)
    at com.servlet.WeixinServlet.doPost(WeixinServlet.java:54)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)

写回答 关注

2回答

  • 努力地开花
    2016-05-17 16:49:10

    上网查找dom4j的1.6版本的jar包比较好,而且最好放在lib文件夹下,另外其他三个包也是,最好都放在lib那里。这是我调试过很多遍才成功的,希望能帮到别人。

    http://img.mukewang.com/573adad20001977d02980105.jpg

  • 曉風殘月123
    2016-04-16 19:10:18

    dom4j的jar包加了吗,添加到build path当中了吗?

初识Java微信公众号开发

Java微信公众号开发的入门教程,掌握微信公众号基本概念

158335 学习 · 469 问题

查看课程

相似问题