Eclipse:从 Eclipse 启动 tomcat 服务器,不会启动已部署的 wars
我已经在 Eclipse Helios IDE 中配置了 Tomcat 服务器,并且 在调试模式下启动服务器。
该服务器已经有一个war文件probe.war。
我的问题是,当我从 Eclipse IDE 启动服务器时,为什么这个应用程序probe.war 还没有启动?
这是Eclipse IDE下的服务器控制台eclipse。
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
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
WTP 提供 Eclipse 和 Tomcat 之间的集成,如果您不使用它,您就只能靠自己了。
正如您在评论中所说,您已经手动放置了war文件,但是由于您使用Eclipse启动Tomcat,所以Eclipse配置的
webapps
目录与您正在使用的目录不同,所以您的应用程序未部署。要解决您的问题:
调试为
->在服务器上调试
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:
Debug As
->Debug on server