tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wynkoop, Robert M" <robert.m.wynk...@citigroup.com>
Subject RE: how to use single dbcp resource across multiple webapps
Date Thu, 11 Sep 2003 19:41:05 GMT
Paul, 

I just went through this exercise today.
(See msgs with subject = "java.sql.SQLException: Cannot load JDBC driver
class 'null'")
I do not know why it does not work when set up in the global context(Tomcat
admin puts datasources here).  Let us know if you get an answer. 

Later,


Robert Wynkoop

-----Original Message-----
From: Paul [mailto:paul@msci.ca]
Sent: Thursday, September 11, 2003 2:04 PM
To: Tomcat Users List
Subject: how to use single dbcp resource across multiple webapps


hi,

i setup dbcp according to Tomcat docs successfully for one web app, but when
tried to use resource (defined in server.xml) in second web app (with
appropriate WEB-INF/web.xml), get the following:

java.sql.SQLException: Cannot load JDBC driver class 'null'

meanwhile, dbcp resource works fine with first app.
i figure it is because the resource is defined within following context,
where path specifies first web app:

<Context path="/epl" docBase="epl" debug="5" reloadable="true"
crossContext="true">

do i need to define a second context and dbcp resource, or is there some way
to use a single dbcp resource across contexts/web-apps?

-paul lomack

Mime
View raw message