tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Jacobson <marti...@libero.it>
Subject Re: getConnection() returning a NULL JDBC driver
Date Thu, 05 Sep 2002 05:51:06 GMT
Robert Dunn wrote:

> Hi all,
> 
> I am attempting to get a connection to the JDBC entry from the server.xml
> file and keep getting the error "Cannot load JDBC driver class 'null'". The
> error occurs when I attempt to call "ds.getConnection();". I have placed all
> of the Interbase JAR files in the Common\Lib directory; Do I need
> to register these with Tomcat somehow?
> 
<snip>


> 
> Entry from the server.xml file is:
> 
>   <Resource name="jdbc/Transhub" auth="Container"
> type="javax.sql.DataSource"
>         description="Resource name for the interbase client connection"/>
>   <ResourceParams name="jdbc/Transhub">
>     <parameter>
>       <name>description</name>
>       <value>Resource Parameters for the Transhub Interbase DB</value>
>     </parameter>
>     <parameter>
>       <name>maxActive</name>
>       <value>8</value>
>     </parameter>
>     <parameter>
>       <name>maxIdle</name>
>       <value>4</value>
>     </parameter>
>     <parameter>

              vvvv          *********

>      <name>user</name> <-********* change this to <name>username</name>

              ^^^^          *********

>      <value>sysdba</value>
>     </parameter>
>     <parameter>
>      <name>password</name>
>      <value>XXXX</value>
>     </parameter>
>     <parameter>
>        <name>driverClassName</name>
>        <value>interbase.interclient.Driver</value>
>     </parameter>
>     <parameter>
>       <name>url</name>
>       <value>jdbc:interbase://localhost/C:/Program Files/Common Files/Insfin
> Shared/data/iitweb.gdb</value>
>     </parameter>
>   </ResourceParams>



Also, I've read somewhere on this list that folks have trouble with 
directory names with spaces in, so maybe you could fix that, too.
But it's the parameter name that's the 'gotcha' :-)

HTH,
Martin.



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


Mime
View raw message