Kishore Jaladi [https://community.jboss.org/people/kishorejaladi] created the discussion
"Using Datanucleus JPA for MongoDB with JBPM5..2.0 gives an "class not enhanced" error" To view the discussion, visit: https://community.jboss.org/message/733232#733232 -------------------------------------------------------------- Hi, I am trying to set JPA persistence for MongoDB with Datanucleus and I am getting the following error [details of the code and persistence.xml] first: versions: <dependency> <groupId>org.datanucleus</groupId> <artifactId>datanucleus-core</artifactId> <version>[2.9, )</version> </dependency> <dependency> <groupId>org.datanucleus</groupId> <artifactId>datanucleus-mongodb</artifactId> <version>[2.9, )</version> </dependency> <dependency> <groupId>org.datanucleus</groupId> <artifactId>datanucleus-api-jpa</artifactId> <version>[2.9, )</version> </dependency> Code: EntityManagerFactory emf = Persistence.createEntityManagerFactory("jbpm.mongodb.persistence.test", new HashMap<String, String>()); persistence.xml: <persistence xmlns=" http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0"> <!-- Tutorial "unit" --> <persistence-unit name="jbpm.mongodb.persistence.test"> <properties> <property name="datanucleus.ConnectionURL" value="mongodb:localhost/mng1"/> <property name="datanucleus.storeManagerType" value="mongodb" /> <property name="datanucleus.autoCreateSchema" value="true" /> </properties> </persistence-unit> </persistence> error: -------------------------------------------------------------- Reply to this message by going to Community [https://community.jboss.org/message/733232#733232] Start a new discussion in jBPM at Community [https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
