tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arnaud MERGEY <amer...@sunopsis.com>
Subject Re: something wrong creating datasource after war deployement
Date Tue, 09 Jan 2007 09:57:53 GMT
thnaks for all,
it's clear for me now.

Caldarale, Charles R a écrit :
>> From: Arnaud MERGEY [mailto:amergey@sunopsis.com] 
>> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>   


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message