Hi Chris

Christopher Schultz wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matt,
I agree the documentation is terse and/or missing. If you implement any
of these strategies, consider submitting an update to the documentation
to help others in the future.
will do. I'm changing jobs soon and the new company uses JBoss (:-<), so it may take a while to convince them how good tomcat is ;-p! But I'm a big believer in FOSS & the community, so I'd love the chance to contribute something to the tomcat docs, especially if it makes life easier for other hackers like me...
It's easy to deploy using a context.xml file that is /not/ inside a WAR
file:

Start with the context.xml file that you would have put into your WAR
file. Add the "docBase" element to the <Context> element to configure
the location of the WAR file. Put your WAR file somewhere outside of the
auto-deploying webapps directory. Put the context.xml file into
$CATALINA_HOME/conf/[enginename]/[hostname]/[appname].xml.
thanks! that's just the pointer I need. Question but, if the war is outside the auto-deploy'ing webapps dir, then how do you auto-deploy new wars? do you have to use the manager app, or the command-line interface? that's ok, but it'd be a shame to lose the nicety of just dropping in a war and it auto-deploying...
How do you go about submitting an update
to the documentation? I assume there's a short list of committers...

You can certainly post to this list. Several (of not all) Tomcat devs
lurk on this list. Just mark your post clearly and see what happens.
will do.
every time we deployed a war without a context .xml tomcat would delete
the existing one, or overwrite it.

You mean the context.xml file, not the WAR, right? When you step outside
of the standard (read: recommended) configurations, then you will have
to fight Tomcat to get things working properly. That's just the price
you pay: your deployment will be complicated if you want to do things
differently.
yes, the context.xml. it was very frustrating! Mainly because at the time we didn't have a very good idea of tomcat deployment details. the docbase method you mentioned sounds much better.

have you ever used OC4J? Anything before 10g was hopeless, but I do like the way it handles defining data-sources, there's a dedicacted data-sources.xml file for the server where you configure jndi data-sources. very simple and user-friendly.

thanks for your help Chris!

--
Matthew Kerle
IT Consultant
Canberra, Australia

Mobile: +61404 096 863
Email : [EMAIL PROTECTED]
Web : http://threebrightlights.blogspot.com/


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to