Yogita Bartake [
http://community.jboss.org/people/YogitaBartake] created the discussion
"Re: jBPM 4.x on Glassfish"
To view the discussion, visit:
http://community.jboss.org/message/572448#572448
--------------------------------------------------------------
We are facing the below error on Glassfish V2 with JBPM 4.1.
java.lang.IllegalStateException: Operation not allowed.
at
com.sun.enterprise.distributedtx.UserTransactionImpl.checkUserTransactionMethodAccess(UserTransactionImpl.java:135)
at
com.sun.enterprise.distributedtx.UserTransactionImpl.getStatus(UserTransactionImpl.java:262)
at
org.jbpm.pvm.internal.tx.jta.JtaTransaction.getUserTransactionStatus(JtaTransaction.java:144)
at org.jbpm.pvm.internal.tx.jta.JtaRetryInterceptor.execute(JtaRetryInterceptor.java:43)
at
org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:46)
at
org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceByKey(ExecutionServiceImpl.java:66)
Hibernate configuration is as below.
<property name="hibernate.search.worker.execution">async</property>
<property
name="hibernate.search.worker.buffer_queue.max">5</property>
<property
name="hibernate.search.worker.thread_pool.size">5</property>
<property
name="hibernate.transaction.flush_before_completion">true</property>
<property
name="hibernate.transaction.auto_close_session">true</property>
<property
name="jta.UserTransaction">java:comp/UserTransaction</property>
<property
name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
<property
name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.SunONETransactionManagerLookup</property>
<property
name="hibernate.connection.provider_class">org.hibernate.connection.DatasourceConnectionProvider</property>
<property
name="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</property>
<property
name="hibernate.connection.url">jdbc:oracle:thin:@10.141.152.34:1521:XA</property>
<property name="hibernate.connection.username">****</property>
<property name="hibernate.connection.password">****</property>
<property name="hibernate.show_sql">true</property>
<property name="hibernate.format_sql">true</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<property name="current_session_context_class">thread</property>
<mapping resource="jbpm.repository.hbm.xml" />
<mapping resource="jbpm.execution.hbm.xml" />
<mapping resource="jbpm.history.hbm.xml" />
<mapping resource="jbpm.task.hbm.xml" />
<mapping resource="jbpm.identity.hbm.xml" />
We have tried adding jta.UserTransaction property in the jbpm.hibernate.cfg.xml file
without any luck. Please let us know if there is any solution to this.
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/572448#572448]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]