简体   繁体   中英

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. But I can't open localhost:8080 to visit tomcat's own page.how so? Thanks in advance!

By default, Eclipse will not use the web container (tomcat in your case) files directly. It will copies some required files into <your_workspace>/.metadata/.plugin/org.eclipse.wst.server.core/ and run server from there.

The localhost:8080 page in tomcat are actually a default webapp call ROOT , you can find it in $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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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