Joined: Tue Aug 28, 2012 11:17 pm Posts: 1
|
Hello all, I using JPA with Hibernate as implementation but there is SQLException: No suitable driver found for jdbc:oracle:thin:@localhost:1521:orcl
I using JBoss AS 7.1.1 and Hibernate 4.1.1 with JPA persistence.xml.
How to make an explicit call to class.forName(Driver) if I usisng JPA?
try { Class.forName("oracle.jdbc.driver.OracleDriver");
} catch (ClassNotFoundException ex) { ex.printStackTrace(); }
I found similar issue here https://forum.hibernate.org/viewtopic.php?f=1&t=1015136. https://forum.hibernate.org/viewtopic.php?f=1&t=1015203
Thanks.
|
|