[jboss-user] [jBPM] - Re: Attempt to test human task API on jbpm5.4.CR1 failed

dany171 do-not-reply at jboss.com
Wed Nov 21 14:00:13 EST 2012


dany171 [https://community.jboss.org/people/dany171] created the discussion

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

To view the discussion, visit: https://community.jboss.org/message/777794#777794

--------------------------------------------------------------
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
[https://community.jboss.org/message/777794#777794]

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/20121121/cd06865b/attachment.html 


More information about the jboss-user mailing list