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

No suitable driver SQL Exception

 
Gabriel Cane
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does it mean?
I'm running a Tomcat 3.2.4 application that *attempts* to connect to a HypersonicSQL database. I've been able to run it from client-side Java programs, but it simply won't connect from tomcat.
I'm using the exact same HypersonicSQL JAR file for tomcat as I am on the client side.
This error is caused by the DriverManager.getConnection() method of my data access layer. The Class.forName() portion of my code throws no errors messages, meaning that it can find the driver classes and instantiate them, but the DriverManager somehow objects to that driver.
Could it be that the JDBC implementation in tomcat is somehow flawed? If so, how would I replace it with one that works?
 
hob hartman
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gabriel,
I have noticed that there are a LOT of flawed tools out there. Almost every one that I use comes back with some sort of problem understanding my code. I wish someone would fix them all!
Seriously, have you seen Ming's post from a couple of days ago in this forum? His problem sounded similar. Check it out to see if putting your jar in the folder he describes might help you. I would guess that the lib folder under tomcat would be the one to try.
hob
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic