Thank you very much for the tip.
I have tried the second suggestion and it works, I just needed to add the
dependency to geronimo-web.xml in my web app which points to the newly 
created repository. Great!
Can I please ask one more question?
While looking for this solution I have found a "Workspace classpath
containers to be provided to the server" option in the eclipse plugin of
Geronimo server. In the Eclipse IDE > Servers tab > Select Geronimo server >
(rightclick)  Open > there was this above option. After ticking on the
eclipselink classpath my example also worked even without the dependency
addition to the geronimo-web.xml. I am using eclipse IDE which has plugin
for eclipselink.
Is this later approach a bad idea, security or any other reason? 


Delos-3 wrote:
> 
> 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 <torni...@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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/EclipseLink-JAR-location-tp25257159s134p25273416.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.

Reply via email to