This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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 Head First Android this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Watch "Tomcat New topic

Tomcat's Datasource

Johnny Belab

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..
danny liu
Ranch Hand

Joined: Jan 22, 2004
Posts: 185

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.

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

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

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
I agree. Here's the link:
subject: Tomcat's Datasource
It's not a secret anymore!