<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Having problems in configuring jBPM persistence on AS 7.1.0 Final
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/vimalkansal">Vimal Kansal</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/738203#738203">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I am trying to configure jBPM 5.3 persistence configured and having troubles, any help will be gretaly appreciated. So here is what I am doing :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>My use case involves building a JEE6 web app with jBPM 5.2 engine embedded in it. </p><p>I am using JBoss Developer Studio 5.0 Beta 3 to generate a JEE6 web app using one of the maven plugins. Once the app is generated, I have added dependencies on jbpm-bpmn2 and jbpm-persistence-jpa. I have also updated the persistence.xml file (please see the attached file). Note that I have 2 persistence units in it : one for application data and other for jbpm. When I deploy this application to AS 7.1.0, (mvn clean package jboss-as:deploy), I get the following persistence exception :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>=========================================================================================================================================</p><p>23:32:43,335 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-2) HHH000397: Using ASTQueryTranslatorFactory</p><p>23:32:43,341 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.persistenceunit."jbpmDemo.war#org.jbpm.persistence.jpa": org.jboss.msc.service.StartException in service jboss.persistenceunit."jbpmDemo.war#org.jbpm.persistence.jpa": Failed to start service</p><p>    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]</p><p>    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]</p><p>    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]</p><p>    at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]</p><p>Caused by: javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.persistence.jpa] class or package not found</p><p>    at org.hibernate.ejb.Ejb3Configuration.addNamedAnnotatedClasses(Ejb3Configuration.java:1401)</p><p>    at org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:1184)</p><p>    at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:1048)</p><p>    at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:693)</p><p>    at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)</p><p>    at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162)</p><p>    at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85)</p><p>    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]</p><p>    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]</p><p>    ... 3 more</p><p>Caused by: java.lang.ClassNotFoundException: org.jbpm.process.audit.ProcessInstanceLog from [Module "org.hibernate:main" from local module loader @23e5d1 (roots: /home/vimal/Apps/jboss-eap-6.0/modules)]</p><p>    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)</p><p>    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)</p><p>    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)</p><p>    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)</p><p>    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)</p><p>    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)</p><p>    at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_31]</p><p>    at java.lang.Class.forName(Class.java:247) [rt.jar:1.6.0_31]</p><p>    at org.hibernate.internal.util.ReflectHelper.classForName(ReflectHelper.java:170)</p><p>    at org.hibernate.ejb.Ejb3Configuration.classForName(Ejb3Configuration.java:1318)</p><p>    at org.hibernate.ejb.Ejb3Configuration.addNamedAnnotatedClasses(Ejb3Configuration.java:1390)</p><p>    ... 11 more</p><p>===================================================================================================================================</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Can somebody please help.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Thx</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/738203#738203">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>