|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Russian locale will not load Oracle driverHello,
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! _______________________________________________ eclipselink-users mailing list eclipselink-users@... https://dev.eclipse.org/mailman/listinfo/eclipselink-users |
|
|
Re: Russian locale will not load Oracle driverThere is not such property. How do you set the local manually?
You may be able to set it through using a SessionCustomizer.
James Sutherland EclipseLink, TopLink Wiki: EclipseLink, TopLink Forums: TopLink, EclipseLink Book: Java Persistence |
|
|
Re: Russian locale will not load Oracle driverOn Mon, 01 Dec 2008 16:45:41 +0100, James Sutherland <jamesssss@...>
wrote: > There is not such property. How do you set the local manually? > > You may be able to set it through using a SessionCustomizer. > I am running inside an OSGi environment (Equinox) and the locale is set from the command line using "-nl ru". However the driver should never be loaded locale dependend. Or at least fall back to "en" locale. Since I am using EclipseLink as an JPA provider I do not want to wrestle around with SessionCustomizer, which is EclipseLink only. I would never be able to switch my JPA implementation later. _______________________________________________ eclipselink-users mailing list eclipselink-users@... https://dev.eclipse.org/mailman/listinfo/eclipselink-users |
|
|
Re: Russian locale will not load Oracle driverAre you using the EclipseLink OSGi bundles that we ship? If so, does the
exception you see cause any issues. The reason I ask is the following bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=239413 Philipp Kursawe wrote: > On Mon, 01 Dec 2008 16:45:41 +0100, James Sutherland > <jamesssss@...> wrote: > >> There is not such property. How do you set the local manually? >> >> You may be able to set it through using a SessionCustomizer. >> > I am running inside an OSGi environment (Equinox) and the locale is set > from the command line using "-nl ru". > However the driver should never be loaded locale dependend. Or at least > fall back to "en" locale. > Since I am using EclipseLink as an JPA provider I do not want to wrestle > around with SessionCustomizer, which is EclipseLink only. I would never > be able to switch my JPA implementation later. > > _______________________________________________ > eclipselink-users mailing list > eclipselink-users@... > https://dev.eclipse.org/mailman/listinfo/eclipselink-users eclipselink-users mailing list eclipselink-users@... https://dev.eclipse.org/mailman/listinfo/eclipselink-users |
|
|
Re: Russian locale will not load Oracle driverOn Mon, 01 Dec 2008 17:04:06 +0100, Tom Ware <tom.ware@...> wrote:
> Are you using the EclipseLink OSGi bundles that we ship? If so, does > the exception you see cause any issues. The reason I ask is the > following bug: > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=239413 I am using the one from Springs Enterprise Repository. > Philipp Kursawe wrote: >> On Mon, 01 Dec 2008 16:45:41 +0100, James Sutherland >> <jamesssss@...> wrote: >> >>> There is not such property. How do you set the local manually? >>> >>> You may be able to set it through using a SessionCustomizer. >>> >> I am running inside an OSGi environment (Equinox) and the locale is set >> from the command line using "-nl ru". >> However the driver should never be loaded locale dependend. Or at least >> fall back to "en" locale. >> Since I am using EclipseLink as an JPA provider I do not want to >> wrestle around with SessionCustomizer, which is EclipseLink only. I >> would never be able to switch my JPA implementation later. >> _______________________________________________ >> eclipselink-users mailing list >> eclipselink-users@... >> https://dev.eclipse.org/mailman/listinfo/eclipselink-users > _______________________________________________ > eclipselink-users mailing list > eclipselink-users@... > https://dev.eclipse.org/mailman/listinfo/eclipselink-users _______________________________________________ eclipselink-users mailing list eclipselink-users@... https://dev.eclipse.org/mailman/listinfo/eclipselink-users |
|
|
Re: Russian locale will not load Oracle driverOn Mon, 01 Dec 2008 17:04:06 +0100, Tom Ware <tom.ware@...> wrote:
> Are you using the EclipseLink OSGi bundles that we ship? If so, does > the exception you see cause any issues. The reason I ask is the > following bug: > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=239413 In contrast to the bug, the driver can really not be loaded when the locale is set to russian. German and English works. Its not a logging issue. > > Philipp Kursawe wrote: >> On Mon, 01 Dec 2008 16:45:41 +0100, James Sutherland >> <jamesssss@...> wrote: >> >>> There is not such property. How do you set the local manually? >>> >>> You may be able to set it through using a SessionCustomizer. >>> >> I am running inside an OSGi environment (Equinox) and the locale is set >> from the command line using "-nl ru". >> However the driver should never be loaded locale dependend. Or at least >> fall back to "en" locale. >> Since I am using EclipseLink as an JPA provider I do not want to >> wrestle around with SessionCustomizer, which is EclipseLink only. I >> would never be able to switch my JPA implementation later. >> _______________________________________________ >> eclipselink-users mailing list >> eclipselink-users@... >> https://dev.eclipse.org/mailman/listinfo/eclipselink-users > _______________________________________________ > eclipselink-users mailing list > eclipselink-users@... > https://dev.eclipse.org/mailman/listinfo/eclipselink-users _______________________________________________ eclipselink-users mailing list eclipselink-users@... https://dev.eclipse.org/mailman/listinfo/eclipselink-users |
|
|
Re: Russian locale will not load Oracle driverHi Philipp,
It is not clear to me what EclipseLink could do to alleviate this issue. Is this a DriverManager or JDBC driver issue? If a using a session customizer helps, keep in mind that one can be specified in a way that will be transparent so it will not be used by other persistence providers. (i.e. you provide a persistence unit property that only EclipseLink will look at.) -Tom Philipp Kursawe wrote: > On Mon, 01 Dec 2008 17:04:06 +0100, Tom Ware <tom.ware@...> wrote: > >> Are you using the EclipseLink OSGi bundles that we ship? If so, does >> the exception you see cause any issues. The reason I ask is the >> following bug: >> >> https://bugs.eclipse.org/bugs/show_bug.cgi?id=239413 > > In contrast to the bug, the driver can really not be loaded when the > locale is set to russian. German and English works. > Its not a logging issue. > > >> >> Philipp Kursawe wrote: >>> On Mon, 01 Dec 2008 16:45:41 +0100, James Sutherland >>> <jamesssss@...> wrote: >>> >>>> There is not such property. How do you set the local manually? >>>> >>>> You may be able to set it through using a SessionCustomizer. >>>> >>> I am running inside an OSGi environment (Equinox) and the locale is >>> set from the command line using "-nl ru". >>> However the driver should never be loaded locale dependend. Or at >>> least fall back to "en" locale. >>> Since I am using EclipseLink as an JPA provider I do not want to >>> wrestle around with SessionCustomizer, which is EclipseLink only. I >>> would never be able to switch my JPA implementation later. >>> _______________________________________________ >>> eclipselink-users mailing list >>> eclipselink-users@... >>> https://dev.eclipse.org/mailman/listinfo/eclipselink-users >> _______________________________________________ >> eclipselink-users mailing list >> eclipselink-users@... >> https://dev.eclipse.org/mailman/listinfo/eclipselink-users > > > _______________________________________________ > eclipselink-users mailing list > eclipselink-users@... > https://dev.eclipse.org/mailman/listinfo/eclipselink-users eclipselink-users mailing list eclipselink-users@... https://dev.eclipse.org/mailman/listinfo/eclipselink-users |
| Free embeddable forum powered by Nabble | Forum Help |