You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Madere, Colin" <co...@ieminc.com> on 2003/03/07 01:46:06 UTC
RE: JNDI datasource frustrations... (got mine working)
Have you folks figured this out? Found this thread in the archive (have
been off the list a few weeks) and am having the same problem in Tomcat
4.1.18.
I set up (as per How-to) for Tomcat 4.0.4 inside Netbeans (on Win 2k) and
successfully connected and interacted with both a remote PostgreSQL 7.3 and
a local MS SQLServer 2000 (desktop edition) database. However, when I try
to use the same configuration on 4.1.18 (on Solaris 8) I get the "Coannot
load JDBC driver class 'null'" error. Changing the configuration from the
4.0 How-to to the 4.1 How-to (specifically for Datasources) does not seem to
have any affect.
Important to note: When I comment out the whole block <Resource> and
<ResourceParams> in server.xml and restart Tomcat I get the exact same error
(driver class 'null' thing).
The way I got mine working was I put BOTH the parameter from the 4.0 docs
and the 4.1 that in my <ResourceParams> that hold the connect url. If I
leave either one out, I get an error.
Summary:
leave out this parameter from the 4.0 JNDI documentation:
get this error:
Cannot load JDBC driver class 'null'
leave out this parameter from the 4.1 JNDI-JDBC documentation:
get this error:
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org