-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hibern8IDE - No suitable driver error
PostPosted: Thu Jul 22, 2004 11:14 am 
Newbie

Joined: Wed Jul 21, 2004 7:53 pm
Posts: 2
Hello -

I'm receiving the following error upon HQL execution:

1 errors occurred while listing (and calling getPathNames).
net.sf.hibernate.JDBCException: Cannot open connection
java.sql.SQLException: No suitable driver

I believe the IDE was configured properly with the MySQL JDBC driver. I say this because initially I was missing the MySQL JDBC driver and was warned in the Messages tab. I then included it in the IDE class path and everything appeared to run smoothly. The Tree Graph now displays the objects properly and the system looks ready to execute a query.

Any ideas?

Thanks,
-Ron


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 22, 2004 1:53 pm 
Newbie

Joined: Wed Jul 21, 2004 7:53 pm
Posts: 2
A little help from previous forum posts and I was able to piece this all together.... here it is for others to hopefully use in the future.

I was confusing the IDE's classpath with the classpath used to start the IDE from the command-line (e.g. via ANT). I was adding the MySQL driver in the IDE which I thought was enough to run the HQL query. It's not! You need to add the JDBC driver to the command-line classpath as well. Once I did that all was good.

-Ron


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.