[jboss-user] [JBoss jBPM] - JobExecutorThread

lpiccoli do-not-reply at jboss.com
Tue Jul 28 19:53:37 EDT 2009


jbpm 3.2.6SP1
portal 2.7.2
jboss4.2.2

hi all,

when running jbpm3.2.6 on jboss portal 2.7.2 the following error occurs in the start up of the JobExecutorThread.


  | 22:25:37,101 ERROR [JobExecutorThread] exception in job executor thread. waiting
  |  20000 milliseconds
  | org.jbpm.JbpmException: couldn't begin user transaction
  |         at org.jbpm.persistence.jta.JtaDbPersistenceService.beginUserTransaction
  | (JtaDbPersistenceService.java:78)
  |         at org.jbpm.persistence.jta.JtaDbPersistenceService.<init>(JtaDbPersiste
  | nceService.java:46)
  |         at org.jbpm.persistence.jta.JtaDbPersistenceServiceFactory.openService(J
  | taDbPersistenceServiceFactory.java:66)
  |         at org.jbpm.svc.Services.getService(Services.java:177)
  |         at org.jbpm.svc.Services.getPersistenceService(Services.java:231)
  |         at org.jbpm.JbpmContext.getPersistenceService(JbpmContext.java:705)
  |         at org.jbpm.JbpmContext.getJobSession(JbpmContext.java:629)
  |         at org.jbpm.job.executor.JobExecutorThread.acquireJobs(JobExecutorThread
  | .java:106)
  |         at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:54
  | )
  | Caused by: org.jbpm.JbpmException: could not retrieve user transaction with name
  |  java:comp/UserTransaction
  | 

the problem is with jbpmContext.getJobSession(), as it can't get a user transaction.


  |  protected Collection<Job> acquireJobs() {
  |     Collection<Job> acquiredJobs = Collections.emptyList();
  |     synchronized (jobExecutor) {
  |       JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
  |       try {
  |         log.debug("querying for acquirable job...");
  |         String lockOwner = getName();
  |         JobSession jobSession = jbpmContext.getJobSession();
  | 
  | 

i am using the JtaDbPersistenceServiceFactory which has the isTransactionEnabled =false;


  |   <jbpm-context>
  |                <service name="persistence" factory="org.jbpm.persistence.jta.JtaDbPersistenceServiceFactory" />
  | 			
  | 

WHat is going on here? 

Why cant the java:comp/UserTransaction be found?

-lp

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246571#4246571

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246571



More information about the jboss-user mailing list