i share persistence.xmlhere
yes i configure the persistence with JTA but i dont sure about correctness of
it !
i have some other files beside persistence.xml that maybe can help :
ormTask.xml
JBPMorm.xml
jboss-web.xml
Thanks
S.M.H.Jamali
________________________________
From: Mauricio Salatino <[email protected]>
To: S.M.H.Jamali <[email protected]>; Rules Users List
<[email protected]>
Sent: Wednesday, November 9, 2011 8:22 PM
Subject: Re: [rules-users] Human Task - ERROR :
JPAKnowledgeService.newStatefulKnowledgeSession ...
You will need to solve that problem. looks like a configuration problem, can
you share the persistence.xml file? did you configure persistence with JTA?
Cheers
2011/11/9 S.M.H.Jamali <[email protected]>
Hello all,
>
>
>I get an exception while last line of below method executed :
>
>
>
> public StatefulKnowledgeSession createSession() throws Exception {
>
> /*
> * Create the knowledgebase using the required bpmn and drl files
> */
> KnowledgeBase kbase = readKnowledgeBase("HumanTask.bpmn");
> EntityManagerFactory emf = Persistence.createEntityManagerFactory(
>"org.jbpm.persistence.jpa" );
> Environment env =
KnowledgeBaseFactory.newEnvironment();
> env.set( EnvironmentName.ENTITY_MANAGER_FACTORY, emf );
> env.set( EnvironmentName.TRANSACTION_MANAGER,
>TransactionManagerServices.getTransactionManager() );
> env.set( EnvironmentName.GLOBALS, new MapGlobalResolver() );
>
> Properties properties = new Properties();
> properties.put("drools.processInstanceManagerFactory",
>"org.jbpm.persistence.processinstance.JPAProcessInstanceManagerFactory");
> properties.put("drools.processSignalManagerFactory",
>"org.jbpm.persistence.processinstance.JPASignalManagerFactory");
> KnowledgeSessionConfiguration config =
KnowledgeBaseFactory.newKnowledgeSessionConfiguration(properties);
>
> return JPAKnowledgeService.newStatefulKnowledgeSession(kbase, config,
>env);
>
> }
>
>
>its stack-trace is :
>
>14:26:13,111 WARN [JtaTransactionManager] Participating in existing JTA
>transaction, but no JTA TransactionManager or
>TransactionSychronizationRegistry available:
>java.lang.NullPointerException
> at
>org.drools.persistence.jta.JtaTransactionManager.registerTransactionSynchronization(JtaTransactionManager.java:221)
> at
>org.drools.persistence.SingleSessionCommandService.registerRollbackSync(SingleSessionCommandService.java:333)
> at
>org.drools.persistence.SingleSessionCommandService.<init>(SingleSessionCommandService.java:123)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)...
>
>Can anyone help me to solve this problem ?
>Thanks in advance
>S.M.H.Jamali
>_______________________________________________
>rules-users mailing list
>[email protected]
>https://lists.jboss.org/mailman/listinfo/rules-users
>
>
--
- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jugargentina.org
- Co-Founder @ http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users