Will not work on TC4 in the war. That's why I asked earlier. It will on TC5.

When you deploy look in the logs or look in
$Catalina_Home/conf/Catalina/localhost and see if there is a yourappname.xml
there. If not then TC is not seeing your context.xml .

If it is you may try setting up a GlobalResource for the database pool.

It all works fine under TC5. If that's an option.

Doug

----- Original Message ----- 
From: "White, Joshua A (HTSC, CASD)" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, March 25, 2004 8:43 AM
Subject: RE: context.xml - what's the secret?


> 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]
>
>



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

Reply via email to