[JBoss jBPM] - Job Executor and Spring
by ssljivic
Hi,
I was trying to use the solution posted by Joram Barrez for integrating JobExecutor with Spring http://www.jorambarrez.be/blog/2008/08/26/jbpm-job-executor-for-spring/, but when I run the server, I am getting the following error:
2008-10-09 16:06:38,627 [JbpmJobExecutor:192.168.100.132:1] ERROR org.jbpm.job.executor.JobExecutorThread - exception in job executor thread. waiting 10000 milliseconds
| java.lang.NullPointerException
| at org.jbpm.job.executor.JobExecutorThread.acquireJobs(JobExecutorThread.java:110)
| at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:58)
The relevant Spring configuration is:
<bean id="jbpmConfiguration" class="org.springmodules.workflow.jbpm31.LocalJbpmConfigurationFactoryBean">
| <property name="sessionFactory" ref="sessionFactory" />
| <property name="configuration" value="classpath:org/jbpm/default.jbpm.cfg.xml" />
|
| <property name="processDefinitionsResources">
| <list>
|
| </list>
| </property>
| </bean>
|
| <bean id="jbpmJobExecutorLoader" class="JbpmJobExecutorLoader">
| <property name="jbpmConfiguration" ref="jbpmConfiguration" />
| </bean>
It seems that JobExecutor does not get the reference to the jbpmConfiguration, but I do not know why.
Any help is appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4181287#4181287
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4181287
15 years, 12 months
[JBoss jBPM] - jBPM running on WebSphere 6
by francong2000
We are facing the problem is that our application is using WebSphere 6.1.0.17. The application is adopted jBPM tools that also employ Hibernate tool as ORM. However, when jBPM via Hibernate to lookup JTA transaction from WebSphere, it throws the javax.naming.ConfigurationException as below. I also tried different setting like lookup manager and JNDI name, but still fail. Please help to solve.
Configuration
==========
OS: AIX reportserver 3 5 000E2BF1D900
JDK: J2RE 1.5.0 IBM J9 2.3 AIX ppc64-64 j9vmap6423-20080315 (JIT enabled)
Hibernate: 3.2.2
JBPM: 3.2.1
Transaction Lookup Manager
=====================
org.hibernate.transaction.WebSphereTransactionManagerLookup
org.hibernate.transaction.WebSphereExtendedJTATransactionLookup
JNDI Name
========
jta/usertransaction - Throws javax.naming.ConfigurationException
java:comp/UserTransaction - Throws Name not found exception
If using jta/usertransaction, it throws following exception
Exception
==========
NamingException is being thrown from a javax.naming.Context implementation. Details follow:
Context implementation: com.ibm.ws.naming.jndicos.CNContextImpl
Context method: lookupExt
Context name: reportserverCell01/nodes/reportserverNode01/servers/Server-DE3-DEV
Target name: jta/usertransaction
Other data: ""
Exception stack trace: com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while
the JNDI NamingManager was processing a javax.naming.Reference object. [Root exception is javax.naming.Conf
igurationException]
at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt(Helpers.java:1000)
at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java:705)
at com.ibm.ws.naming.jndicos.CNContextImpl.processResolveResults(CNContextImpl.java:2093)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1947)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1862)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1552)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1354)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:172)
at javax.naming.InitialContext.lookup(InitialContext.java:363)
at org.hibernate.transaction.JTATransaction.(JTATransaction.java:60)
at org.hibernate.transaction.JTATransactionFactory.createTransaction(JTATransactionFactory.java:57)
at org.hibernate.jdbc.JDBCContext.getTransaction(JDBCContext.java:193)
at org.hibernate.impl.SessionImpl.getTransaction(SessionImpl.java:1315)
at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1325)
at org.jbpm.persistence.db.DbPersistenceService.beginTransaction(DbPersistenceService.java:132)
at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:124)
at org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersistenceService.java:345)
at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:571)
at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:173)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4181152#4181152
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4181152
15 years, 12 months