运行Struts2 helloWorld教程中的小错误[TOMCAT]

时间:2012-06-13 07:56:31

标签: tomcat struts2

我正在尝试在我的eclipse indigo中运行struts2的helloworld教程。当我启动我的tomcat服务器时,我在控制台窗口中收到以下消息。突出显示的位是我无法理解的位置。

Jun 13, 2012 1:12:28 PM 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:\Program Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32;**

**Jun 13, 2012 1:12:28 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:StrutsExample1' did not find a matching property.**

Jun 13, 2012 1:12:28 PM org.apache.coyote.AbstractProtocol init

INFO: Initializing ProtocolHandler ["http-bio-8080"]

Jun 13, 2012 1:12:28 PM org.apache.coyote.AbstractProtocol init

INFO: Initializing ProtocolHandler ["ajp-bio-8009"]

Jun 13, 2012 1:12:28 PM org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 735 ms

Jun 13, 2012 1:12:28 PM org.apache.catalina.core.StandardService startInternal

INFO: Starting service Catalina

Jun 13, 2012 1:12:28 PM org.apache.catalina.core.StandardEngine startInternal

INFO: Starting Servlet Engine: Apache Tomcat/7.0.27

Jun 13, 2012 1:12:31 PM org.apache.coyote.AbstractProtocol start

INFO: Starting ProtocolHandler ["http-bio-8080"]

Jun 13, 2012 1:12:31 PM org.apache.coyote.AbstractProtocol start

INFO: Starting ProtocolHandler ["ajp-bio-8009"]

Jun 13, 2012 1:12:31 PM org.apache.catalina.startup.Catalina start

INFO: Server startup in 2586 ms

当我通过键入http://localhost:8080在浏览器上打开tomcat时,会显示错误消息 HTTP状态404 - / 。我无法理解问题的根本原因。我用的是windows7 64bit。是因为我的系统和用户变量没有正确定义吗?

1 个答案:

答案 0 :(得分:0)

您的tomcat已经在运行。

请在此处查看我的回答https://stackoverflow.com/a/10972634/1085285

但您没有访问您的应用程序。为了运行您的应用程序。你必须给这样的东西提供网址

http://localhost:8080/MyWebApp  where MyWebApp is the name you have given to your project

有关您收到的信息,请参阅此问题和答案 what tomcat native library should I be using in production?