<!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="http://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;">
Timer Issue ClassNotFoundException LoadContexts
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/ogalaup">ogalaup</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/615367#615367">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hello,</p><p>I’m using JBPM 4.4 with webpshere.</p><p>If I’m having this descriptor:</p><p>   <task assignee="HERE" g="507,118,170,52" name="Pause"></p><p>                  <transition g="-72,-20" name="to Pause1" to="Pause1"/></p><p>   </task></p><p><strong>=> No Error</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>If I’m using this descriptor with a timer:</p><p>   <task assignee="HERE" g="507,118,170,52" name="Pause"></p><p>                  <transition g="-72,-20" name="to Pause1" to="Pause1"/></p><p>      <transition g="-17,6" name="timeout" to="Pause2"></p><p>                <timer duedate="4 business days"/></p><p>      </transition></p><p>   </task></p><p><strong>=> I have this error:</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Exception in thread "DispatcherThread" java.lang.NoClassDefFoundError: org/hibernate/engine/loading/LoadContexts</p><p>        at org.hibernate.engine.StatefulPersistenceContext.getLoadContexts(StatefulPersistenceContext.java:171)</p><p>        at org.hibernate.type.CollectionType.getCollection(CollectionType.java:630)</p><p>        at org.hibernate.type.CollectionType.resolveKey(CollectionType.java:430)</p><p>        at org.hibernate.type.CollectionType.resolve(CollectionType.java:424)</p><p>        at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:139)</p><p>        at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:877)</p><p>        at org.hibernate.loader.Loader.doQuery(Loader.java:752)</p><p>        at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)</p><p>        at org.hibernate.loader.Loader.loadEntity(Loader.java:1881)</p><p>        at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:71)</p><p>        at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:65)</p><p>        at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3072)</p><p>        at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:434)</p><p>        at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:415)</p><p>        at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:165)</p><p>        at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:223)</p><p>        at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:126)</p><p>        at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:905)</p><p>        at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:873)</p><p>        at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:590)</p><p>        at org.hibernate.type.EntityType.resolve(EntityType.java:412)</p><p>        at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:139)</p><p>        at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:877)</p><p>        at org.hibernate.loader.Loader.doQuery(Loader.java:752)</p><p>        at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)</p><p>        at org.hibernate.loader.Loader.doList(Loader.java:2228)</p><p>        at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125)</p><p>        at org.hibernate.loader.Loader.list(Loader.java:2120)</p><p>        at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401)</p><p>        at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:361)</p><p>        at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)</p><p>        at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1148)</p><p>        at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)</p><p>        at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:835)</p><p>        at org.jbpm.pvm.internal.hibernate.DbSessionImpl.findFirstDueJob(DbSessionImpl.java:332)</p><p>        at org.jbpm.pvm.internal.jobexecutor.GetNextDueDateCmd.execute(GetNextDueDateCmd.java:45)</p><p>        at org.jbpm.pvm.internal.jobexecutor.GetNextDueDateCmd.execute(GetNextDueDateCmd.java:35)</p><p>        at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)</p><p>        at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:50)</p><p>        at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)</p><p>        at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)</p><p>        at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:56)</p><p>        at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)</p><p>        at org.jbpm.pvm.internal.jobexecutor.DispatcherThread.getNextDueDate(DispatcherThread.java:132)</p><p>        at org.jbpm.pvm.internal.jobexecutor.DispatcherThread.getWaitPeriod(DispatcherThread.java:137)</p><p>        at org.jbpm.pvm.internal.jobexecutor.DispatcherThread.run(DispatcherThread.java:76)</p><p>Caused by: java.lang.ClassNotFoundException: org.hibernate.engine.loading.LoadContexts</p><p>        at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)</p><p>        at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)</p><p>        at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)</p><p>        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)</p><p>        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)</p><p>        at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)</p><p>        at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:52)</p><p>        ... 46 more</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>An idea why do I have this error ?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Regards,</p><p>Olivier</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/615367#615367">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="http://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>