jeudi 16 avril 2015

JPA with Oracle Wallet

I have a batch application developed in Spring + Hibernate. I have persistence.xml which works just fine when I provide the URL, userId and Pwd. But it does not work with Oracle Wallet.


I tried to find examples for persistence.xml using oracle wallet. But no luck so far.


This is how I am referencing.



<property name="hibernate.connection.url"
value="jdbc:oracle:thin:/@my_wallet" />


Here is the exception I get:



Caused by: org.hibernate.exception.GenericJDBCException: Could not open connection at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:54) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110) at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:221) at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.getConnection(LogicalConnectionImpl.java:157)



Any help would be appreciated.


Thanks Prithvi


Aucun commentaire:

Enregistrer un commentaire