[jBPM] - Timer Issue ClassNotFoundException LoadContexts
by ogalaup
ogalaup [http://community.jboss.org/people/ogalaup] created the discussion
"Timer Issue ClassNotFoundException LoadContexts"
To view the discussion, visit: http://community.jboss.org/message/615367#615367
--------------------------------------------------------------
Hello,
I’m using JBPM 4.4 with webpshere.
If I’m having this descriptor:
<task assignee="HERE" g="507,118,170,52" name="Pause">
<transition g="-72,-20" name="to Pause1" to="Pause1"/>
</task>
*=> No Error*
If I’m using this descriptor with a timer:
<task assignee="HERE" g="507,118,170,52" name="Pause">
<transition g="-72,-20" name="to Pause1" to="Pause1"/>
<transition g="-17,6" name="timeout" to="Pause2">
<timer duedate="4 business days"/>
</transition>
</task>
*=> I have this error:*
Exception in thread "DispatcherThread" java.lang.NoClassDefFoundError: org/hibernate/engine/loading/LoadContexts
at org.hibernate.engine.StatefulPersistenceContext.getLoadContexts(StatefulPersistenceContext.java:171)
at org.hibernate.type.CollectionType.getCollection(CollectionType.java:630)
at org.hibernate.type.CollectionType.resolveKey(CollectionType.java:430)
at org.hibernate.type.CollectionType.resolve(CollectionType.java:424)
at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:139)
at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:877)
at org.hibernate.loader.Loader.doQuery(Loader.java:752)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
at org.hibernate.loader.Loader.loadEntity(Loader.java:1881)
at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:71)
at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:65)
at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3072)
at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:434)
at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:415)
at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:165)
at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:223)
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:126)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:905)
at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:873)
at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:590)
at org.hibernate.type.EntityType.resolve(EntityType.java:412)
at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:139)
at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:877)
at org.hibernate.loader.Loader.doQuery(Loader.java:752)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
at org.hibernate.loader.Loader.doList(Loader.java:2228)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125)
at org.hibernate.loader.Loader.list(Loader.java:2120)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:361)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1148)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:835)
at org.jbpm.pvm.internal.hibernate.DbSessionImpl.findFirstDueJob(DbSessionImpl.java:332)
at org.jbpm.pvm.internal.jobexecutor.GetNextDueDateCmd.execute(GetNextDueDateCmd.java:45)
at org.jbpm.pvm.internal.jobexecutor.GetNextDueDateCmd.execute(GetNextDueDateCmd.java:35)
at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:50)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:56)
at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)
at org.jbpm.pvm.internal.jobexecutor.DispatcherThread.getNextDueDate(DispatcherThread.java:132)
at org.jbpm.pvm.internal.jobexecutor.DispatcherThread.getWaitPeriod(DispatcherThread.java:137)
at org.jbpm.pvm.internal.jobexecutor.DispatcherThread.run(DispatcherThread.java:76)
Caused by: java.lang.ClassNotFoundException: org.hibernate.engine.loading.LoadContexts
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:52)
... 46 more
An idea why do I have this error ?
Regards,
Olivier
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/615367#615367]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months
[JBoss Tools] - Problem with Plugin JBoss Maven CDI Configurator 3.3 M2
by Gonne Martens
Gonne Martens [http://community.jboss.org/people/gonne] created the discussion
"Problem with Plugin JBoss Maven CDI Configurator 3.3 M2"
To view the discussion, visit: http://community.jboss.org/message/613290#613290
--------------------------------------------------------------
Hi,
I am using Eclipse 3.7 with M2E Maven Integration and JBoss Tools 3.3 M2.
When I try to update the project configuration (Menu Maven -> Update project configuration) for a simple maven EJB project with a CDI dependency (javax.enterprise:cdi-api:1.0-SP4) I get the following error message:
> Errors occurred during the build.
> Errors running builder 'Maven Project Builder' on project 'sandbox-ejb'.
> Cannot compare versions of different facets to each other. Attempted to compare version 3.1 of facet jst.ejb with version 2.5 of facet jst.web.
I tried to isolate the problem by removing all unnecessary JBoss Tools plugins. The error occurs when the plugin "JBoss Maven CDI Configurator" is installed (1.2.0.v20110624-0731-H5-M2)
The error disappears when the "CDI facet" in Preferences/JBoss Tools/JBoss Maven Integration is disabled.
Kind regards,
Gonne
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/613290#613290]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months