Eclipse:从eclipse启动tomcat服务器,不会启动部署的战争 [英] Eclipse : Starting tomcat server from eclipse , does not start the deployed wars
问题描述
在调试模式下启动了服务器。
此服务器已经有一个war文件探测器。我的问题是,当我从Eclipse IDE启动服务器时,为什么此应用程序probe.war尚未启动?
这是Eclipse IDE下的服务器控制台eclipse。
2011年10月22日12:31:56 PM org.apache.catalina.core.StandardEngine start
INFO:启动Servlet引擎:Apache Tomcat / 6.0.32
2011年10月22日下午12:31:57 org.apache.coyote.http11.Http11Protocol开始
信息:在http-8080上启动Coyote HTTP / 1.1
2011年10月22日12:31:57 PM org.apache.jk.common.ChannelSocket init
INFO:JK:ajp13 listen on /0.0.0.0:8009
2011年10月22日12:31:57 PM org.apache.jk.server.JkMain start
INFO:Jk running ID = 0 time = 0/47 config = null
2011年10月22日12:31:57 PM org.apache.catalina.startup.Catalina start
INFO:服务器启动在40 1 ms
WTP提供Eclipse和Tomcat之间的集成,if你没有使用它,你自己更多。
正如您在评论中所说,您已经手动放置了war文件,但是由于您使用Eclipse启动Tomcat,所以 webapps
由Eclipse配置的目录与您使用的目录不同,因此您的应用程序未被部署。
要解决您的问题:
- 正确配置您的应用程序,因此您可以右键单击它,然后选择
调试为
- >在服务器上调试
- 或者通过以下步骤来调试远程tomcat应用程序,并从命令行启动tomcat服务器,所以你的战争将会被部署。
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
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.
这篇关于Eclipse:从eclipse启动tomcat服务器,不会启动部署的战争的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!