<!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;">
    Re: NameNotFoundException - Jboss7, jbpm5.2
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/bujji">Bujji Bujji</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/760500#760500">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Prashanth,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Please help us on the below issue. we are struggling with this from quite a long time.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>We are working on JBPM 5.3 set up on Jboss AS 7.0.1. When we are opening jbpm console using the url<strong><span> </span><a class="jive-link-external-small" href="http://localhost:8280/jbpm-console" target="_blank">http://localhost:8280/jbpm-console</a></strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p> we are are getting <strong>org.hibernate.HibernateException: Could not find datasource: java:jboss/datasources/jbpmDS</strong> error.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>We have tried with custom transaction manager lookup as you suggested, but it is in vain. we are still getting the following problem.</p><p><strong>org.hibernate.HibernateException: Could not find datasource: java:jboss/datasources/jbpmDS</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>Here is the persistence.xml</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; color: #a94611;"><span style="color: #9d4bd0;">&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;</span><span style="color: #000000;"><br/> </span><span style="color: #0726a4;">&lt;persistence</span><span style="color: #f79764;"> version</span><span style="color: #ff9458;">=</span>"1.0"<span style="color: #000000;"><br/> </span><span style="color: #f79764;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; xsi:schemaLocation</span><span style="color: #ff9458;">=</span><span>"</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence" target="_blank">http://java.sun.com/xml/ns/persistence</a><span style="color: #000000;"><br/> </span><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" target="_blank">http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd</a><span style="color: #000000;"><br/> </span><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence/orm" target="_blank">http://java.sun.com/xml/ns/persistence/orm</a><span> </span><span style="color: #000000;"><br/> </span><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence/orm_1_0.xsd" target="_blank">http://java.sun.com/xml/ns/persistence/orm_1_0.xsd</a><span>"</span><span style="color: #000000;"><br/> </span><span style="color: #f79764;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #06aad4;">xmlns:orm</span><span style="color: #ff9458;">=</span><span>"</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence/orm" target="_blank">http://java.sun.com/xml/ns/persistence/orm</a><span>"</span><span style="color: #000000;"><br/> </span><span style="color: #f79764;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #06aad4;">xmlns:xsi</span><span style="color: #ff9458;">=</span><span>"</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><span>"</span><span style="color: #000000;"><br/> </span><span style="color: #f79764;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; xmlns</span><span style="color: #ff9458;">=</span><span>"</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence" target="_blank">http://java.sun.com/xml/ns/persistence</a><span>"</span><span style="color: #0726a4;">&gt;</span><span style="color: #000000;"><br/> <br/>&#160;&#160; </span><span style="color: #0726a4;">&lt;persistence-unit</span><span style="color: #f79764;"> name</span><span style="color: #ff9458;">=</span>"org.jbpm.persistence.jpa"<span style="color: #f79764;"> transaction-type</span><span style="color: #ff9458;">=</span>"JTA"<span style="color: #0726a4;">&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;provider&gt;</span><span style="color: #000000;">org.hibernate.ejb.HibernatePersistence</span><span style="color: #0726a4;">&lt;/provider&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;jta-data-source&gt;</span><strong style="color: #000000;">java:jboss/datasources/jbpmDS</strong><span style="color: #0726a4;">&lt;/jta-data-source&gt;</span><span style="color: #000000;"> <br/>&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;mapping-file&gt;</span><span style="color: #000000;">META-INF/JBPMorm.xml</span><span style="color: #0726a4;">&lt;/mapping-file&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;mapping-file&gt;</span><span style="color: #000000;">META-INF/ProcessInstanceInfo.hbm.xml</span><span style="color: #0726a4;">&lt;/mapping-file&gt;</span><span style="color: #000000;"><br/> <br/>&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;class&gt;</span><span style="color: #000000;">org.jbpm.persistence.processinstance.ProcessInstanceInfo</span><span style="color: #0726a4;">&lt;/class&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;class&gt;</span><span style="color: #000000;">org.drools.persistence.info.SessionInfo</span><span style="color: #0726a4;">&lt;/class&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;class&gt;</span><span style="color: #000000;">org.drools.persistence.info.WorkItemInfo</span><span style="color: #0726a4;">&lt;/class&gt;</span><span style="color: #000000;"><br/> <br/>&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;class&gt;</span><span style="color: #000000;">org.jbpm.process.audit.ProcessInstanceLog</span><span style="color: #0726a4;">&lt;/class&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;class&gt;</span><span style="color: #000000;">org.jbpm.process.audit.NodeInstanceLog</span><span style="color: #0726a4;">&lt;/class&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;class&gt;</span><span style="color: #000000;">org.jbpm.process.audit.VariableInstanceLog</span><span style="color: #0726a4;">&lt;/class&gt;</span><span style="color: #000000;"><br/> <br/>&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;properties&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #00730f;">&lt;!-- &lt;property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/&gt;</span><span style="color: #000000;"><br/> </span><span style="color: #00730f;">&#160;&#160;&#160;&#160;&#160;&#160; &lt;property name="hibernate.hbm2ddl.auto" value="create" /&gt;</span><span style="color: #000000;"><br/> </span><span style="color: #00730f;">&#160;&#160;&#160;&#160;&#160; </span><span style="color: #000000;"><br/> </span><span style="color: #00730f;">&#160;&#160;&#160;&#160;&#160;&#160; &lt;property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/&gt;</span><span style="color: #000000;"><br/> </span><span style="color: #00730f;">&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;property name="hibernate.connection.url" value="jdbc:mysql://127.0.0.1:3306/test" /&gt;</span><span style="color: #000000;"><br/> </span><span style="color: #00730f;">&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;property name="hibernate.connection.username" value="root"/&gt;</span><span style="color: #000000;"><br/> </span><span style="color: #00730f;">&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;property name="hibernate.connection.password" value=""/&gt;</span><span style="color: #000000;"><br/> </span><span style="color: #00730f;">&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;property name="hibernate.connection.autocommit" value="false" /&gt;&#160;&#160; --&gt;</span><span style="color: #000000;"><br/> </span><span style="color: #00730f;">&lt;!-- &lt;property name="jta.UserTransaction" value = "java:jboss/TransactionManager"/&gt; --&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #00730f;">&lt;!--&#160; &lt;property name="jta.data.source" value="java:jboss/datasources/jbpmDS"/&gt; --&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #00730f;">&lt;!--&#160; &lt;property name="hibernate.max_fetch_depth" value="3"/&gt;&#160; --&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #00730f;">&lt;!-- hbm2ddl.auto MUST BE update! The console will otherwise overwrite the schema with each new thread --&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160;&#160; <br/>&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;property</span><span style="color: #f79764;"> name</span><span style="color: #ff9458;">=</span>"hibernate.show_sql"<span style="color: #f79764;"> value</span><span style="color: #ff9458;">=</span>"true"<span style="color: #f79764;"> </span><span style="color: #0726a4;">/&gt;</span><span style="color: #000000;"><br/> <br/>&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #00730f;">&lt;!-- for AS7 --&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;property</span><span style="color: #f79764;"> name</span><span style="color: #ff9458;">=</span>"hibernate.transaction.manager_lookup_class"<span style="color: #f79764;"> value</span><span style="color: #ff9458;">=</span>"org.jbpm.integration.console.JBPMTransactionManager"<span style="color: #f79764;"> </span><span style="color: #0726a4;">/&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #00730f;">&lt;!-- for AS5 --&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #00730f;">&lt;!-- &lt;property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" /&gt; --&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;/properties&gt;</span><span style="color: #000000;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br/>&#160;&#160; </span><span style="color: #0726a4;">&lt;/persistence-unit&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160; <br/> </span><span style="color: #0726a4;">&lt;/persistence&gt;</span><span style="color: #000000;"><br/></span></p><p><strong><br/></strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong><br/></strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>We can see the following trace on the Jboss AS console :</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>11:02:34,919 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http--127.0.0.1-8280-2) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.UnhandledException: java.lang.ExceptionInInitializerError</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.resteasy.core.SynchronousDispatcher.unwrapException(SynchronousDispatcher.java:345) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:321) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:534) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) [classes:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:480) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at java.lang.Thread.run(Thread.java:680) [:1.6.0_33]</p><p>Caused by: java.lang.ExceptionInInitializerError</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jbpm.integration.console.StatefulKnowledgeSessionUtil.getStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:131) [jbpm-gwt-core-5.3.0.Final.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jbpm.integration.console.SessionInitializer.&lt;init&gt;(SessionInitializer.java:25) [jbpm-gwt-core-5.3.0.Final.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jbpm.integration.console.TaskManagement.&lt;init&gt;(TaskManagement.java:51) [jbpm-gwt-core-5.3.0.Final.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jbpm.integration.console.ManagementFactory.createTaskManagement(ManagementFactory.java:26) [jbpm-gwt-core-5.3.0.Final.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jbpm.integration.console.ManagementFactory.createTaskManagement(ManagementFactory.java:19) [jbpm-gwt-core-5.3.0.Final.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.bpm.console.server.TaskListFacade.getTaskManagement(TaskListFacade.java:72) [classes:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.bpm.console.server.TaskListFacade.getTasksForIdRef(TaskListFacade.java:101) [classes:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_33]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_33]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_33]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_33]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:255) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:220) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:209) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:519) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;... 24 more</p><p>Caused by: java.lang.RuntimeException: Could not initialize stateful knowledge session: [PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jbpm.integration.console.StatefulKnowledgeSessionUtil.initializeStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:163) [jbpm-gwt-core-5.3.0.Final.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jbpm.integration.console.StatefulKnowledgeSessionUtil$SessionHolder.&lt;clinit&gt;(StatefulKnowledgeSessionUtil.java:127) [jbpm-gwt-core-5.3.0.Final.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;... 40 more</p><p>Caused by: javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677) [hibernate-entitymanager-3.4.0.GA.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126) [hibernate-entitymanager-3.4.0.GA.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63) [hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47) [hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jbpm.integration.console.StatefulKnowledgeSessionUtil.createOrLoadStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:263) [jbpm-gwt-core-5.3.0.Final.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jbpm.integration.console.StatefulKnowledgeSessionUtil.initializeStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:154) [jbpm-gwt-core-5.3.0.Final.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;... 41 more</p><p>Caused by: org.hibernate.HibernateException: <strong>Could not find datasource: java:jboss/datasources/jbpmDS</strong></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:98) [classes:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137) [hibernate-core-3.3.2.GA.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29) [hibernate-entitymanager-3.4.0.GA.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89) [hibernate-core-3.3.2.GA.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119) [hibernate-core-3.3.2.GA.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115) [hibernate-core-3.3.2.GA.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339) [<strong>hibernate-core-3.3.2.GA.jar:</strong>]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867) [hibernate-annotations-3.4.0.GA.jar:]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669) [</p><p>Prashanth,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Please help us on the below issue. we are struggling with this from quite a long time.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>We are working on JBPM 5.3 set up on Jboss AS 7.0.1. When we are opening jbpm console using the url<strong><span> </span><a class="jive-link-external-small" href="http://localhost:8280/jbpm-console" target="_blank">http://localhost:8280/jbpm-console</a></strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p> we are are getting <strong>org.hibernate.HibernateException: Could not find datasource: java:jboss/datasources/jbpmDS</strong> error.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>We have tried with custom transaction manager lookup as you suggested, but it is in vain. we are still getting the following problem.</p><p><strong>org.hibernate.HibernateException: Could not find datasource: java:jboss/datasources/jbpmDS</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>Here is the persistence.xml</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; color: #a94611;"><span style="color: #9d4bd0;">&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;</span><span style="color: #000000;"><br/> </span><span style="color: #0726a4;">&lt;persistence</span><span style="color: #f79764;"> version</span><span style="color: #ff9458;">=</span>"1.0"<span style="color: #000000;"><br/> </span><span style="color: #f79764;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; xsi:schemaLocation</span><span style="color: #ff9458;">=</span><span>"</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence" target="_blank">http://java.sun.com/xml/ns/persistence</a><span style="color: #000000;"><br/> </span><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" target="_blank">http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd</a><span style="color: #000000;"><br/> </span><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence/orm" target="_blank">http://java.sun.com/xml/ns/persistence/orm</a><span> </span><span style="color: #000000;"><br/> </span><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence/orm_1_0.xsd" target="_blank">http://java.sun.com/xml/ns/persistence/orm_1_0.xsd</a><span>"</span><span style="color: #000000;"><br/> </span><span style="color: #f79764;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #06aad4;">xmlns:orm</span><span style="color: #ff9458;">=</span><span>"</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence/orm" target="_blank">http://java.sun.com/xml/ns/persistence/orm</a><span>"</span><span style="color: #000000;"><br/> </span><span style="color: #f79764;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #06aad4;">xmlns:xsi</span><span style="color: #ff9458;">=</span><span>"</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><span>"</span><span style="color: #000000;"><br/> </span><span style="color: #f79764;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; xmlns</span><span style="color: #ff9458;">=</span><span>"</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence" target="_blank">http://java.sun.com/xml/ns/persistence</a><span>"</span><span style="color: #0726a4;">&gt;</span><span style="color: #000000;"><br/> <br/>&#160;&#160; </span><span style="color: #0726a4;">&lt;persistence-unit</span><span style="color: #f79764;"> name</span><span style="color: #ff9458;">=</span>"org.jbpm.persistence.jpa"<span style="color: #f79764;"> transaction-type</span><span style="color: #ff9458;">=</span>"JTA"<span style="color: #0726a4;">&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;provider&gt;</span><span style="color: #000000;">org.hibernate.ejb.HibernatePersistence</span><span style="color: #0726a4;">&lt;/provider&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;jta-data-source&gt;</span><span style="color: #000000;">java:jboss/datasources/jbpmDS</span><span style="color: #0726a4;">&lt;/jta-data-source&gt;</span><span style="color: #000000;"> <br/>&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;mapping-file&gt;</span><span style="color: #000000;">META-INF/JBPMorm.xml</span><span style="color: #0726a4;">&lt;/mapping-file&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;mapping-file&gt;</span><span style="color: #000000;">META-INF/ProcessInstanceInfo.hbm.xml</span><span style="color: #0726a4;">&lt;/mapping-file&gt;</span><span style="color: #000000;"><br/> <br/>&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;class&gt;</span><span style="color: #000000;">org.jbpm.persistence.processinstance.ProcessInstanceInfo</span><span style="color: #0726a4;">&lt;/class&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;class&gt;</span><span style="color: #000000;">org.drools.persistence.info.SessionInfo</span><span style="color: #0726a4;">&lt;/class&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;class&gt;</span><span style="color: #000000;">org.drools.persistence.info.WorkItemInfo</span><span style="color: #0726a4;">&lt;/class&gt;</span><span style="color: #000000;"><br/> <br/>&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;class&gt;</span><span style="color: #000000;">org.jbpm.process.audit.ProcessInstanceLog</span><span style="color: #0726a4;">&lt;/class&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;class&gt;</span><span style="color: #000000;">org.jbpm.process.audit.NodeInstanceLog</span><span style="color: #0726a4;">&lt;/class&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;class&gt;</span><span style="color: #000000;">org.jbpm.process.audit.VariableInstanceLog</span><span style="color: #0726a4;">&lt;/class&gt;</span><span style="color: #000000;"><br/> <br/>&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;properties&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #00730f;">&lt;!-- &lt;property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/&gt;</span><span style="color: #000000;"><br/> </span><span style="color: #00730f;">&#160;&#160;&#160;&#160;&#160;&#160; &lt;property name="hibernate.hbm2ddl.auto" value="create" /&gt;</span><span style="color: #000000;"><br/> </span><span style="color: #00730f;">&#160;&#160;&#160;&#160;&#160; </span><span style="color: #000000;"><br/> </span><span style="color: #00730f;">&#160;&#160;&#160;&#160;&#160;&#160; &lt;property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/&gt;</span><span style="color: #000000;"><br/> </span><span style="color: #00730f;">&#160;&#160;&#160;&#160;&#160; &lt;property name="hibernate.connection.url" value="jdbc:mysql://127.0.0.1:3306/test" /&gt;</span><span style="color: #000000;"><br/> </span><span style="color: #00730f;">&#160;&#160;&#160;&#160;&#160; &lt;property name="hibernate.connection.username" value="root"/&gt;</span><span style="color: #000000;"><br/> </span><span style="color: #00730f;">&#160;&#160;&#160;&#160;&#160; &lt;property name="hibernate.connection.password" value=""/&gt;</span><span style="color: #000000;"><br/> </span><span style="color: #00730f;">&#160;&#160;&#160;&#160;&#160; &lt;property name="hibernate.connection.autocommit" value="false" /&gt;&#160;&#160; --&gt;</span><span style="color: #000000;"><br/> </span><span style="color: #00730f;">&lt;!-- &lt;property name="jta.UserTransaction" value = "java:jboss/TransactionManager"/&gt; --&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #00730f;">&lt;!--&#160; &lt;property name="jta.data.source" value="java:jboss/datasources/jbpmDS"/&gt; --&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #00730f;">&lt;!--&#160; &lt;property name="hibernate.max_fetch_depth" value="3"/&gt;&#160; --&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #00730f;">&lt;!-- hbm2ddl.auto MUST BE update! The console will otherwise overwrite the schema with each new thread --&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160;&#160; <br/>&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;property</span><span style="color: #f79764;"> name</span><span style="color: #ff9458;">=</span>"hibernate.show_sql"<span style="color: #f79764;"> value</span><span style="color: #ff9458;">=</span>"true"<span style="color: #f79764;"> </span><span style="color: #0726a4;">/&gt;</span><span style="color: #000000;"><br/> <br/>&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #00730f;">&lt;!-- for AS7 --&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;property</span><span style="color: #f79764;"> name</span><span style="color: #ff9458;">=</span>"hibernate.transaction.manager_lookup_class"<span style="color: #f79764;"> value</span><span style="color: #ff9458;">=</span>"org.jbpm.integration.console.JBPMTransactionManager"<span style="color: #f79764;"> </span><span style="color: #0726a4;">/&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #00730f;">&lt;!-- for AS5 --&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #00730f;">&lt;!-- &lt;property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" /&gt; --&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160; </span><span style="color: #0726a4;">&lt;/properties&gt;</span><span style="color: #000000;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br/>&#160;&#160; </span><span style="color: #0726a4;">&lt;/persistence-unit&gt;</span><span style="color: #000000;"><br/>&#160;&#160;&#160;&#160; <br/> </span><span style="color: #0726a4;">&lt;/persistence&gt;</span><span style="color: #000000;"><br/></span></p><p><strong><br/></strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong><br/></strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>We can see the following trace on the Jboss AS console :</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>11:02:34,919 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http--127.0.0.1-8280-2) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.UnhandledException: java.lang.ExceptionInInitializerError</p><p>&#160; at org.jboss.resteasy.core.SynchronousDispatcher.unwrapException(SynchronousDispatcher.java:345) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160; at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:321) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160; at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160; at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160; at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:534) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160; at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160; at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160; at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160; at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160; at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160; at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]</p><p>&#160; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160; at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) [classes:]</p><p>&#160; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160; at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160; at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160; at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]</p><p>&#160; at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:480) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160; at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]</p><p>&#160; at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160; at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160; at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160; at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160; at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160; at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160; at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>&#160; at java.lang.Thread.run(Thread.java:680) [:1.6.0_33]</p><p>Caused by: java.lang.ExceptionInInitializerError</p><p>&#160; at org.jbpm.integration.console.StatefulKnowledgeSessionUtil.getStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:131) [jbpm-gwt-core-5.3.0.Final.jar:]</p><p>&#160; at org.jbpm.integration.console.SessionInitializer.&lt;init&gt;(SessionInitializer.java:25) [jbpm-gwt-core-5.3.0.Final.jar:]</p><p>&#160; at org.jbpm.integration.console.TaskManagement.&lt;init&gt;(TaskManagement.java:51) [jbpm-gwt-core-5.3.0.Final.jar:]</p><p>&#160; at org.jbpm.integration.console.ManagementFactory.createTaskManagement(ManagementFactory.java:26) [jbpm-gwt-core-5.3.0.Final.jar:]</p><p>&#160; at org.jbpm.integration.console.ManagementFactory.createTaskManagement(ManagementFactory.java:19) [jbpm-gwt-core-5.3.0.Final.jar:]</p><p>&#160; at org.jboss.bpm.console.server.TaskListFacade.getTaskManagement(TaskListFacade.java:72) [classes:]</p><p>&#160; at org.jboss.bpm.console.server.TaskListFacade.getTasksForIdRef(TaskListFacade.java:101) [classes:]</p><p>&#160; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_33]</p><p>&#160; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_33]</p><p>&#160; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_33]</p><p>&#160; at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_33]</p><p>&#160; at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160; at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:255) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160; at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:220) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160; at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:209) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160; at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:519) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>&#160; ... 24 more</p><p>Caused by: java.lang.RuntimeException: Could not initialize stateful knowledge session: [PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory</p><p>&#160; at org.jbpm.integration.console.StatefulKnowledgeSessionUtil.initializeStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:163) [jbpm-gwt-core-5.3.0.Final.jar:]</p><p>&#160; at org.jbpm.integration.console.StatefulKnowledgeSessionUtil$SessionHolder.&lt;clinit&gt;(StatefulKnowledgeSessionUtil.java:127) [jbpm-gwt-core-5.3.0.Final.jar:]</p><p>&#160; ... 40 more</p><p>Caused by: javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory</p><p>&#160; at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677) [hibernate-entitymanager-3.4.0.GA.jar:]</p><p>&#160; at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126) [hibernate-entitymanager-3.4.0.GA.jar:]</p><p>&#160; at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63) [hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]</p><p>&#160; at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47) [hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]</p><p>&#160; at org.jbpm.integration.console.StatefulKnowledgeSessionUtil.createOrLoadStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:263) [jbpm-gwt-core-5.3.0.Final.jar:]</p><p>&#160; at org.jbpm.integration.console.StatefulKnowledgeSessionUtil.initializeStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:154) [jbpm-gwt-core-5.3.0.Final.jar:]</p><p>&#160; ... 41 more</p><p>Caused by: org.hibernate.HibernateException: <strong>Could not find datasource: java:jboss/datasources/jbpmDS</strong></p><p>&#160; at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:98) [classes:]</p><p>&#160; at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137) [hibernate-core-3.3.2.GA.jar:]</p><p>&#160; at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29) [hibernate-entitymanager-3.4.0.GA.jar:]</p><p>&#160; at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89) [hibernate-core-3.3.2.GA.jar:]</p><p>&#160; at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119) [hibernate-core-3.3.2.GA.jar:]</p><p>&#160; at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115) [hibernate-core-3.3.2.GA.jar:]</p><p>&#160; at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339) [<strong>hibernate-core-3.3.2.GA.jar:</strong>]</p><p>&#160; at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867) [hibernate-annotations-3.4.0.GA.jar:]</p><p>&#160; at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669) [<strong>hibernate-entitymanager-3.4.0.GA.jar</strong>:]</p><p>&#160; ... 46 more</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/760500#760500">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>