tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <d...@cornell.edu>
Subject Re: Setting context in tomcat6
Date Tue, 15 Jul 2008 13:14:21 GMT
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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message