aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Can Watch "Can New topic
Author

Can't see my webapp from outside my PC

Paolo Lemos
Greenhorn

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
Greenhorn

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

<servlet>
<servlet-name>default</servlet-name>
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>

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: http://aspose.com/file-tools
 
subject: Can't see my webapp from outside my PC