• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can't see my webapp from outside my PC

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic