Eclipse在哪里使用WTP部署Web应用程序? [英] Where does Eclipse deploy web applications using WTP?

查看:112
本文介绍了Eclipse在哪里使用WTP部署Web应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Web应用程序(WAR文件)。当我使用WTP工具通过Eclipse 3.5部署它时,我可以从Eclipse中启动Tomcat服务器,并查看应用程序的所有页面。但是,我没有看到我的WAR文件在Tomcat主目录的 webapps 文件夹中(或者是它的爆炸格式)。我的印象是Tomcat读取其 文件夹下的所有Web应用程序。在这种情况下,Tomcat如何读取我的应用程序?我正在使用Tomcat 5.5.17作为我的应用程序服务器。

解决方案

只是在上下文中定义Eclipse给予Tomcat的.xml 如果要配置此行为,请双击服务器视图中的Tomcat实例,然后检查服务器位置部分。要实现您最初希望/期望的内容,您需要选择使用Tomcat安装,如有必要还可以指定部署路径


I have a web application (WAR file). When I deploy it through Eclipse 3.5 using the WTP tools, I am able to start the Tomcat server from within Eclipse and view all the pages of the application. However I don't see my WAR file inside the webapps folder of Tomcat home directory (or for that matter its exploded format). I was under the impression that Tomcat reads all web applications under its webapps folder. How does Tomcat read my application in this case? I am using Tomcat 5.5.17 as my application server.

解决方案

It's just all definied in the context.xml which Eclipse has given to Tomcat. If you want to configure this behaviour, then doubleclick the Tomcat instance in the servers view and check the Server locations section. To achieve what you initially want/expected, you need to select Use Tomcat installation and if necessary also specify the Deploy path.

这篇关于Eclipse在哪里使用WTP部署Web应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆