[jboss-user] [jBPM] - Using Datanucleus JPA for MongoDB with JBPM5..2.0 gives an "class not enhanced" error

Kishore Jaladi do-not-reply at jboss.com
Tue May 1 18:05:48 EDT 2012


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]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120501/d1855c18/attachment.html 


More information about the jboss-user mailing list