aspose file tools*
The moose likes Tomcat and the fly likes JNDI configuration in TOMCAT 5.5  - No suitable driver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "JNDI configuration in TOMCAT 5.5  - No suitable driver " Watch "JNDI configuration in TOMCAT 5.5  - No suitable driver " New topic
Author

JNDI configuration in TOMCAT 5.5 - No suitable driver

Ramasubramaniam Rathinasubbu
Ranch Hand

Joined: Jun 09, 2010
Posts: 44
Hi, i am trying to configure the jndi configuration in my application

webserver : tomcat 5.5.
after the configuration i copied mysql-connector-java-3.0.11-stable-bin.jar and paste it in

$CATALINA_HOME/common/lib.
ref :http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html

But when i start the tomcat i am getting the following error


ERROR inside method getVirtualLearnConnection()Cannot create JDBC driver of class '' for connect URL 'null'
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
at com.iGrandee.Common.ConnectionManager.getVirtualLearnConnection(ConnectionManager.java:153)
at com.iGrandee.Common.ConnectionInfo.makeConnection(ConnectionInfo.java:90)
at com.iGrandee.Common.ContextListener.contextInitialized(ContextListener.java:19)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3669)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4104)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:894)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:857)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:475)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(Unknown Source)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:773)
... 28 more
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2476
    
    7

Ramasubramaniam,

because your issue is related to configuration of Tomcat, I have moved the topic to our dedicated Tomcat forum.

The message" Cannot create JDBC driver of class '' for connect URL 'null' " tells you that there is no connection url defined, or that something is wrong with the definition.


OCUP UML fundamental and ITIL foundation
youtube channel
Ramasubramaniam Rathinasubbu
Ranch Hand

Joined: Jun 09, 2010
Posts: 44
Yes, i have done wrong in definition.
now it is working fine
Thank you very much.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNDI configuration in TOMCAT 5.5 - No suitable driver
 
Similar Threads
hibernate3 + tomcat 4.0.18 + seam2.1 database connection pool
Error while trying to connect to DB from Struts application
ClassNotFoundException while running jdbc program
SQL Error suring server startup
java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource