为了账号安全,请及时绑定邮箱和手机立即绑定

java.lang.ClassNotFoundException

at com.thoughtworks.xstream.XStream.<init>(XStream.java:333)
求解

正在回答

3 回答

已解决 问题出在
我用的 xstream 1.4.1版本
用1.3.1的就好了

0 回复 有任何疑惑可以回复我~

十月 25, 2016 12:53:51 上午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [WeixinServlet] in context with path [/ZZJWEB] threw exception [Servlet execution threw an exception] with root cause
java.lang.ClassNotFoundException: org.xmlpull.v1.XmlPullParserException
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1275)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1109)
at com.thoughtworks.xstream.XStream.<init>(XStream.java:333)
at com.zzj.utils.MessageUtil.textMessageToXml(MessageUtil.java:36)
at com.zzj.servlet.WeixinServlet.doPost(WeixinServlet.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:784)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:802)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)

0 回复 有任何疑惑可以回复我~

jar包已经放在 WEB-INF/lib 下

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
初识Java微信公众号开发
  • 参与学习       158330    人
  • 解答问题       469    个

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

进入课程

java.lang.ClassNotFoundException

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信