[jboss-user] [jBPM] - No Persistence provider for EntityManager named org.jbpm.task

Laura delli Paoli do-not-reply at jboss.com
Thu Dec 27 10:03:49 EST 2012


Laura delli Paoli [https://community.jboss.org/people/lauradp] created the discussion

"No Persistence provider for EntityManager named org.jbpm.task"

To view the discussion, visit: https://community.jboss.org/message/785089#785089

--------------------------------------------------------------
Hello!

I'm trying to make my process data persistent and when I run

| EntityManagerFactory emf = Persistence.createEntityManagerFactory("org.jbpm.task", properties); | 
 | 
 |
I get this error:
*No Persistence provider for EntityManager named org.jbpm.task*
*I'm starting my process in this way*


| EntityManagerFactory emf = Persistence.createEntityManagerFactory("org.jbpm.task", properties); | 
 | 
 |
EntityManagerFactory emf = Persistence.createEntityManagerFactory("org.jbpm.task", properties);
KnowledgeSessionConfiguration config = KnowledgeBaseFactory.newKnowledgeSessionConfiguration(properties);
Environment env = KnowledgeBaseFactory.newEnvironment();
env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf);
env.set(EnvironmentName.GLOBALS, new MapGlobalResolver());
StatefulKnowledgeSession ksession = JPAKnowledgeService.newStatefulKnowledgeSession(kbase, null, env);
ksession.startProcess("my_process", params);

See my persistence.xml attached.

Can anyone help me??
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/785089#785089]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121227/e8265c8f/attachment.html 


More information about the jboss-user mailing list