If I change it it will use Open JPA that is used by default in Geronimo. It works fine with Open JPA. I just wanted to try EclipseLink as well to make shure it works just in case I need it in the future. I have included EclipseLink JPA library in the classpath of the project but I think the project still cannot find it at runtime hence the exception "Could not locate the persistence provider class". May be it's very simple issue but I'm not very experienced programmer and don't know exactly how to locate EclipseLink jar files properly in the server.
Donald Woods-2 wrote: > > I haven't looked at the example, but see if the persistence.xml includes- > <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> > > If it does, either comment out that line or change it to- > <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider> > > and try again.... > > > -Donald > > tornike wrote: >> I was trying to run EclipseLink jpa example on Geronimo and couldn't >> figure >> out how to setup EclipseLink JAR location. I get the persistence >> exception: >> "Could not locate PersistenceProvider class: >> org.eclipse.persistence.jpa.PersistenceProvider". >> Can anyone help with example on how to set it up? >> Thanks > > -- View this message in context: http://www.nabble.com/EclipseLink-JAR-location-tp25257159s134p25264952.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.