Re: catalina-ant task (deploy) question

2004-03-24 Thread Harry Mantheakis
Brice

I may have got you wrong, and I cannot offer any solutions specific to your
questions (because I am in a hurry!) but here is how I sorted things out for
myself recently, using what I know as the Tomcat 'manager' tasks, but which
I assume are the same as what you refer to as the 'catalina-ant' tasks.

Basically, with my local system - used for development - I have exploded WAR
files and their respective context files are *copied* from my project folder
to the conf/Catalina/localhost directory.

I use the Tomcat 'manager' tasks to STOP the application. Then I use a
combination of ant 'sync' and 'copy' tasks to update my WAR file (and its
context) from my project folder. Then I use the manager START task to get
the app running again.

For my deployed stuff - on a separate server - I only use packed WAR files,
so my ant task is simple:

- undeploy
- copy new WAR file to webapps directory
- deploy

And that seems to automatically take care of updating the application's
context file, which makes sense.

HTH

Harry Mantheakis
London, UK


 I was reading up on the context.xml file yesterday in the Tomcat-5.0
 documentation on the main Jakarta Tomcat site and came across the
 information that the context.xml file can be placed in
 conf/Catalina/localhost -OR- it can be placed in the META-INF directory
 of your web-app.
 
 Now, when I use the catalina-ant deploy task, with the localWar
 attribute pointing to file:///${basedir} -- where ${basedir} is the
 directory containing the exploded WAR for my project -- it doesn't seem
 to pick up that context.xml file that I've placed in the META-INF
 directory (leaving out the config attribute to explicitly point it to
 that file). I'm leaving out the config attribute, because it appears
 that the deploy task then copies the XML file provided to the
 conf/Catalina/localhost directory ... and I want to be able to drive the
 web-app from the context.xml file provided in the META-INF directory (so
 when I edit the context.xml file in META-INF, the application will
 reload (hot)) - to get this same effect with the context placed in
 conf/Catalina/localhost, I'd have to remove and re-install the context
 (since that file lives outside of the deployment directory, at that point).
 
 I guess I'm getting caught up in the fact that the catalina-ant tasks
 seem to arbitrarily limit what can be done with deploying projects to
 Tomcat ... versus what Tomcat's true abilities are.
 
 Any clarity here would be appreciated!!


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: catalina-ant task (deploy) question

2004-03-24 Thread Brice Ruth
Thanks, Harry. I'll take a look at this and see what I can come up with 
... Thanks again.

Harry Mantheakis wrote:

Brice

I may have got you wrong, and I cannot offer any solutions specific to your
questions (because I am in a hurry!) but here is how I sorted things out for
myself recently, using what I know as the Tomcat 'manager' tasks, but which
I assume are the same as what you refer to as the 'catalina-ant' tasks.
Basically, with my local system - used for development - I have exploded WAR
files and their respective context files are *copied* from my project folder
to the conf/Catalina/localhost directory.
I use the Tomcat 'manager' tasks to STOP the application. Then I use a
combination of ant 'sync' and 'copy' tasks to update my WAR file (and its
context) from my project folder. Then I use the manager START task to get
the app running again.
For my deployed stuff - on a separate server - I only use packed WAR files,
so my ant task is simple:
- undeploy
- copy new WAR file to webapps directory
- deploy
And that seems to automatically take care of updating the application's
context file, which makes sense.
HTH

Harry Mantheakis
London, UK
 

I was reading up on the context.xml file yesterday in the Tomcat-5.0
documentation on the main Jakarta Tomcat site and came across the
information that the context.xml file can be placed in
conf/Catalina/localhost -OR- it can be placed in the META-INF directory
of your web-app.
Now, when I use the catalina-ant deploy task, with the localWar
attribute pointing to file:///${basedir} -- where ${basedir} is the
directory containing the exploded WAR for my project -- it doesn't seem
to pick up that context.xml file that I've placed in the META-INF
directory (leaving out the config attribute to explicitly point it to
that file). I'm leaving out the config attribute, because it appears
that the deploy task then copies the XML file provided to the
conf/Catalina/localhost directory ... and I want to be able to drive the
web-app from the context.xml file provided in the META-INF directory (so
when I edit the context.xml file in META-INF, the application will
reload (hot)) - to get this same effect with the context placed in
conf/Catalina/localhost, I'd have to remove and re-install the context
(since that file lives outside of the deployment directory, at that point).
I guess I'm getting caught up in the fact that the catalina-ant tasks
seem to arbitrarily limit what can be done with deploying projects to
Tomcat ... versus what Tomcat's true abilities are.
Any clarity here would be appreciated!!
   



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


catalina-ant task (deploy) question

2004-03-23 Thread Brice Ruth
I was reading up on the context.xml file yesterday in the Tomcat-5.0 
documentation on the main Jakarta Tomcat site and came across the 
information that the context.xml file can be placed in 
conf/Catalina/localhost -OR- it can be placed in the META-INF directory 
of your web-app.

Now, when I use the catalina-ant deploy task, with the localWar 
attribute pointing to file:///${basedir} -- where ${basedir} is the 
directory containing the exploded WAR for my project -- it doesn't seem 
to pick up that context.xml file that I've placed in the META-INF 
directory (leaving out the config attribute to explicitly point it to 
that file). I'm leaving out the config attribute, because it appears 
that the deploy task then copies the XML file provided to the 
conf/Catalina/localhost directory ... and I want to be able to drive the 
web-app from the context.xml file provided in the META-INF directory (so 
when I edit the context.xml file in META-INF, the application will 
reload (hot)) - to get this same effect with the context placed in 
conf/Catalina/localhost, I'd have to remove and re-install the context 
(since that file lives outside of the deployment directory, at that point).

I guess I'm getting caught up in the fact that the catalina-ant tasks 
seem to arbitrarily limit what can be done with deploying projects to 
Tomcat ... versus what Tomcat's true abilities are.

Any clarity here would be appreciated!!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]