File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Connection String Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Connection String" Watch "Connection String" New topic
Author

Connection String

satish bejju
Greenhorn

Joined: Jul 27, 2011
Posts: 11
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30537
    
150

How are you adding the Oracle driver to your runtime classpath?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
satish bejju
Greenhorn

Joined: Jul 27, 2011
Posts: 11
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connection String