简体   繁体   English

为什么我的tomcat从Eclipse开始工作方式不同

[英]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.

相关问题 Servlet在Eclipse中有效,但在我的tomcat服务器中无效 - Servlet works in Eclipse, but not from my tomcat server 从Eclipse启动时无法访问Tomcat - Tomcat unaccessible when started from eclipse 在独立Tomcat上部署时,为什么没有提取我的RequestMapping? 它可以在Eclipse WTP中使用 - Why are my RequestMapping not being picked up when deploying on Standalone Tomcat? It works in Eclipse WTP 无法通过Eclipse从Tomcat服务器重新连接到Derby - Unable to reconnect to Derby from Tomcat server started via Eclipse 从Eclipse启动时,Tomcat会忽略logging.properties - Tomcat ignores logging.properties when started from Eclipse 从Eclipse开始关闭远程调试的Tomcat - Shutting down remotely debugged tomcat started from eclipse 无法访问Eclipse启动的Tomcat - Failed to access Tomcat started by Eclipse 为什么Java动态服务器只能在独立的Tomcat上运行但不能在Eclipse上运行 - Why java dynamic server just works on stand alone Tomcat but not eclipse 我的JLabel刷新方式有所不同,具体取决于Eclipse项目。 为什么? - My JLabel refresh differently, depending on the Eclipse project. Why? 从命令行启动时,eclipse中的lombok在Windows 7中有效,但从“开始”按钮启动时,则无效 - lombok in eclipse works in windows 7 when started from the command line, but not when started from the start button
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM