简体   繁体   English

带有Tomcat7的Eclipse,我的应用程序从哪里运行?

[英]Eclipse with Tomcat7, where my application is running from?

When working with Apache Tomcat I know to look for my .war file in %CATALINA_HOME%/webapps . 使用Apache Tomcat时,我知道要在%CATALINA_HOME%/webapps查找.war文件。 Running Eclipse MARS with Tomcat plugin - the webapps directory is empty. 使用Tomcat插件运行Eclipse MARS - webapps目录为空。
Eclipse is installed at C:/eclipse/ Eclipse安装在C:/eclipse/
Tomcat is installed at C:/tomcat7/ Tomcat安装在C:/tomcat7/
Using Windows 10 and Java 1.8.0_131 使用Windows 10Java 1.8.0_131
JAVA_HOME=C:/Program Files/java/1.8.0_131/
CATALINA_HOME=C:/tomcat7/

From where Eclipse with its Tomcat plugin is running my web application? Eclipse及其Tomcat插件从何处运行我的Web应用程序?

The default setting of the eclipse tomcat plugin (WTP) would configure a separate server instance which its root folder is specified by CATALINA_BASE . eclipse tomcat插件(WTP)的默认设置将配置一个单独的服务器实例 ,其根文件夹由CATALINA_BASE指定。 This server instance will has its own configuration and webapps folder under CATALINA_BASE . 该服务器实例将在CATALINA_BASE下具有其自己的配置和webapps文件夹。

The value of the CATALINA_BASE can be configured from the following UI: 可以从以下用户界面配置CATALINA_BASE的值:

在此处输入图片说明

So , in the above configuration , the war will be deployed to $project_workspace\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp3\\wtpwebapps\\ 因此,在上述配置中,战争将部署到$project_workspace\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp3\\wtpwebapps\\

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM