Hello All,
My Google App Engine application tries to create PersistentManagerFactory
as follows
import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManagerFactory;
public final class PMF {
private static final PersistenceManagerFactory pmfInstance =
JDOHelper.getPersistenceManagerFactory("transactions-optional");
private PMF() {}
public static PersistenceManagerFactory get() {
return pmfInstance;
}
}
The application was compiled successfully in maven. During the execution
time, I got the following exception
Caused by: javax.jdo.JDOFatalUserException: A property named
javax.jdo.PersistenceManagerFactoryClass must be specified, or a jar file
with a META-INF/services/javax.jdo.PersistenceManagerFactory entry must be
in the classpath, or a property named javax.jdo.option.PersistenceUnitName
must be specified. at javax.jdo.JDOHelper.getPersistenceManagerFactory(
JDOHelper.java:861
<https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=20180716t105533&file=javax%2Fjdo%2FJDOHelper.java&line=861&logInsertId=5b4cdc6f000aef3003635631&logNanos=1531763823138102000&nestedLogIndex=7&project=jason-test-bm&folder&organizationId>)
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:1099
<https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=20180716t105533&file=javax%2Fjdo%2FJDOHelper.java&line=1099&logInsertId=5b4cdc6f000aef3003635631&logNanos=1531763823138102000&nestedLogIndex=7&project=jason-test-bm&folder&organizationId>)
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:919
<https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=20180716t105533&file=javax%2Fjdo%2FJDOHelper.java&line=919&logInsertId=5b4cdc6f000aef3003635631&logNanos=1531763823138102000&nestedLogIndex=7&project=jason-test-bm&folder&organizationId>
)
Is there a way to create a PersistentManagerFactory? My code for creating
PMF looks like this.
Thanks!
C
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/22cfb41e-6e6f-4642-a017-21e49e90a7aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.