<!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: WorkItemHandler Deployment Problem
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/allgreenphosphor">Reza Ghalavand</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/761111#761111">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>I think this may help as well, I've taken it from server.log:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>15:12:02,146 WARN  [com.arjuna.ats.jta] (http-localhost-127.0.0.1-8080-4) ARJUNA16029: SynchronizationImple.afterCompletion - failed for org.drools.persistence.jta.JtaTransactionSynchronizationAdapter@460051 with exception: [Error: unable to resolve class: com.myTask.WorkItemHandler from [Module "deployment.jbpm-gwt-console-server.war:main" from Service Module Loader]]</p><p>[Near : {... "MyLog": new com.myTask.WorkItemHandler(), ....}]</p><p>                          ^</p><p>[Line: 5, Column: 14]</p><p>          at org.mvel2.ast.NewObjectNode.getReducedValue(NewObjectNode.java:294) [mvel2-2.1.0.drools16.jar:]</p><p>          at org.mvel2.MVELInterpretedRuntime.parseAndExecuteInterpreted(MVELInterpretedRuntime.java:106) [mvel2-2.1.0.drools16.jar:]</p><p>          at org.mvel2.MVELInterpretedRuntime.parse(MVELInterpretedRuntime.java:49) [mvel2-2.1.0.drools16.jar:]</p><p>          at org.mvel2.MVEL.eval(MVEL.java:150) [mvel2-2.1.0.drools16.jar:]</p><p>          at org.mvel2.ast.InlineCollectionNode.execGraph(InlineCollectionNode.java:180) [mvel2-2.1.0.drools16.jar:]</p><p>          at org.mvel2.ast.InlineCollectionNode.execGraph(InlineCollectionNode.java:138) [mvel2-2.1.0.drools16.jar:]</p><p>          at org.mvel2.ast.InlineCollectionNode.getReducedValue(InlineCollectionNode.java:105) [mvel2-2.1.0.drools16.jar:]</p><p>          at org.mvel2.MVELInterpretedRuntime.parseAndExecuteInterpreted(MVELInterpretedRuntime.java:106) [mvel2-2.1.0.drools16.jar:]</p><p>          at org.mvel2.MVELInterpretedRuntime.parse(MVELInterpretedRuntime.java:49) [mvel2-2.1.0.drools16.jar:]</p><p>          at org.mvel2.MVEL.eval(MVEL.java:165) [mvel2-2.1.0.drools16.jar:]</p><p>          at org.drools.SessionConfiguration.loadWorkItemHandlers(SessionConfiguration.java:304) [drools-core-5.4.0.Final.jar:]</p><p>          at org.drools.SessionConfiguration.initWorkItemHandlers(SessionConfiguration.java:294) [drools-core-5.4.0.Final.jar:]</p><p>          at org.drools.SessionConfiguration.getWorkItemHandlers(SessionConfiguration.java:269) [drools-core-5.4.0.Final.jar:]</p><p>          at org.drools.common.AbstractWorkingMemory.getWorkItemManager(AbstractWorkingMemory.java:1106) [drools-core-5.4.0.Final.jar:]</p><p>          at org.drools.impl.StatefulKnowledgeSessionImpl.getWorkItemManager(StatefulKnowledgeSessionImpl.java:311) [drools-core-5.4.0.Final.jar:]</p><p>          at org.drools.persistence.SingleSessionCommandService$SynchronizationImpl.afterCompletion(SingleSessionCommandService.java:452) [drools-persistence-jpa-5.4.0.Final.jar:]</p><p>          at org.drools.persistence.jta.JtaTransactionSynchronizationAdapter.afterCompletion(JtaTransactionSynchronizationAdapter.java:22) [drools-persistence-jpa-5.4.0.Final.jar:]</p><p>          at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.afterCompletion(SynchronizationImple.java:117)</p><p>          at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.afterCompletion(TwoPhaseCoordinator.java:403)</p><p>          at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:104)</p><p>          at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:159)</p><p>          at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1159)</p><p>          at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:119)</p><p>          at org.drools.persistence.jta.JtaTransactionManager.commit(JtaTransactionManager.java:179) [drools-persistence-jpa-5.4.0.Final.jar:]</p><p>          at org.drools.persistence.SingleSessionCommandService.<init>(SingleSessionCommandService.java:155) [drools-persistence-jpa-5.4.0.Final.jar:]</p><p>          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [:1.7.0_07]</p><p>          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [:1.7.0_07]</p><p>          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [:1.7.0_07]</p><p>          at java.lang.reflect.Constructor.newInstance(Constructor.java:525) [:1.7.0_07]</p><p>          at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommandService(KnowledgeStoreServiceImpl.java:129) [drools-persistence-jpa-5.4.0.Final.jar:]</p><p>          at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.newStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:67) [drools-persistence-jpa-5.4.0.Final.jar:]</p><p>          at org.drools.persistence.jpa.JPAKnowledgeService.newStatefulKnowledgeSession(JPAKnowledgeService.java:122) [knowledge-api-5.4.0.Final.jar:]</p><p>          at org.jbpm.integration.console.StatefulKnowledgeSessionUtil.createOrLoadStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:310) [jbpm-gwt-core-5.3.0.Final.jar:]</p><p>          at org.jbpm.integration.console.StatefulKnowledgeSessionUtil.initializeStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:154) [jbpm-gwt-core-5.3.0.Final.jar:]</p><p>          at org.jbpm.integration.console.StatefulKnowledgeSessionUtil$SessionHolder.<clinit>(StatefulKnowledgeSessionUtil.java:127) [jbpm-gwt-core-5.3.0.Final.jar:]</p><p>          at org.jbpm.integration.console.StatefulKnowledgeSessionUtil.getStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:131) [jbpm-gwt-core-5.3.0.Final.jar:]</p><p>          at org.jbpm.integration.console.SessionInitializer.<init>(SessionInitializer.java:25) [jbpm-gwt-core-5.3.0.Final.jar:]</p><p>          at org.jbpm.integration.console.TaskManagement.<init>(TaskManagement.java:51) [jbpm-gwt-core-5.3.0.Final.jar:]</p><p>          at org.jbpm.integration.console.ManagementFactory.createTaskManagement(ManagementFactory.java:26) [jbpm-gwt-core-5.3.0.Final.jar:]</p><p>          at org.jbpm.integration.console.ManagementFactory.createTaskManagement(ManagementFactory.java:19) [jbpm-gwt-core-5.3.0.Final.jar:]</p><p>          at org.jboss.bpm.console.server.TaskListFacade.getTaskManagement(TaskListFacade.java:72) [classes:]</p><p>          at org.jboss.bpm.console.server.TaskListFacade.getTasksForIdRef(TaskListFacade.java:101) [classes:]</p><p>          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.7.0_07]</p><p>          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [:1.7.0_07]</p><p>          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.7.0_07]</p><p>          at java.lang.reflect.Method.invoke(Method.java:601) [:1.7.0_07]</p><p>          at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>          at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:255) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>          at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:220) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>          at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:209) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>          at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:519) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>          at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>          at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>          at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>          at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>          at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) [resteasy-jaxrs-2.2.1.GA.jar:]</p><p>          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>          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>          at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) [classes:]</p><p>          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>          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>          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:480) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>          at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]</p><p>          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952) [jbossweb-7.0.1.Final.jar:7.0.2.Final]</p><p>          at java.lang.Thread.run(Thread.java:722) [:1.7.0_07]</p><p>Caused by: java.lang.ClassNotFoundException: com.myTask.WorkItemHandler from [Module "deployment.jbpm-gwt-console-server.war:main" from Service Module Loader]</p><p>          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)</p><p>          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)</p><p>          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)</p><p>          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)</p><p>          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)</p><p>          at java.lang.Class.forName0(Native Method) [:1.7.0_07]</p><p>          at java.lang.Class.forName(Class.java:264) [:1.7.0_07]</p><p>          at org.mvel2.util.ParseTools.createClass(ParseTools.java:517) [mvel2-2.1.0.drools16.jar:]</p><p>          at org.mvel2.util.ParseTools.findClass(ParseTools.java:944) [mvel2-2.1.0.drools16.jar:]</p><p>          at org.mvel2.ast.NewObjectNode.getReducedValue(NewObjectNode.java:256) [mvel2-2.1.0.drools16.jar:]</p><p>          ... 74 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/761111#761111">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>