Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat's Datasource

 
Johnny Belab
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 185
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic