<!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: JTA Problem with multiple sessions
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/sumerus">Sumeru Saha</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/820922#820922">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 Maciej,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Another spot on reply - i'm becoming a fan of yours. I havn't seen the exception in the log after deleting the .ser file.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Once this is done let me bother you little bit more with another harmless exception in my log ... I've used a <strong>com.sample.service.Student </strong>, in my BPMN2 process model. I instantiated this Student class in a script task. For this i needed to upload the jar containing this class as POJO Model in Guvnor. Also this jar is in the jbpm-gwt-console-server.war/WEB-INF/lib. Everything works fine but everytime i login into the&#160; jbpm-console, the following exception appears in the server.log. can you please tell me what could be wrong ... do i need to put the jar in the jbpm-gwt-console.war also (but as far i recall i also tried that)? </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks</p><p>Sumeru</p><p>---</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>14:15:41,777 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) java.lang.RuntimeException: KnowledgeAgent exception while trying to deserialize KnowledgeDefinitionsPackage&#160; <span style="font-size: 10pt;"> </span></p><p>14:15:41,785 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:796)</p><p>14:15:41,790 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.drools.agent.impl.KnowledgeAgentImpl.incrementalBuildResources(KnowledgeAgentImpl.java:987)</p><p>14:15:41,796 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.drools.agent.impl.KnowledgeAgentImpl.buildKnowledgeBase(KnowledgeAgentImpl.java:686)</p><p>14:15:41,802 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:207)</p><p>14:15:41,810 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:186)</p><p>14:15:41,819 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jbpm.integration.console.kbase.DefaultKnowledgeBaseManager.buildKnowledgeAgent(DefaultKnowledgeBaseManager.java:157)</p><p>14:15:41,827 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jbpm.integration.console.kbase.DefaultKnowledgeBaseManager.getKnowledgeBase(DefaultKnowledgeBaseManager.java:65)</p><p>14:15:41,837 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jbpm.integration.console.StatefulKnowledgeSessionUtil.initializeStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:102)</p><p>14:15:41,848 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jbpm.integration.console.StatefulKnowledgeSessionUtil$SessionHolder.&lt;clinit&gt;(StatefulKnowledgeSessionUtil.java:84)</p><p>14:15:41,854 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jbpm.integration.console.StatefulKnowledgeSessionUtil.getStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:88)</p><p>14:15:41,863 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jbpm.integration.console.SessionInitializer.&lt;init&gt;(SessionInitializer.java:25)</p><p>14:15:41,871 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jbpm.integration.console.TaskManagement.&lt;init&gt;(TaskManagement.java:52)</p><p>14:15:41,877 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jbpm.integration.console.ManagementFactory.createTaskManagement(ManagementFactory.java:26)</p><p>14:15:41,885 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jbpm.integration.console.ManagementFactory.createTaskManagement(ManagementFactory.java:19)</p><p>14:15:41,890 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.bpm.console.server.TaskListFacade.getTaskManagement(TaskListFacade.java:72)</p><p>14:15:41,896 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.bpm.console.server.TaskListFacade.getTasksForIdRef(TaskListFacade.java:101)</p><table><tbody><tr><td style=";">14:15:41,901 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)</td><td style=";">at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</td></tr><tr><td style=";">14:15:41,905 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)</td><td style=";">at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)</td></tr><tr><td style=";">14:15:41,911 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)</td><td style=";">at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)</td></tr><tr><td style=";">14:15:41,916 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)</td><td style=";">at java.lang.reflect.Method.invoke(Method.java:601)</td></tr><tr><td style=";">14:15:41,922 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)</td><td style=";">at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:155)</td></tr><tr><td style=";">14:15:41,932 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)</td><td style=";">at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257)</td></tr><tr><td style=";">14:15:41,937 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)</td><td style=";">at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222)</td></tr><tr><td style=";">14:15:41,941 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)</td><td style=";">at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:211)</td></tr><tr><td style=";">14:15:41,946 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)</td><td style=";">at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:525)</td></tr><tr><td style=";">14:15:41,952 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)</td><td style=";">at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:502)</td></tr><tr><td style=";">14:15:41,957 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)</td><td style=";">at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)</td></tr><tr><td style=";">14:15:41,962 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)</td><td style=";">at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)</td></tr><tr><td style=";">14:15:41,968 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)</td><td style=";">at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)</td></tr><tr><td style=";">14:15:41,974 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)</td><td style=";">at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)</td></tr><tr><td style=";">14:15:41,980 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)</td><td style=";">at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)</td></tr><tr><td style=";">14:15:41,984 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)</td><td style=";">at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)</td></tr><tr><td style=";">14:15:41,990 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)</td><td style=";">at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)</td></tr><tr><td style=";">14:15:41,995 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)</td><td style=";">at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)</td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>...</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>14:15:42,108 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) Caused by: java.lang.ClassNotFoundException: com.sample.Student from [Module "deployment.jbpm-gwt-console-server.war:main" from Service Module Loader]</p><table><tbody><tr><td style=";"><br/></td><td style=";"><br/></td></tr></tbody></table><table><tbody><tr><td style=";">14:15:42,116 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)</td><td style=";">at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)</td></tr></tbody></table><table><tbody><tr><td style=";">14:15:42,125 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)</td><td style=";">at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)</td></tr></tbody></table><p>...</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/820922#820922">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>