简体   繁体   English

TOmcat7在Eclipse Kelper中不起作用

[英]TOmcat7 is not working in Eclipse Kelper

I am using Eclipse Kepler and Tomcat7 and when I try to run Tomcat from command prompt , everything works fine. 我正在使用Eclipse Kepler和Tomcat7,当我尝试从命令提示符运行Tomcat时,一切正常。 But when the tomcat is tried to run from eclipse, the tomcat homepage is not shown up though the server starts fine. 但是,当试图从Eclipse中运行tomcat时,尽管服务器启动正常,但tomcat主页未显示。 I have configured the server in the Eclipse Kepler. 我已经在Eclipse Kepler中配置了服务器。

Could anyone please suggest how to get the tomcat homepage to work inside the eclipse as I need this to debug my project . 任何人都可以提出建议,让我在eclipse中使用tomcat主页,因为我需要这样做来调试我的项目。

The eclipse homepage is not shown because eclipse by default do not copy the ROOT folder from tomcat webapps. 由于默认情况下eclipse不会从tomcat webapps复制ROOT文件夹,因此不会显示eclipse主页。

So you have rather to make eclipse point to an external application server rather than the embedded one (which may need advanced settings), or simply copy ROOT from the downloaded Tomcat AS 7 then paste it under /your-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp~/wtpwebapps . 因此,您需要使Eclipse指向外部应用程序服务器,而不是嵌入式服务器(可能需要高级设置),或者仅从下载的Tomcat AS 7复制ROOT ,然后将其粘贴到/your-workspace/.metadata/.plugins。 /org.eclipse.wst.server.core/tmp~/wtpwebapps

BR. BR。

I stopped using the tomcat/eclipse integration a long time ago, you can control tomcat from ant and maven so it will auto redeploy or start/stop your app during the build - this method I find less buggy and has less headaches. 我很久以前就停止使用tomcat / eclipse集成,您可以从ant和maven中控制tomcat,以便它在构建期间可以自动重新部署或启动/停止您的应用程序-这种方法可以减少错误,也可以减少麻烦。 You can also do the same for almost all j2ee servers 您也可以对几乎所有j2ee服务器执行相同的操作

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

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