Thursday, December 6, 2012

How to use Hibernate locally in development mode

Hi,

i'm trying to get hibernate with my gwt-application to run. I followed this tutorial and the example works on app engine:

https://developers.google.com/appengine/articles/using_hibernate

But if i try to run this locally in eclipe, i get the following error.

Caused by: javax.persistence.PersistenceException: No persistence providers available for "com.google.cloudsqldemo.jpa" after trying the following discovered implementations: NONE
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:180)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:70)
at de.jan.server.GreetingServiceImpl.greetServer(GreetingServiceImpl.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:115)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561)
... 38 more


Can some give me some advice how i can get this running locally as well?

Thanks and best regards
Jan

No comments:

Post a Comment