简体   繁体   English

可以打开webapp但不能打开tomcat主页

[英]can open webapp but not tomcat home page

When I deploy a webapp to a server by eclipse i can visit the webapp's sites with external browsers with no problems. 当我通过eclipse将webapp部署到服务器时,我可以使用外部浏览器访问webapp的站点,没有任何问题。 But I can't open localhost:8080 to visit tomcat's own page.how so? 但是我无法打开localhost:8080访问tomcat自己的页面。如此? Thanks in advance! 提前致谢!

By default, Eclipse will not use the web container (tomcat in your case) files directly. 默认情况下,Eclipse不会直接使用Web容器(在您的情况下为tomcat)文件。 It will copies some required files into <your_workspace>/.metadata/.plugin/org.eclipse.wst.server.core/ and run server from there. 它会将一些必需的文件复制到<your_workspace>/.metadata/.plugin/org.eclipse.wst.server.core/并从那里运行服务器。

The localhost:8080 page in tomcat are actually a default webapp call ROOT , you can find it in $CATALINA_HOME/webapps/ROOT . tomcat中的localhost:8080页面实际上是默认的webapp调用ROOT ,你可以在$CATALINA_HOME/webapps/ROOT找到它。

When Eclipse copies web container files, it DOSE NOT include deployed application, that's the reason you cannot see root page. 当Eclipse复制Web容器文件时, DOSE不包括已部署的应用程序,这就是您无法查看根页面的原因。

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

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