[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] Russian locale will not load Oracle driver
|
There is not such property. How do you set the local manually?
You may be able to set it through using a SessionCustomizer.
philk wrote:
>
> Hello,
>
> I am struggling getting EL finding my oracle JDBC driver in the
> DriverManager when running on a russian locale.
> When I manualle set the locale to English the driver can be found. Can I
> set the locale that is used to locate the driver using a property in the
> the persistence unit properties?
> Something like eclipselink.jdbc.driver.locale=en?
>
> Caused by: Exception [EclipseLink-4002] (Eclipse Persistence Services -
> 1.0.1 (Build 20080905)):
> org.eclipse.persistence.exceptions.DatabaseException
> Internal Exception: java.sql.SQLException: No suitable driver
> Error Code: 0
> at
> org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:313)
> at
> org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:308)
> at
> org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConnector.java:136)
> at
> org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:164)
> at
> org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.connectInternal(DatasourceAccessor.java:324)
> at
> org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.connectInternal(DatabaseAccessor.java:264)
> at
> org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:407)
> at
> org.eclipse.persistence.sessions.server.ConnectionPool.buildConnection(ConnectionPool.java:130)
> at
> org.eclipse.persistence.sessions.server.ConnectionPool.startUp(ConnectionPool.java:367)
> at
> org.eclipse.persistence.sessions.server.ServerSession.connect(ServerSession.java:500)
> at
> org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:606)
> at
> org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:211)
> at
> org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:246)
> at
> org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:69)
> at
> org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:118)
> at
> org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:112)
> at
> org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:100)
> at
> javax.persistence.internal.support.EntityManagerFactoryEncapsulator.createEntityManager(EntityManagerFactoryEncapsulator.java:15)
>
>
> Thanks!
>
-----
---
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland
http://www.eclipse.org/eclipselink/
EclipseLink , http://www.oracle.com/technology/products/ias/toplink/
TopLink
Wiki: http://wiki.eclipse.org/EclipseLink EclipseLink ,
http://wiki.oracle.com/page/TopLink TopLink
Forums: http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink ,
http://www.nabble.com/EclipseLink-f26430.html EclipseLink
Book: http://en.wikibooks.org/wiki/Java_Persistence Java Persistence
--
View this message in context: http://www.nabble.com/Russian-locale-will-not-load-Oracle-driver-tp20769006p20774458.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.