tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <>
Subject Re: Installs/deploys to work dir... why?
Date Wed, 16 Apr 2003 17:57:32 GMT

I'll paste the contents of my ccf.xml (context configuration file) 
below.  The web.xml has little to do with this functionality.  If you are 
looking for info on that, look at the spec, a book on servlets, or examples 
out there on the web.

Before Ant token filter copying...

<Context path="@context.path@" docBase="@context.docbase@"
          debug="5" reloadable="true" crossContext="true">

             timestamp="true" />


After ant token filter copying...

<Context path="/Barracuda" 
          debug="5" reloadable="true" crossContext="true">

             timestamp="true" />


Also, I rename this as "context.xml" and add it to the META-INF directory 
of my .war file when I use the catalina ant "deploy" task.  This gets 
automatically used by Tomcat.  The file, very specifically, must be named 
"context.xml", though.

Also, as for your tomcat startup target, you might look into the following 
ant archive emails....

I haven't tried either solution, but you should definitely try them 
out.  This woud provide your needed spawning of exec tasks functionality.


At 07:01 PM 4/16/2003 +0200, you wrote:

>Jacob Kjome wrote:
>>At 06:45 PM 4/16/2003 +0200, you wrote:
>>>Answering your mail:
>>>I didn't write, the war file is put in the webapps dir... It's put into 
>>>the work/.../manager dir. Would you mind rereading my - admittedly long 
>>>- post? I'd really appreciate some more discussions on the install and 
>>>deploy tasks. Need more input...
>>Yep, you are right.  I definitely misread what you wrote.
>>What other input would you like?  Unfortunately, the current behavior of 
>>putting things in the work dir and serving directly from the .war file 
>>rather than expanding to a directory (as is the default in the webapps 
>>dir) is not something I can explain.  I really don't have a problem with 
>>the behavior so I haven't pursued the reasons behind it.  If you want to 
>>know more, you might try asking on the tomcat-dev list and ask the people 
>>who implemented the behavior themselves.
>Well, OK. That's where I will go next.
>Did you re/write the <catalina-install> and <catalina-deploy> task? What's

>in a config file anyway?
>Would you mind sending me a copy of your config file? I have no idea how 
>one looks. Also, I'd appreciate, if you could send me your web.xml 
>deployment descriptor file... These are two issues for me I couldn't find 
>much info about.
>Is there anything you can add to the startup-local stuff?
>PS: just paste my email add from the header
>To unsubscribe, e-mail:
>For additional commands, e-mail:

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