tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: Cannot load JDBC driver class 'null'
Date Thu, 24 Apr 2003 16:51:34 GMT

Make sure the jar containing your MySQL driver is under 
CATALINA_HOME/common/lib.  It has to be there or DBCP won't see it.

Jake

At 12:11 PM 4/24/2003 -0400, you wrote:
>Hi all
>I'm trying to configure the datasource example from the tomcat-docs, JNDI
>DataSource HOW-TO, for MySQL, but I'm getting the "Cannot load JDBC driver
>class 'null'" error. I'm sure  the driver is loaded....
>
>here is a code snip from server.xml for apache tomcat 4.1
>
><Resource name="jdbc/dbtest" auth="Container"
>                                 type="javax.sql.DataSource">
>         </Resource>
>                         <ResourceParams name="jdbc/dbtest">
>
>                                 <Parameter>
>                                   <name>factory</name>
>
><value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
>                                 </Parameter>
>                                 <Parameter>
>                                   <name>driverClassName</name>
>                                   <value>org.gjt.mm.mysql.Driver</value>
>                                 </Parameter>
>                                 <Parameter>
>                                   <name>url</name>
>
><value>jdbc:mysql:///javatest?autoReconect=true</value>
>                                 </Parameter>
>                                 <Parameter>
>                                   <name>maxActive</name>
>                                   <value>100</value>
>                                 </Parameter>
>                                 <Parameter>
>                                   <name>maxIdle</name>
>                                   <value>30</value>
>                                 </Parameter>
>                                 <Parameter>
>                                   <name>username</name>
>                                   <value>javauser</value>
>                                 </Parameter>
>                                 <Parameter>
>                                   <name>password</name>
>                                   <value>javadude</value>
>                                 </Parameter>
>                         </ResourceParams>
>
>
>can anyone help me???
>
>thanks.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message