Thanks a lot for the prompt reply. I have tried doing that but in that case I will not be able to access my application using URL http://localhost:8080/myapp/, I'll just be able to access it using http://localhost:8080/ I want the users of my web application to be able to access it using both the URLs. This is the requirement of our project.
Thanks Vibhuti -----Original Message----- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 6:44 PM To: Tomcat Users List Subject: Re: Setting context in tomcat6 Rename your app ROOT (case is important here) and it will become the default webapp. --David vibhuti wrote: > Hi > > > > I've been trying to set my application as default application using tomcat6 > but none of the approaches I tried worked. > > > > First, I created a file <app-name>.xml in /tomcat/conf/Catalina/localhost > folder but this did not make my application default. It worked on tomcat5 > but not on tomcat6. Following are the entries of my myapp.xml file: > > > > <Context path="" debug="0" privileged="true" docbase="/myapp" /> > > > > I want to access my application as: http://localhost:8080/ instead of > http://localhost:8080/myapp > > > > Second, I tried creating context.xml in /webapps/myapp/META-INF folder with > same contents as given above but that didn't work. > > > > It is written in tomcat docs that the <Context> tag should not be used in > server.xml, but adding the tag to server.xml seemed the only solution. Also, > when I added <Context> tag to server.xml it worked but the context seemed to > be loaded twice by tomcat. > > > > Is there any alternative to adding <context> tag to server.xml file? Why is > it not advisable to add the <context> tag in server.xml? > > > > Please provide a workaround for this. It is urgent. > > > > Thanks > > > > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]