tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Milt Epstein <mepst...@uiuc.edu>
Subject RE: Tomcat Loads Deleted Context?
Date Thu, 05 Feb 2004 04:58:28 GMT
On Wed, 4 Feb 2004, Yansheng Lin wrote:

> Hi,
>
> No, I didn't create the context configuration file under
> /conf/[enginename]/[hostname]/.  It was created by Tomcat on the
> fly.

Really?!

I just tried this myself, and you're right, it does get created by
Tomcat!  That is, when I added a <Context> tag to server.xml for my
webapp outside of Tomcat's webapps directory, Tomcat created a context
configuration file for my webapp in conf/<engine>/<host>.  And it
stayed there after I deleted that <Context> tag from server.xml.

I amend what I said before :-).  And I agree with you -- it should be
Tomcat's responsibility to delete the context configuration file it is
creating.

(What makes it even worse is that the context configuration file isn't
even complete with what's included in the <Context> tag in server.xml.)

>       And my webapp wasn't starting up twice, which is good.  Also I
> can delete that dir, but it would be recreated next time when I
> restart Tomcat5.  I think the confusion lies on whether it's user's
> responsibily or the container's to clean up the configuration file
> after user deleting a context element in server.xml.
>
> In tomcat user-guide:
> http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html,
> there is nothing about when a context descriptor is created, and
> what happens if you decide to delete a context in your
> server.xml.  It would be nice if the container refreshes that
> directory/recreates all the context descriptors when server.xml is
> modified.  But maybe there is some other setting I don't know of in
> 5.  I didnt' have this problem with tomcat 4 before.

Yes, it seems several things about the way this works have been
changed from 4.  (For example, the location of the context
configuration files, and how they are managed, automatically created,
modified, and/or deleted.)


> -----Original Message-----
> From: Milt Epstein [mailto:mepstein@uiuc.edu]
> Sent: Wednesday, February 04, 2004 12:12 PM
> To: Tomcat Users List
> Subject: RE: Tomcat Loads Deleted Context?
>
> >                        I removed the <Context> for that webapp in
> > conf/server.xml.
>
> Hmmm -- you had a <Context> element for this webapp in server.xml
> *and* a separate context configuration file?  That's redundant,
> because they serve the same purpose.  I'm not sure what would happen
> in that case -- were you per chance seeing your webapp starting up
> twice?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
mepstein@uiuc.edu

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message