Re: something wrong creating datasource after war deployement

2007-01-09 Thread Arnaud MERGEY
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

something wrong creating datasource after war deployement

2007-01-08 Thread Arnaud MERGEY
Hi something strange appends with an application On tomcat 5.5.20 (same behavior with tomcat 5.5.17) I deploy an application copying an unpacked war directory into webapps directory. I add a datasource updating the META-INF/context.xml and WEB-INF/web.xml like tomcat how-to. All works

Re: something wrong creating datasource after war deployement

2007-01-08 Thread Gregor Schneider
Check if there are any differencesx in the directories - $CATALINA_HOME/server/lib - $CATALINA_HOME/common/lib - $CATALINA_HOME/shared/lib My guess is, that in one of those directories there's a jar-file containing the database driver that is missing in your other Tomcat-installation. BTW.,

Re: something wrong creating datasource after war deployement

2007-01-08 Thread David Delbecq
Get the full stacktrace of exception to know when this happen. If both install are same, maybe one is on a server that has no access to the db (check the db security settings). Also, what did you compare with windiff? The webapp directories or the full tomcat install directores? Your

Re: something wrong creating datasource after war deployement

2007-01-08 Thread Arnaud MERGEY
Thanks for reply, my db is Oracle 9i The problem isn't a security or driver problem, I have tested also in the same tomcat, in webapps: - Cpying the unpacked version only, modify context and web.xml, all works perfectly. - Removing in the same tomcat the application, copying the war file and

Re: something wrong creating datasource after war deployement

2007-01-08 Thread David Delbecq
If you want to edit the context.xml yourself, remove it from the .war file. I suppose there is a conflict between the context.xml you deploy yourself and the one inside the .war. I think when you deploy an unpacked directory the META-INF/context.xml file is ignored. (Not 100% sure) En l'instant

Re: something wrong creating datasource after war deployement

2007-01-08 Thread Arnaud MERGEY
I need to provide a context.xml in the war because there are default datasources configured for my app., but it must be possible to add datasources after app. deployment. Like you, I think there is a conflict between context.xml in war and in unpacked directory (because wtihout war all works as

Re: something wrong creating datasource after war deployement

2007-01-08 Thread David Delbecq
The context.xml inside war will anyway override any custom datasrouces your may have created after previous deployment, so i think it's not a viable issue to use both (one will anyway always override the other). Maybe you can configure your custom datasource at server level (server.xml)? En

RE: something wrong creating datasource after war deployement

2007-01-08 Thread Caldarale, Charles R
From: Arnaud MERGEY [mailto:[EMAIL PROTECTED] Subject: Re: something wrong creating datasource after war deployement Like you, I think there is a conflict between context.xml in war and in unpacked directory (because wtihout war all works as expected) As David mentioned earlier, when

Re: something wrong creating datasource after war deployement

2007-01-08 Thread Arnaud MERGEY
file in webapps, everything works and I can see newly datasources in the tomcat admin webapps with driver class and url. Arnaud Caldarale, Charles R a écrit : From: Arnaud MERGEY [mailto:[EMAIL PROTECTED] Subject: Re: something wrong creating datasource after war deployement Like you, I

RE: something wrong creating datasource after war deployement

2007-01-08 Thread Caldarale, Charles R
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