tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: tomcat server.xml and deploy
Date Tue, 22 Apr 2003 20:37:28 GMT
Hi Shapira,

I use a META-INF/context.xml with quite some applications with Tomcat 
4.1.12 and 4.1.18.
However, Tomcat
*) changes the server.xml, renaming the old server.xml to 
This leaves plenty of old server.xml files at the conf directory after 
some redeployments.
==> is there any way to suppress this?
*) Tomcat also ignores the new way of storing the context.xml into 
/webapps/myapp.xml which makes server.xml much easier to read because all 
the context configuration is cleanly stored aside.

==> Do you know whether this two shortcomings will get fixed in the nearby 
It seems to be quite easy to do, as one would only have to change the 
manager app, but I currently don't have the spare time to finger into it 

thx alot

"Shapira, Yoav" <> 
22.04.2003 19:53
Please respond to
"Tomcat Users List" <>

"Tomcat Users List" <>

RE: tomcat server.xml and deploy

It's not supposed to: if you have a context-defining xml file, tomcat
will recognize and use that.  You don't need to put anything in
server.xml, and tomcat won't put anything there either.

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Rick []
>Sent: Tuesday, April 22, 2003 1:44 PM
>To: Tomcat Users List
>Subject: Re: tomcat server.xml and deploy
>I tried as you stated but after I redeploy with ANT it
>does not seem to update tehserver.xml witht eh
>context.xml within the war.
>I bouble checked teh war that is being deployed and
>the context.xml is under the WEB-INF directory.
>what could I be doing wrong?  I also restared Tomcat
>just to make sure.
>override="true" cachingAllowed="true"
>cookies="true" crossContext="true" debug="0"
>displayName="kmwsystems JSP" docBase="C:\Program
>Files\Apache Group\Tomcat
>path="/kmwsystems" privileged="false"
>reloadable="true" swallowOutput="true"
>  <Logger
>override="true" debug="0" directory="C:\Program
>Files\Apache Group\Tomcat 4.1\webapps\kmwsystems\logs"
>prefix="app_kmwsystems_log." suffix=".txt"
>timestamp="true" verbosity="1"/>
>--- Jacob Kjome <> wrote:
>> I assume that when you say "deploy", you mean a
>> deploy using the catalina
>> ant manager "deploy" task.  Using this task will
>> cause Tomcat to physically
>> modify the server.xml to account for the context.
>> If you are adding
>> something to the server.xml and then do an ant
>> deploy, you will want to add
>> your <Context ...> information to a context
>> configuration file sent along
>> wth the .war file rather than editing server.xml
>> separately.  The way you
>> do this is by adding a "context.xml" file to the
>> META-INF directory of the
>> .war file.  Tomcat will see this and use it.  The
>> server.xml will be upated
>> with the info stored in this file.
>> Hope that helps.
>> Jake
>> At 10:20 AM 4/22/2003 -0700, you wrote:
>> >
>> >    I am trying to add a logger element to by
>> context
>> >    entry in the server.xml.
>> >
>> >    At start up of Tomcat is logd correctly
>> >
>> >    When i do a redeploy it server.xml is updated
>> and
>> >    back
>> >    to the original state without the logger
>> element.
>> >    logging stops.
>> >
>> >
>> >    What am i doing wrong?
>> >
>> >    thanks
>> >
>> >
>> >
>> >
>> >=====
>> >Use the link below to send a Nice Card today!
>> >
>> >
>> >please reply to
>> >
>> >__________________________________________________
>> >Do you Yahoo!?
>> >The New Yahoo! Search - Faster. Easier. Bingo
>> >
>> >
>> >To unsubscribe, e-mail:
>> >For additional commands, e-mail:
>Use the link below to send a Nice Card today!
>please reply to
>Do you Yahoo!?
>The New Yahoo! Search - Faster. Easier. Bingo
>To unsubscribe, e-mail:
>For additional commands, e-mail:

This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, 
proprietary and/or privileged.  This e-mail is intended only for the 
individual(s) to whom it is addressed, and may not be saved, copied, 
printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your 
computer system and notify the sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message