thnaks for all,
it's clear for me now.
Caldarale, Charles R a écrit :
From: Arnaud MERGEY [mailto:[EMAIL PROTECTED]
Subject: Re: something wrong creating datasource after war deployement
I updated the META-INF/context.xml in the unpacked directory,
You need to update the one in conf/Catalina/[host], since that overrides
the ones in the .war and the unpacked directory.
this is strange because when I update the META-INF/context.xml, I can
see newly datasources in the tomcat admin webapps (but with blank
driver class and url info).
It wouldn't surprise me if Tomcat is doing some merging of the two
<Context> elements, rather than enforcing a complete override.
If I update META-INF/context.xml in application without war file in
webapps, everything works and I can see newly datasources in
the tomcat admin webapps with driver class and url.
Tomcat automatically creates the conf/Catalina/[host]/[appname].xml file
from META-INF/context.xml only when deploying apps packaged in .war
files, regardless of the setting of unpackWARs; it does not create one
in the conf directory for apps that are deployed in an unpacked form,
although you may place your own in conf/Catalina/[host] to override the
one in META-INF.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]