baidu_23939383
baidu_23939383
采纳率100%
2015-04-01 03:13

求教:运行任何页面404错误

已采纳

之前不管写什么代码运行出来都是HTTP404未找到。
今天写了一个选座的html,运行出来页面是这样的。
图片说明

控制台也顺便复制过来。拜托各位大神帮我看一下。
一月 01, 2015 10:52:09 上午 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/Program Files/Java/jre7/bin/client;D:/Program Files/Java/jre7/bin;D:/Program Files/Java/jre7/lib/i386;C:\Program Files\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\C:\Program Files\Java\jdk1.7.0;\bin;C:\Program Files\Java\jdk1.7.0;\jre\bin;D:\Program Files\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft SQL Server\100\DTS\Binn\;D:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;D:\Program Files (x86)\eclipse-jee-luna-R-win32\eclipse;;.
一月 01, 2015 10:52:10 上午 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:ChooseSeat' did not find a matching property.
一月 01, 2015 10:52:10 上午 org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
一月 01, 2015 10:52:10 上午 org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
一月 01, 2015 10:52:10 上午 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1593 ms
一月 01, 2015 10:52:10 上午 org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
一月 01, 2015 10:52:10 上午 org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.55
一月 01, 2015 10:52:11 上午 org.apache.catalina.util.SessionIdGenerator createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [128] milliseconds.
一月 01, 2015 10:52:11 上午 org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter struts2
java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.FilterDispatcher
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:530)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:512)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:139)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4828)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5508)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

一月 01, 2015 10:52:11 上午 org.apache.catalina.core.StandardContext startInternal
SEVERE: Error filterStart
一月 01, 2015 10:52:11 上午 org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [] startup failed due to previous errors
一月 01, 2015 10:52:12 上午 org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter struts2
java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.FilterDispatcher
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:530)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:512)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:139)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4828)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5508)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

一月 01, 2015 10:52:12 上午 org.apache.catalina.core.StandardContext startInternal
SEVERE: Error filterStart
一月 01, 2015 10:52:12 上午 org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/ChooseSeat] startup failed due to previous errors
一月 01, 2015 10:52:12 上午 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
一月 01, 2015 10:52:12 上午 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
一月 01, 2015 10:52:12 上午 org.apache.catalina.startup.Catalina start
INFO: Server startup in 1158 ms

系统的时间我之前有修改过,改成是2015-1-1。但是我觉得应该不是这个问题。

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

6条回答

  • zou493451860 zou493451860 6年前

    要不tomcat没有启动成功,要不就是路径写错了,仔细检查下

    点赞 评论 复制链接分享
  • wangjian110520 will(威尔) 6年前

    一看就知道是路径错误啊,chooseseat是什么的地址

    点赞 评论 复制链接分享
  • oyljerry oyljerry 6年前

    估计是路径不对,先看根目录能不能访问,然后再对比子目录一级级下去

    点赞 评论 复制链接分享
  • starfd 娃都会打酱油了 6年前

    你贴这个图,还不如贴下你的IIS截图……肯定是你设置的路径不对

    点赞 评论 复制链接分享
  • lmw0827 李明文 6年前

    应该是设置的路径不对,你可以看一下服务器的配置路径是什么。

    点赞 评论 复制链接分享
  • bulusli3 lhl_lqc 6年前

    你先试试http://localhost:8080能不能访问。

    点赞 评论 复制链接分享

相关推荐