| Article: |
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.
|
||
Showing messages 1 through 2 of 2.
-
Cannot load JDBC driver class 'null'
2003-08-06 06:58:56 anonymous2 [View]
-
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.



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