File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat" Watch "Tomcat" New topic


Rani Vish

Joined: Feb 03, 2006
Posts: 22
Hi All ,

I want my page to be displayed when i start tomcat as
instead of giviing http://localhost:8080/

Jean Mathew

Joined: Feb 07, 2005
Posts: 4
Change the <Connector port="8080"... to <Connector port="80"... of <TOMCAT_HOME>/bin/jakarta-tomcat-5.0.28/conf/server.xml

If you are using windows, edit <WINDOWS_HOME>/system32/drivers/etc/hosts file and add the followig line

If you are using linux, edit /etc/hosts file

Create a MyServer.xml file in the <TOMCAT_HOME>/conf/Catalina/localhost folder with the following content

<Context path="" docBase="<path_to_your_application>" debug="0" privileged="true">

Restart the tomcat.

Jean Mathew<br />Kochi, Kerala, India
Rani Vish

Joined: Feb 03, 2006
Posts: 22

I follwed the steps but it is giving the following error message ,

The host specified in your URL could not be found.
This error could have been caused by:

Bad / misspelled URL
Following an invalid link
Your network connection and/or transient conditions on the Internet
I agree. Here's the link:
subject: Tomcat
jQuery in Action, 3rd edition