Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Changing Default Context Of Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Changing Default Context Of Tomcat" Watch "Changing Default Context Of Tomcat" New topic
Author

Changing Default Context Of Tomcat

Amirr Rafique
Ranch Hand

Joined: Nov 14, 2005
Posts: 324
Hi all

How can I change default context of tomcat. Actaully I want to show welcom page of my application for http://localhost:8080 url

Please help me

Thanks


"Know where to find the solution and how to use it - that's the secret of success."
Ghufran Ul Haq
Greenhorn

Joined: Apr 10, 2007
Posts: 29
Hi Amir

Try this.

Within the <Host></Host> element in the conf/server.xml
enter
<Context path="" docBase="yourAppName" debug="0"/>


Amirr Rafique
Ranch Hand

Joined: Nov 14, 2005
Posts: 324
Thanks Ghufran
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Changing Default Context Of Tomcat
 
Similar Threads
setting index.html to my context root
how to get administrative form on jboss
Apache Tomcat Integration
Apache web server
Why local host shows error?