2012-06-02 85 views
0

有人能幫我解決啓動Tomcat + spring的這個錯誤嗎?如何解決這個在tomcat中的這個Spring MVC啓動異常?

我已經清理了所有東西,當我到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 
+0

請求日誌是否顯示任何東西? – Samveen

+0

您的項目是否已添加到此服務器?即如果您選擇了服務器,請右鍵單擊並選擇「添加和刪除」,您的項目是否位於「已配置」部分? – Jeshurun

回答

0

,如果你發現了404頁,那麼它可能會在hello_world.htm頁面沒有找到。 最簡單的啓動方式是將啓動頁面作爲index.html,以便頁面可以從contex根節點進入。

0

根據您的日誌輸出,您的應用程序未部署。你確定你將你的項目添加到你的服務器?我假設你正在使用Eclipse。右鍵單擊您的服務器並選擇添加/刪除。你的應用程序應該在配置下。

enter image description here

相關問題