tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Blomquist" <gblomqu...@net2phone.com>
Subject RE: Cannot create JDBC driver of class '' for connect URL 'null' Exception Help
Date Wed, 04 Jan 2006 21:14:04 GMT

I am also getting this error in 5.5.9 and 5.5.12.  I have the mysql
driver in  $CATALINA_HOME/common/lib.  My application was working in
5.0.28.

I took the following from the server.xml in 5.0.28 (that was working)
and pasted it 
in the 5.5.x server.xml and I get the "Cannot create JDBC driver" error.

       <Context path="/Hello2" docBase="/Hello2" debug="info">
        <Manager
className="org.apache.catalina.session.PersistentManager" 
          maxIdleBackup="5"
          maxIdleSwap="5"
          checkInterval="1">
          <Store className="org.apache.catalina.session.JDBCStore" 
 
connectionURL="jdbc:mysql://localhost/wroxtomcat?user=empro&amp;password
=empass"
            driverName="com.mysql.jdbc.Driver"
            debug="4"
            sessionIdCol="session_id"
            sessionValidCol="valid_session"
            sessionMaxInactiveCol="max_inactive"
            sessionLastAccessedCol="last_access"
            sessionTable = "tomcat_sessions"
            sessionAppCol = "app_context"
            sessionDataCol = "session_data"/>
        </Manager>
        <Resource name="jdbc/hello2" auth="Container"
type="javax.sql.DataSource" />
        <ResourceParams name="jdbc/hello2">
          <parameter>
            <name>factory</name>
 
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
          </parameter>
          <parameter><name>maxActive</name><value>10</value></parameter>
          <parameter><name>maxWait</name><value>500</value></parameter>
 
<parameter><name>username</name><value>root</value></parameter>
 
<parameter><name>password</name><value>root</value></parameter>
          <parameter>
            <name>driverClassName</name>
            <value>com.mysql.jdbc.Driver</value>
          </parameter>
          <parameter>
            <name>url</name>
            <value>jdbc:mysql://localhost/hello</value>
          </parameter>
        </ResourceParams>            
      </Context>  

I have Hello2.war in the webapps directory.

Is there a change re: deployment between Tomcat 5.0.x and Tomcat 5.5.x?

Thanks,

Gary

-----Original Message-----
From: Eric Munson [mailto:ebmunson@gmail.com] 
Sent: Monday, January 02, 2006 6:44 PM
To: Tomcat Users List; roberto.rios@innovaction.com.br
Subject: Re: Cannot create JDBC driver of class '' for connect URL
'null' Exception Help

I found the error, there was a misspelling of the Context object in one
of the context.xml files.  When it was corrected everything worked.
Thanks for all of your help.

Thanks,
Eric

On 1/2/06, Eric Munson <ebmunson@gmail.com> wrote:
> Thanks for your reply, but I have already moved the proper driver into

> the $CATALINA_HOME/common/lib.  Is there anything else that would 
> cause this behavior?
>
> Thanks,
> Eric
> On 1/2/06, Roberto Rios <roberto.rios@innovaction.com.br> wrote:
> > Copy your jdbc driver into [tomcat]/common/lib
> >
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
>

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


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


Mime
View raw message