Eclipse : Starting tomcat server from eclipse , does not start the deployed wars

馋奶兔 提交于 2019-12-22 13:02:10

问题


I have configured Tomcat Server in Eclipse Helios IDE , and started the server in Debug Mode .

This Server has already got a war file probe.war .

My question is,why this application probe.war has not been started when i started the Server from Eclipse IDE ??

This is the server console eclipse under the Eclipse IDE .

Oct 22, 2011 12:31:56 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
Oct 22, 2011 12:31:57 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Oct 22, 2011 12:31:57 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Oct 22, 2011 12:31:57 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/47  config=null
Oct 22, 2011 12:31:57 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 401 ms

回答1:


WTP offers integration between Eclipse and Tomcat, if you're not using it, you're more on your own.

As you said in the comment, you've manually placed the war file, but since you're starting Tomcat with Eclipse, the webapps directory configured by Eclipse is not the same one you're using, so your application doesn't get deployed.

To solve your problem either:

  • configure your application properly, so you can right click on it and choose Debug As -> Debug on server
  • or, configure it externally, by following the steps to debug a remote tomcat application, and start your tomcat server from the command line, so your war will get deployed.


来源:https://stackoverflow.com/questions/7857975/eclipse-starting-tomcat-server-from-eclipse-does-not-start-the-deployed-wars

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!