• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with Tomcat/Data Source

 
nextweek
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have a problem in that Tomcat does not seem to be recognising my DB Driver. I have tried linking a global data source to my application as well as adding a project specific one with no luck. Here is some of my files:




I also have my DB drivers in the commons/lib file. I know the connect string works fine because I can access the DB from Eclipse when writing standard Java code.

This seems common problem and I have been searching Google for the last 3 hours but nothing I have tried has fixed my problem.

I am using Tomcat 5.5 and J2EE 5. I am creating the links and resources in Tomcat admin.

I don't get any logs or stacktrace, the only error I get is as follows in the returned JSP page:


DataSource Example
Cannot create JDBC driver of class '' for connect URL 'null'


And the console output below

What am I doing wrong?

Cheers




I am using ojdbc14.jar driver and as I mentioned it is in commons/lib
 
sathish kumar
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Think it should be

oracle.jdbc.pool.OracleConnectionPoolDataSource

instead of
oracle.jdbc.driver.OracleDriver
 
nextweek
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sathish kumar:
Think it should be

oracle.jdbc.pool.OracleConnectionPoolDataSource

instead of


Sounds logical, I can't test it until later though. Thanks for your time.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"nextweek",
Welcome to the JavaRanch.

We're a friendly group, but we do require members to have valid display names.

Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with invalid display names get deleted, often without warning

thanks,
Dave
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic