File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat's Datasource Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Watch "Tomcat New topic
Author

Tomcat's Datasource

Johnny Belab
Greenhorn

Joined: Oct 05, 2005
Posts: 12
I'm trying to use Tomcat's (5.5) Datasource using Oracle database.
I have copied oracle drivers to /common/lib directory, defined datasource to
server.xml and web.xml but still comes "Cannot create JDBC driver of class '' for connect URL 'null'"
What this actually means? How to get this working..
Cheers!
danny liu
Ranch Hand

Joined: Jan 22, 2004
Posts: 185
Johnny,

Just write a simple program to connect to Oracle first. If it works,that proves the driver and the connection URL are correct. Then you can move on to check the bugs in the xml file.

Without viewing the data source definition, the ranchers are hard to give you good advices.

Dan
[ October 09, 2005: Message edited by: danny liu ]
Trish Dirac
Greenhorn

Joined: Sep 29, 2005
Posts: 7
If you're using JNDI Datasource..
As I know, this problem is ordinarry for Tomcat/JDBC/JNDI bundle. Try Google for "Cannot create JDBC driver of class '' for connect URL 'null'", it should help =)
Johnny Belab
Greenhorn

Joined: Oct 05, 2005
Posts: 12
Yep, that was the problem. But I solved it with NetBeans 4.1 documentation
like I mentioned it in topic
http://www.coderanch.com/t/85458/Tomcat/create-connection-pool-tomcat
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat's Datasource
 
Similar Threads
connection object
developing, deploying and running a jsp application on a tomcat server
Oracle XA Datasource
Tomcat 5.0 shared class loader and Oracle JAR
DataSource in Tomcat 5.5