tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: two different oracle driver version at the same time
Date Wed, 14 Nov 2007 17:48:00 GMT
Hash: SHA1

Manuel, wrote:
> I thought that I could put the driver in the WEB-INF/lib of the two
> applications (no application need to use the two driver at the same time),
> but I have seen in the documentation and faqs that you must put the driver
> in the $CATALINA_HOME/lib directory.

If you are using container-managed database connections (JNDI DateSource
or something similar), then the server needs access to the driver. You
can try to put each driver in the WEB-INF/lib of each application and
declare the datasource within context.xml... not sure if that will work
because it depends on Tomcat's rules for which ClassLoader is used while
setting up the webapp's Context, but before it is actually starting
servlets and stuff like that (which clearly uses the webapp's ClassLoader).

> The problem is that i can not put the two driver (of different versions)
> in the lib directory.

Of course.

> It is there a clean way to put the driver in the application directory,
> and the application takes care of doing the pooling etc.

Try my above suggestion and see if it works -- it shouldn't take too
long to try it.

If that doesn't work, you may need to run two separate instances of
Tomcat. If it turns out that you need to do this, just read the
"Advanced Configuration - Multiple Tomcat Instances" section of the
RUNNING.txt file that ships with Tomcat. It's quite easy to run multiple
instances if necessary.

- -chris
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla -


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message