miloud haimoune [http://community.jboss.org/people/milhaim] created the discussion
"jbpm5.2.final and Jboss 5.1 issue when creating the ksession" To view the discussion, visit: http://community.jboss.org/message/643520#643520 -------------------------------------------------------------- Hi all, I was using jbpm5.1.final on jboss 5.1 server, after migrating to jbpm5.2.final I had this issue : ] Participating in existing JTA transaction, but no JTA TransactionManager or TransactionSychronizationRegistry available: javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.syncwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.syncwhenaborted] Can't register synchronization because the transaction is in aborted state at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.registerSynchronizationImple(TransactionImple.java:476) at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.registerSynchronization(TransactionImple.java:451) at org.drools.persistence.jta.JtaTransactionManager.registerTransactionSynchronization(JtaTransactionManager.java:229) at org.drools.persistence.SingleSessionCommandService.registerRollbackSync(SingleSessionCommandService.java:388) at org.drools.persistence.SingleSessionCommandService.<init>(SingleSessionCommandService.java:149) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommandService(KnowledgeStoreServiceImpl.java:129) ....... I'm using a persisted session EntityManagerFactory emf = Persistence.createEntityManagerFactory("org.jbpm.persistence.jpa"); Environment env = KnowledgeBaseFactory.newEnvironment(); env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf); Properties sessionconfigproperties = new Properties(); sessionconfigproperties.put("drools.processInstanceManagerFactory", "org.jbpm.persistence.processinstance.JPAProcessInstanceManagerFactory"); sessionconfigproperties.put("drools.processSignalManagerFactory", "org.jbpm.persistence.processinstance.JPASignalManagerFactory"); KnowledgeSessionConfiguration config = KnowledgeBaseFactory.newKnowledgeSessionConfiguration(sessionconfigproperties); ksession = JPAKnowledgeService.newStatefulKnowledgeSession(kbase, config, env); The same code was running correctly with jbpm 5.1 any suggestion ? many thanks. -------------------------------------------------------------- Reply to this message by going to Community [http://community.jboss.org/message/643520#643520] Start a new discussion in jBPM at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
