Women in Technology

Hear us Roar

  Creating a Web Application with Ant and Tomcat 4
Subject:   Cannot load JDBC driver class 'null'
Date:   2003-03-06 16:44:11
From:   anonymous2
I can get my datasource (Sybase) to work fine using JNDI in Tomcat4 when I define the resource in the Context of a single web application.

I get this error when I try to define the resource in the GlobalNamingResources area though.

I'm using the same Resource info, just moved it from the Context to GlobalNamingResources.

Any thoughts?

Full Threads Newest First

Showing messages 1 through 2 of 2.

  • Cannot load JDBC driver class 'null'
    2003-08-06 06:58:56  anonymous2 [View]

    Have you made a resource link from your application context to the global naming resource?

    <ResourceLink name="jdbc/TestDB" global="jdbc/GlobalDB" type="javax.sql.DataSource" />

    • Cannot load JDBC driver class 'null'
      2003-08-22 15:26:50  anonymous2 [View]

      Thank you. I've been all over sites looking for this. Everybody has you jumping through hoops trying to locate your JDBC library when that is not the problem. The Tomcat admin utility should state that the context needs to be linked to the global resource when the connection pool is created.