The moose likes Object Relational Mapping and the fly likes No suitable Driver Error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "No suitable Driver Error" Watch "No suitable Driver Error" New topic
Author

No suitable Driver Error

shah rah
Ranch Hand

Joined: Jan 04, 2007
Posts: 124
Error: org.hibernate.exception.JDBCConnectionException: Cannot open connection

This is what I did. I created a java project(DB) in myeclipse and added hibernate capabilities. I aslo created a test.java and tested my hibernate
select statement. It worked fine. I then created a jar of the java project.

I added jar to to my struts project(miniStruts). i copied the jar to web-inf/lib. inside my action class i call the database access method i created in DB project. when i run my application it fails giving me No suitable driver error.

I have sqlserver drivers under web-inf/lib and also my DB.jar .

What am I missing?
 
 
subject: No suitable Driver Error
 
Threads others viewed
No suitable driver
java.sql.SQLException: No suitable driver
JBOSS 6.0 Error While Starting Up..
JNDI datasource question
I need help with Hibernate
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture