No problem. I am using the "org.apache.catalina.ant.InstallTask" ant task.
As far as I know, this task does not copy the context XML into $CATALINA_HOME/conf/Catalina/localhost. Should it be doing this? In fact, the $CATALINA_HOME/conf/Catalina directory does not exist. Suggestions? -----Original Message----- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 9:08 AM To: Tomcat Users List Subject: Re: context.xml - what's the secret? Ok, this may sound like a rather obvious question, but how are you using the Ant task to install ? Are you using the deployer, or a custom ant task ? 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] This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
