This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Replacing "Welcome to Tomcat" as Default

 
John Davis
Ranch Hand
Posts: 189
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 13048
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic