从Eclipse运行时未发现Tomcat 404错误

时间:2014-04-29 08:00:28

标签: eclipse spring spring-mvc tomcat6

Spring web.xml

<servlet> 
<servlet-name>E-Attendance</servlet-name> 
    <servlet-class> 
        org.springframework.web.servlet.DispatcherServlet 
    </servlet-class> 
    <load-on-startup>1</load-on-startup> 
</servlet> 

<servlet-mapping>
    <servlet-name>E-Attendance</servlet-name>
    <url-pattern>/</url-pattern>
</servlet-mapping>

<servlet-mapping> 
    <servlet-name>E-Attendance</servlet-name> 
    <url-pattern>*.htm</url-pattern> 
</servlet-mapping> 

<context-param>
  <param-name>contextConfigLocation</param-name> 
  <param-value>/WEB-INF/E-Attendance-servlet.xml</param-value> 
</context-param>

然后我在Eclipse服务器选项卡下运行Tomcat 但是当我转到http://localhost:8080/E-Attendance/login.htm链接时,我得到 http-status-404(请求的资源不可用。) 错误
设置有问题吗?
我在tomcat日志中也没有任何错误。
我的项目位于Eclipse下的工作区文件夹中。
感谢您的所有帮助。

Apr 29, 2014 8:05:33 AM org.apache.catalina.core.AprLifecycleListener init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Apr 29, 2014 8:05:33 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 334 ms
Apr 29, 2014 8:05:33 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Apr 29, 2014 8:05:33 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.37
Apr 29, 2014 8:05:33 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
Apr 29, 2014 8:05:33 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Apr 29, 2014 8:05:34 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'E-Attendance'
Apr 29, 2014 8:05:36 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Apr 29, 2014 8:05:36 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Apr 29, 2014 8:05:36 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Apr 29, 2014 8:05:36 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Apr 29, 2014 8:05:36 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.catalina.Registry', 'org.apache.tomcat.util.modeler.Registry@5ed853')
Apr 29, 2014 8:05:36 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.catalina.MBeanServer', 'com.sun.jmx.mbeanserver.JmxMBeanServer@cc5436')
Apr 29, 2014 8:05:36 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory extraprj
Apr 29, 2014 8:05:36 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Apr 29, 2014 8:05:36 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory spring-security-integration.war
Apr 29, 2014 8:05:36 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Apr 29, 2014 8:05:36 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Apr 29, 2014 8:05:36 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/14  config=null
Apr 29, 2014 8:05:36 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3318 ms

0 个答案:

没有答案