I am trying to get JPA data access going with App Engine. I have
single entity class so far. After my application gets deployed and
runs fine (hosted mode) I come to the part where JPA persistence code
kicks in. Then I get following errors (end of stack trace shown):
Caused by: org.datanucleus.exceptions.NucleusUserException: Class
"transactions-optional" found to be part of persistence-unit "{1}" so
loading it in case it is persistable
at org.datanucleus.metadata.MetaDataManager.loadPersistenceUnit
(MetaDataManager.java:787)
at org.datanucleus.jpa.EntityManagerFactoryImpl.initialisePMF
(EntityManagerFactoryImpl.java:488)
at org.datanucleus.jpa.EntityManagerFactoryImpl.<init>
(EntityManagerFactoryImpl.java:355)
at
org.datanucleus.store.appengine.jpa.DatastoreEntityManagerFactory.<init>
(DatastoreEntityManagerFactory.java:63)
at
org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider.createEntityManagerFactory
(DatastorePersistenceProvider.java:35)
at javax.persistence.Persistence.createFactory(Persistence.java:172)
... 35 more
Caused by: org.datanucleus.exceptions.ClassNotResolvedException: Class
"com.myapp.client.gin.MyAppClientModule" was not found in the
CLASSPATH. Please check your specification and your CLASSPATH.
at org.datanucleus.JDOClassLoaderResolver.classForName
(JDOClassLoaderResolver.java:250)
at org.datanucleus.JDOClassLoaderResolver.classForName
(JDOClassLoaderResolver.java:415)
at org.datanucleus.metadata.MetaDataManager.loadPersistenceUnit
(MetaDataManager.java:767)
... 40 more
Neither message makes sense for me. "transactions-optional" is not a
class but a name for persistence unit as it was copied from Google
docs. Last error references gin-related class
com.myapp.client.gin.MyAppClientModule in my GWT module that is not
even supposed to be on a server.
I tried to add entity class to persistence.xml - no difference. It
seems that my classpath is not correct but I am using Eclipse with
Google plugin that assembles launch file for hosted mode
automatically.
Any pointers would be greatly appreciated.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---