JBoss Community

Re: Attempt to test human task API on jbpm5.4.CR1 failed

created by dany171 in jBPM - View the full discussion

Thanks Demian,

 

I have updated the dependency to :

<dependency>

          <groupId>org.jbpm</groupId>

          <artifactId>jbpm-persistence-jpa</artifactId>

          <version>${jbpm.version}</version>

</dependency>

 

where

 

<jbpm.version>5.4.0.Final</jbpm.version>

 

then I tested and got this exception:

 

javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.persistence.jpa] class or package not found

    at org.hibernate.ejb.Ejb3Configuration.addNamedAnnotatedClasses(Ejb3Configuration.java:1093)

    at org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:871)

    at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:758)

    at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:191)

    at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:253)

    at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:125)

    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)

    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)

    at com.test.human.api.ProcessTaskAPITest.createKnowledgeSession(ProcessTaskAPITest.java:194)

    at com.test.human.api.ProcessTaskAPITest.main(ProcessTaskAPITest.java:117)

Caused by: java.lang.ClassNotFoundException: org.jbpm.process.audit.ProcessInstanceLog

    at java.net.URLClassLoader$1.run(Unknown Source)

    at java.net.URLClassLoader$1.run(Unknown Source)

    at java.security.AccessController.doPrivileged(Native Method)

    at java.net.URLClassLoader.findClass(Unknown Source)

    at java.lang.ClassLoader.loadClass(Unknown Source)

    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

    at java.lang.ClassLoader.loadClass(Unknown Source)

    at java.lang.Class.forName0(Native Method)

    at java.lang.Class.forName(Unknown Source)

    at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:135)

    at org.hibernate.ejb.Ejb3Configuration.classForName(Ejb3Configuration.java:1009)

    at org.hibernate.ejb.Ejb3Configuration.addNamedAnnotatedClasses(Ejb3Configuration.java:1081)

    ... 9 more

 

at this line:

 

EntityManagerFactory emf = Persistence.createEntityManagerFactory( "org.jbpm.persistence.jpa" );

 

This exception is much understandable than the other one, but, I already have the persistense unit  "org.jbpm.persistence.jpa"  defined in META-INF/persistence.xml

 

Please, could you take a look that file?, maybe some wrong definition..

Reply to this message by going to Community

Start a new discussion in jBPM at Community