tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "BATCHELOR, SCOTT \(CONTRACTOR\)" <SCOTT.BATCHE...@DFAS.MIL>
Subject RE: autocreate a Context Descriptor for webApps without META-INF/context.xml
Date Tue, 25 Apr 2006 18:11:59 GMT
I would like to know if there is an answer to this as well.

Thanks, 



-----Original Message-----
From: Bodo Piehl [mailto:Bodo.Piehl@web.de] 
Sent: Sunday, April 23, 2006 1:14 PM
To: users@tomcat.apache.org
Subject: autocreate a Context Descriptor for webApps without
META-INF/context.xml

I read in the documentation in chapter "A word on Contexts" the text
below.

If I put a war-file (which doesn't contain a META-INF/context.xml) into
the webapps-dir, the war-file is extracted and the webApp deployed, e.g.
on startup.

But afterwards the Context Descriptor isn't autogenerated and placed in
  $CATALINA_HOME/conf/[enginename]/[hostname]/
as expected.

As a result my webApp is deployed every startup again.

Do I need to set a flag to turn on that behavior in Tomcat?

I use Tomcat 5.5.16.
Can anybody reproduce my problem?

thanks

Bodo

----
Context Descriptors not only help Tomcat to know how to configure
Contexts but other tools such as the Tomcat Manager and TDC often use
these Context Descriptors to perform their roles properly.

The locations for Context Descriptors are;

   1. $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml
   2. $CATALINA_HOME/webapps/[webappname]/META-INF/context.xml

If a Context Descriptor is not provided for a Context, Tomcat
automatically creates one and places it in (1) with a filename of
[webappname].xml although if manually created, the filename need not
match the web application name as Tomcat is concerned only with the
Context configuration contained within the Context Descriptor file(s).
----
_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig.
Jetzt gleich testen! http://f.web.de/?mc=021192


---------------------------------------------------------------------
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