tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tuna Vardar <>
Subject DataSource and JNDI problem at Tomcat 4+Apache
Date Wed, 01 Oct 2003 13:01:13 GMT

I got a datasource definition at server.xml and the web application gets
connection to DB by getting datasource object from JNDI. I defined the
<Resource> between <GlobalNamingResources> tags. And I defined
<ResourceLink> from <Context> definition.

This configuration works perfectly with Tomcat 4.1. I use MySQL 3.23 as
a database server.

But when application is plugged to Apache Web Server by using
org.apache.catalina.connector.warp.WarpConnector connector, I got
following exception:

Cannot load JDBC driver class 'null'

It seems like Apache + Tomcat 4 configuration doesn't get the DataSource
description and its parameters from server.xml.

MySQL drivers are placed both in TOMCAT_HOME/common/lib and web
application's WEB_INF/lib directory.

What can be the cause for the exception I mentioned above? Any comments?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message