我正在尝试通过tomcat服务器(v7.0.32)运行我的Web应用程序。该项目是在eclipse-Juno下开发的。当我在浏览器中键入“http://localhost:8080/MyNewApp1”时,它显示 HTTP 状态 404 - /MyNewApp1/ 类型状态报告消息 /MyNewApp1/ 描述 请求的资源不可用。Apache Tomcat/7.0.32 当我尝试使用 less catalina.out通过命令行查看日志时,我得到如下跟踪:
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib
/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/../lib/i
386:/usr/java/packages/lib/i386:/lib:/usr/lib
Nov 7, 2012 3:40:00 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Nov 7, 2012 3:40:00 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Nov 7, 2012 3:40:00 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 851 ms
Nov 7, 2012 3:40:00 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Nov 7, 2012 3:40:00 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.32
Nov 7, 2012 3:40:00 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /home/kruthi/apache-tomcat-7.0.32/conf/Catalina/localhost/MyNewApp1.xml
Nov 7, 2012 3:40:01 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/kruthi/apache-tomcat-7.0.32/webapps/docs
Nov 7, 2012 3:40:01 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/kruthi/apache-tomcat-7.0.32/webapps/ROOT
Nov 7, 2012 3:40:01 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/kruthi/apache-tomcat-7.0.32/webapps/examples
Nov 7, 2012 3:40:01 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/kruthi/apache-tomcat-7.0.32/webapps/host-manager
Nov 7, 2012 3:40:01 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/kruthi/apache-tomcat-7.0.32/webapps/manager
Nov 7, 2012 3:40:01 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Nov 7, 2012 3:40:01 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Nov 7, 2012 3:40:01 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1254 ms
我哪里出错了?我检查了我的 web.xml 文件,确保它是一个 Web 项目,我能够将它导出为 WAR 文件,而且对我来说一切似乎都很好......但我仍然收到这个错误并且无法前进。请帮助。
提前致谢