0

我正在使用 Spring Tool Suite 作为服务器 VMware vFabric tc Server Developer,但我必须更改为 tomcat6。

启动应用程序时没有任何错误或异常,但由于来自 tomcat 的 404 错误,我无法访问它。

这是日志

23 avr. 2013 10:13:12 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: D:\javatools\java\jdk1.6.0_12\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files (x86)\RSA SecurID Token Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\PuTTY;D:\javatools\java\jdk1.6.0_12;D:\javatools\apache-maven-2.0.10\bin;D:\javatools\java\jdk1.6.0_12;D:\strawberry\c\bin;D:\strawberry\perl\site\bin;D:\strawberry\perl\bin
23 avr. 2013 10:13:13 org.apache.tomcat.util.digester.SetPropertiesRule begin
ATTENTION: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:dashboard' did not find a matching property.
23 avr. 2013 10:13:13 org.apache.coyote.http11.Http11Protocol init
INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
23 avr. 2013 10:13:13 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 599 ms
23 avr. 2013 10:13:13 org.apache.catalina.core.StandardService start
INFO: Démarrage du service Catalina
23 avr. 2013 10:13:13 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.36
23 avr. 2013 10:13:13 org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(D:\Utilisateurs\a553416\Documents\workspace-sts-3.1.0.RELEASE\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\dashboard\WEB-INF\lib\javax.servlet-api-3.0.1.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
23 avr. 2013 10:13:13 org.apache.coyote.http11.Http11Protocol start
INFO: Démarrage de Coyote HTTP/1.1 sur http-8080
23 avr. 2013 10:13:13 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
23 avr. 2013 10:13:13 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/18  config=null
23 avr. 2013 10:13:13 org.apache.catalina.startup.Catalina start
INFO: Server startup in 604 ms

有人会知道tomcat或配置有什么问题吗?

谢谢

4

1 回答 1

0

您的应用程序的上下文路径已更改。按照这个链接

如何在 Eclipse 中更改动态 Web 项目的上下文根?

将上下文路径设置为 URI,它是应用程序的入口点或在 VMware vFabric tc Server 中工作。从 Tomcat 中取消部署应用程序并再次部署它。

于 2014-08-30T16:55:19.310 回答