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
> 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
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
> 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
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 l'inst
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
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 pr
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
mo
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 META-INF/cont
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., wha
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 perfectly
11 matches
Mail list logo