tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gautam Gothoskar <majhigam...@yahoo.com>
Subject Re: Deploying in ROOT folder using a war file
Date Wed, 30 Nov 2005 20:34:37 GMT
Hi Mark,
  Thanks for the quick reply. But in doing the way you
have mentioned, tomcat does NOT expand the classes etc
in the ROOT folder. The application does get loaded
and work. I was wondering if there is any way that the
war file could be expanded in the ROOT folder?

regards,
Gautam.

--- Mark Thomas <markt@apache.org> wrote:

> Gautam Gothoskar wrote:
> 
> Options:
> - Name your web-app ROOT.war
> - Put your web-app outside the appbase and place a
> ROOT.xml in the appbase
> 
> Mark
> 
> > Hi!
> >   I have the following issue:
> >   I have a war file (myapp.war) which when
> deployed in
> > tomcat is accessible by using the url
> > http://localhost:8080/myapp. Tomcat creates a
> folder
> > called 'myapp' in the webapps directory. But I
> need to
> > configure the app in such a way that the the app
> is
> > accessible without any context path
> > (http://localhost:8080). This is possible if I
> copy
> > the expanded files from myapp folder into the ROOT
> > folder. But how do I tell tomcat to extract the
> files
> > into the ROOT folder instead of creating a 'myapp'
> > folder for deployment?
> >    I tried using myapp.xml file in the webapps
> folder
> > and adding the following content to it:
> >    <Context path="" docBase="myapp.war" debug="0">
> >    </Context>
> >    What this does is it creates the myapp folder
> but
> > the application is accessible using both urls:
> > http://localhost:8080/myapp as well as
> > http://localhost:8080/. I also see that 2 servlet
> > instances are loaded in memory.
> > 
> >    Any help will be appreciated.
> > 
> >  Thanks,
> >  Gautam.
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail:
> users-help@tomcat.apache.org
> > 
> > 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail:
> users-help@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