HTTP Status 404 - /Weixin/wx.do

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

枫色

2015-07-19 20:41

HTTP Status 404 - /Weixin/wx.do

type Status report

message /Weixin/wx.do

description The requested resource is not available.

Apache Tomcat/8.0.23


我在里面放了个index.html,

访问localhost:8080/Weixin时是可以显示index.html的可是只要加上wx.do就404了,为什么啊

写回答 关注

5回答

  • 慕工程3248581
    2017-12-08 20:14:27

    什么原因,能解答吗?


  • oldmee
    2015-12-26 21:55:54

    web.xml配置有误

  • 慕妹9319559
    2015-07-28 10:10:42

    是少加载了一个包吧,其他的问题里边看见过,你去看看

  • 枫色
    2015-07-19 20:50:04

    console显示错误如下:

    严重: Allocate exception for servlet weixinServlet

    java.lang.ClassNotFoundException: com.weixin.servlet.WeixinServlet

    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1305)

    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1157)

    at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:520)

    at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:501)

    at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:120)

    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1095)

    at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:817)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:135)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)

    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)

    at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)

    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)

    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)

    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2463)

    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2452)

    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)


    qq_吹不断...

    我也是这样的,你最后解决了吗?是什么原因啊??

    2015-08-15 19:23:19

    共 1 条回复 >

  • 枫色
    2015-07-19 20:47:53

    有时候重新启动tomcat时,第一次wx.do会显示500,可是之后再去访问就又是404了

初识Java微信公众号开发

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

158331 学习 · 469 问题

查看课程

相似问题