如何在tomcat中修复这个Spring MVC启动异常?

时间:2012-06-02 03:15:12

标签: spring tomcat

有人可以帮助我解决有关启动Tomcat + spring的错误吗?

我已经清理了所有内容,当我转到localhost:8080 / springmvc / hello_world.html时出现404页面错误。

非常感谢你们。

02/06/2012 00:09:59 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: C:\Arquivos de programas\Java\jre6\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Arquivos de programas/Java/jre6/bin/client;C:/Arquivos de programas/Java/jre6/bin;C:/Arquivos de programas/Java/jre6/lib/i386;C:\Ruby193\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Arquivos de programas\Java\jdk1.6.0_25\bin;C:\apache-maven-3.0.3\bin;C:\spring-roo-1.1.3.RELEASE\bin;C:\Arquivos de programas\Android\android-sdk\tools;C:\Arquivos de programas\QuickTime\QTSystem\;C:\eclipse;;.
02/06/2012 00:09:59 org.apache.tomcat.util.digester.SetPropertiesRule begin
AVISO: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:SpringMVC' did not find a matching property.
02/06/2012 00:10:00 org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
02/06/2012 00:10:00 org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
02/06/2012 00:10:00 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 791 ms
02/06/2012 00:10:00 org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
02/06/2012 00:10:00 org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.27
02/06/2012 00:10:00 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
02/06/2012 00:10:00 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
02/06/2012 00:10:00 org.apache.catalina.startup.Catalina start
INFO: Server startup in 525 ms

2 个答案:

答案 0 :(得分:0)

如果您找到了第404页,则可能找不到hello_world.htm页面。 最简单的方法是将启动页面放入index.html,以便可以从上下文根中填入页面。

答案 1 :(得分:0)

根据您的日志输出,您的应用程序未部署。您确定将项目添加到服务器吗?我假设你正在使用Eclipse。右键单击您的服务器,然后选择添加/删除。您的应用程序应该在配置下。

enter image description here