if a war file is in the webapps directory, the context will be build upon starting tomcat automatically, assuming the AutoStart interceptor has been disabled. The <context> section in server.xml is to hardcode certain parameters such as reloadable, crosscontext etc.
the war gets expanded into a dir of the same name upon startup as the context gets initiated at startup.
-----Original Message-----
From: Pavan Seth [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 07, 2001 7:37 PM
To: [EMAIL PROTECTED]
Subject: Re: contextAdmin question
You mean to say that..if i create a new one like
below..
<Context path="/admin"
docBase="webapps/admin"
crossContext="true"
debug="0"
reloadable="true"
trusted="false" >
</Context>
it is not persistent? It disappears after
restart/restop?
--- [EMAIL PROTECTED] wrote:
> That was a really good question, and not knowing the
> answer, I copied my
> server.xml file, renamed one of the copies, and
> started tomcat. Added new
> contexts, shut down tomcat, and compared the two
> files. Apparently the
> answer* to your question is "yes, you will have to
> manually code new contexts
> into your server.xml file if you want them
> (contexts, that is) to persist
> between start/stops of tomcat."
>
> * == This answer derived on a Win98 box running
> Tomcat 3.2.1. YMMV.
>
> So my follow-up question is: does anyone know if
> this is the intended
> functionality of the contextAdmin tool? And beyond
> that: where can I find
> more information about requested, recommended,
> planned, and existing Tomcat
> administration tools/servlets. Anyone? Anyone?
>
> > Here's another question regarding the contextAdmin
> application that comes
> > with Tomcat.
> >
> > Is it possible to save the new context created to
> server.xml in any way so
> > that it will exists when I restart tomcat, or do I
> have to write this code
> > myself?
> >
> >
>
>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
