[英]Why my tomcat works differently if started from Eclipse
I have just installed tomcat6 on Linux Mint 我刚在Linux Mint上安装了tomcat6
If I start Tomcat using 如果我使用启动Tomcat
sudo /etc/init.d/tomcat6 start
I can see the welcome page on localhost:8080/ 我可以在localhost上看到欢迎页面:8080 /
If I start tomcat using the eclipse IDE I cannot see the welcome page (but I am able to run and deploy application from the IDE) 如果我使用eclipse IDE启动tomcat,我看不到欢迎页面(但是我能够从IDE运行和部署应用程序)
since I am new to tomcat I couldn't see the difference. 因为我是tomcat的新手,所以我看不出有什么区别。
Is tomcat using a different run environment when started from Eclipse? 从Eclipse启动时,tomcat是否使用不同的运行环境?
Yes. 是。 Eclipse uses the tomcat binaries only and recreates the configuration, webapp structure etc under you workspace metadata and executes your Web app by publishing into that.
Eclipse仅使用tomcat二进制文件,并在工作区元数据下重新创建配置,webapp结构等,并通过发布到其中来执行Web应用程序。 It does not carry over the webapps folder from tomcat installation.
它不会从tomcat安装中继承webapps文件夹。
Check <workspace>\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp0
to find your eclipse driven tomcat deployment. 检查
<workspace>\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp0
以查找eclipse驱动的tomcat部署。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.