hi,

I haven't tried  an example.

1)Can you try to place the Eclipse link jar into "lib" directory?

2) Or you can deploy eclipse link jar first through admin console, "service" -> "Repository"; then, add the module into your dependency list in the deployment plan?

Can you tell the result after you try it?

Thanks!

2009/9/3 tornike <tornicke@gmail.com>

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.




--
Best Regards,

Delos