tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <d...@cornell.edu>
Subject Re: Tomcat 4.0/JDBC driver configuration?
Date Thu, 29 Nov 2001 18:08:49 GMT
Take a look at the JNDI howto in the TC 4 web site.  It does a reasonably 
good job of describing how to set things up.

For the location of classes12.jar, there are three place it could be placed:
WEB-INF/lib of your web app for use by that app only
$CATALINA_BASE/lib for use by all apps, but not TC 4
$CATALINA_BASE/common/lib for use by all apps and TC 4

Of course wherever you put the jar, you'll have to bounce the service to have 
it pick up the jar in the new location.  CLASSPATH is ignored in TC 4 because 
it caused a lot of headaches in previous versions of tomcat.

--David

On Thursday 29 November 2001 12:01 pm, you wrote:
> Can someone point me in the right direction or provide an example of
> configuring an application to use JDBC under Tomcat 4.0?  I was able to use
> both thin and OCI Oracle JDCB drover connections by copying the
> classes12.zip to $CATALINA_HOME/common/lib directory and renaming it to
> classes12.jar, but that's not a good long term solution.  I found having
> the driver in the CLASSPATH doesn't work.
>
> I suspect web.xml and/or server.xml is the place to configure the
> deployment details.  Any examples or references to examples would be
> greatly appreciated.
>
> Mark
>
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message