Hi, Please arrange persistence.xml in the [war/WEB-INF/classes/META-INF] folder.
Please try. thanks. On 12月1日, 午後7:42, Felipe Cypriano <fmcypri...@gmail.com> wrote: > Hello, > > I'm trying to do integrations tests in my app, but I get a > NullPointerException when this line is executed: > > private static final EntityManagerFactory instance = > Persistence.createEntityManagerFactory("transactions-optional") > > See: > Caused by: java.lang.NullPointerException > at org.datanucleus.jpa.EntityManagerFactoryImpl.initialisePMF > (EntityManagerFactoryImpl.java:452) > 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.createEntityManagerFactory > (Persistence.java:51) > at javax.persistence.Persistence.createEntityManagerFactory > (Persistence.java:33) > at javax.persistence.Persistence$createEntityManagerFactory.call > (Unknown Source) > at org.grails.appengine.AppEngineEntityManagerFactory.<clinit> > (AppEngineEntityManagerFactory.groovy:13) > > Has anybody any ideas of why I'm getting NullPointerException in > datanucleos jpa EntityManagerFactoryImpl? Any advice that help me to > find how to solve the problem is very welcome, for example what line > 452 of EntityManagerFactoryImpl expects? > > Regards, > Felipe Cypriano -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.