Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Tomcat and the fly likes Can't see my webapp from outside my PC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Can Watch "Can New topic

Can't see my webapp from outside my PC

Paolo Lemos

Joined: Aug 19, 2011
Posts: 5
Hi all the forum.

Please Can somebody tell me how to REMOVE the "It Works" default page?, i cant find it anywere!. I have mi Webapp in the ROOT folder of mi pc, the server is configured to run in the 80 port and mi router have port 80 open. The good thing is that i can see mi webapp in mi pc, but canr do it from the outside. I have a NO-IP dns, but the dns or the ip both doesnt works... The browser shows "It Works". I have tried a lot of things and cant figure out how to resolve this. Why external users see the "it works" message??. Thanks.
andy brookes

Joined: Jun 29, 2008
Posts: 6
I'm no expert but the welcome page is usually set up in one of the config files (or used to be) such as in web.xml ; i'm sure someone well correct me ?

there are config files that set up for which welcome pages can be called. in older tomcat setups the web.xml calls the welcome page as a servlet or jsp;
when tomcat first started it compiled a class file for welcome jsp (index.jsp) and put it in work directory.

This used to be a pig if you were developing straight in ROOT and trying to use your own index.jsp.

i got around it by installing tomcat- but not running tomcat util I replaced the original index.jsp with my jsp, and and edited anyting in the web.xml
which might call the default welcome eg


if you have a webapp in the webapp directory, not in tomcat ROOT you shouldn't get any problems.
I agree. Here's the link:
subject: Can't see my webapp from outside my PC
It's not a secret anymore!