Also, when you deploy your web application, does it copy the context XML into $CATALINA_HOME/conf/Catalina/localhost ? If it does not, then I suspect something is not working properly with the ant build file (everytime I write something like this, I get plenty of negative responses -- but at least, Joshua, you'll get a lot of information !)
White, Joshua A (HTSC, CASD) wrote:
No luck.
I am using the ant install task to install the war. I have tried naming the context fragment both context.xml and myAppName.xml. Any other ideas?
Joshua
-----Original Message----- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 8:03 AM To: Tomcat Users List Subject: Re: context.xml - what's the secret?
Hi Joshua,
If you're using a war file, then you should place the <Context> fragment inside META-INF then deploy it. If you have already deployed the web application (that is, it is either already expanded inside your web application directory, or the directory was manually created and your servlets and JSPs reside inside there), then the context's XML file goes into $CATALINA_HOME/conf/Catalina/localhost/
And remember that it should be given the same name as your web application (that is, if your web application is called 'MyWonderfulApp', then the name of the XML file should be MyWonderfulApp.xml. Not context.xml.
I spent the whole of last weekend figuring this out ... sigh !
HTH
--
"Men never do evil so completely and cheerfully as when they do it from
religious conviction." -- Blaise Pascal
+----------------------------------------------------------------+
| Pascal Chong |
| email: [EMAIL PROTECTED] |
| |
| Please visit my site at : http://cymulacrum.net |
| If you're using my documentation, please read the Terms and |
| and Conditions at http://cymulacrum.net/terms.html |
+----------------------------------------------------------------+
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
