tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 13221] - JDBC DataSource "driverClassName is required" error
Date Fri, 25 Jul 2003 11:46:53 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13221>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13221

JDBC DataSource "driverClassName is required" error

d.culnane@navidat.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|Normal                      |Critical
         OS/Version|Windows NT/2K               |Linux
           Priority|Other                       |High
            Version|4.0.1 Final                 |4.1.24



------- Additional Comments From d.culnane@navidat.com  2003-07-25 11:46 -------
This is my fisrt Bug report so please be patient if it is not great.

I think this bug (or a version of it) has been causing users and me a lot of
problems (See
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg88786.html) 

I can not get the  BasicDataSource to load its driver. I have tried every
possible combination of server.xml and web.xml definitions.  

The tomcat administration complains about:

org.apache.jasper.JasperException: Exception retrieving attribute 'driverClassName'
When I start tomcat I get:
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24
Cannot load JDBC driver class 'null'
java.lang.NullPointerException
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:130)
        at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:523)
        at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:312)
        at com.navidat.tools.data.stores.StoreObj.getRecords(StoreObj.java:852)
        at com.navidat.tools.Translator.getMessage(Translator.java:1080)
        at com.navidat.tools.presentation.NavMenuItem.<init>(NavMenuItem.java:52)
        at com.navidat.project.ApCon.<clinit>(ApCon.java:154)
        at com.navidat.tools.presentation.NavMenuItem.<init>(NavMenuItem.java:32)
        at com.navidat.tools.presentation.NavMenu.build(NavMenu.java:105)
        at com.navidat.tools.presentation.NavMenu.<init>(NavMenu.java:40)
        at com.navidat.project.WritePageItem.<clinit>(WritePageItem.java:35)
        at com.navidat.project.servlets.Search.<init>(Search.java:39)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at java.lang.Class.newInstance0(Class.java:296)
        at java.lang.Class.newInstance(Class.java:249)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:903)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
        at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
        at org.apache.catalina.core.StandardService.start(StandardService.java:497)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Cannot load JDBC driver class 'null'


I can provide more info if needed (d.culnane@navidat.com)

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


Mime
View raw message