tomcat-users mailing list archives

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

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'
java.lang.NullPointerException

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?

Br,
tuna


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


Mime
View raw message