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

Replacing "Welcome to Tomcat" as Default

John Davis
Ranch Hand

Joined: Nov 02, 2000
Posts: 189
Accessing port 80 for my Tomcat installation yields the default app , "welcome to Tomcat". This is a useful app, and I use it often to obtain access to Tomcat management and administration.
However, I want to setup another web app as the default.

I am guessing that the way to go about this would be to :

1. deinstall the "welcome to Tomcat" web app and
2. re-install it with a file URL and context path
3. install my web app as the default app.

I don't know what procedure to use to accomplish (3) above, and I'm not sure about this plan. I could just try it and see if it works, but I can't afford the risk since I already have 6 web apps being served by this installation and I don't want to screw things up. Manager Help doesn't seem to provide any help on this issue (unless I overlooked something).
Does anybody know how I can get this to work?
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
There are only two reasons that you see "Welcome to Tomcat"
1. The ROOT directory is what you get by default
2. ROOT has an index.jsp file and the <welcome-file-list> element of the default web.xml has index.jsp as one of the welcome file defaults that the default servlet looks for.

Just substitute your own welcome file and WEB-INF under ROOT and you are in business.
I agree. Here's the link:
subject: Replacing "Welcome to Tomcat" as Default
It's not a secret anymore!