tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse Keller" <jessekel...@aya.yale.edu>
Subject Re: Basic JNDI setup problems - "Cannot load JDBC driver class 'null'"
Date Tue, 08 Apr 2003 20:44:16 GMT
Graeme --

Yes, both files exist in the right place.

I'm now getting a new error message in the log (turned up the debugging
level). It doesn't mean anything to me, but maybe to someone with more
experience?

2003-04-08 16:37:52 NamingContextListener[/Standalone/localhost/DBTest2]:
Creating JNDI naming context

2003-04-08 16:37:52 NamingContextListener[/Standalone/localhost/DBTest2]:
Resource parameters for jdbc/TestDB = ResourceParams[name=jdbc/TestDB,
parameters={factory=org.apache.commons.dbcp.BasicDataSourceFactory,
url=jdbc:mysql://localhost:3306/javatest?autoReconnect=true,
password=javadude, maxWait=10000, maxActive=5,
driverClassName=org.gjt.mm.mysql.Driver, username=javauser, maxIdle=3}]

2003-04-08 16:37:52 NamingContextListener[/Standalone/localhost/DBTest2]:
Adding resource ref jdbc/TestDB

2003-04-08 16:37:52 NamingContextListener[/Standalone/localhost/DBTest2]:
ResourceRef[className=javax.sql.DataSource,factoryClassLocation=null,factory
ClassName=org.apache.naming.factory.ResourceFactory,{type=scope,content=Shar
eable},{type=auth,content=Container},{type=factory,content=org.apache.common
s.dbcp.BasicDataSourceFactory},{type=url,content=jdbc:mysql://localhost:3306
/javatest?autoReconnect=true},{type=password,content=javadude},{type=maxWait
,content=10000},{type=maxActive,content=5},{type=driverClassName,content=org
.gjt.mm.mysql.Driver},{type=username,content=javauser},{type=maxIdle,content
=3}]

// everything looks ok to here, right? but now:

2003-04-08 16:37:52 NamingContextListener[/Standalone/localhost/DBTest2]:
Resource parameters for UserTransaction = null

----- Original Message -----
From: "Graeme J Sweeney" <graeme@gjsweeney.com>
To: "Jesse Keller" <jessekeller@aya.yale.edu>
Sent: Tuesday, April 08, 2003 2:41 PM
Subject: Re: Basic JNDI setup problems - "Cannot load JDBC driver class
'null'"


> On Tue, 8 Apr 2003, Jesse Keller wrote:
>
> > argh! Thank you for the suggestions, but *still* get the same error
message.
> > This is going to kill me -- I've been trying to get past this one tiny
> > config issue for two straight days. Is there any other config file that
> > could be affecting things? Some other setting somewhere that I should
check?
>
> Confirm :
>
> 1. <tomcat-home>/common/lib/mysql-connector-java-3.0.6-stable-bin.jar
> 2. <tomcat-home>/common/lib/jdbc2_0-stdext.jar
> 3. Anything in the classpath? Clear it and just let tomcat build it.
>
> <snip/>
>
> I've attached the JNDI set-up I have working which is slightly
> different from DBCP.
>
> HTH,
>
> --
> Graeme -
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message