Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connection String

 
satish bejju
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using isql * plus as my database, and i wants to connect with database but when i am using the code as


<property name="hibernate.connection.driver-class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@localhost:5560:orcl</property>


i am getting the exception

Exception in thread "main" org.hibernate.exception.JDBCConnectionException: Cannot open connection
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:74)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)

Caused by: java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:@localhost:5561:orc
at java.sql.DriverManager.getConnection(DriverManager.java:604)



can i get the Connection String for iSQL * plus
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34178
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you adding the Oracle driver to your runtime classpath?
 
satish bejju
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Jeanne,

i am developing the above code using eclipse so i added ojdbc14.jar to the library.

Really i unabble to get that what you are asking about why it, to set for classpath.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic