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

RSTVMA LDHYAGF do-not-reply at jboss.com
Thu Jun 28 09:11:41 EDT 2012


RSTVMA LDHYAGF [https://community.jboss.org/people/mab1990.amu] created the discussion

"jbpm No persistence provider for EntityManager named org.drools.task"

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

--------------------------------------------------------------
hello,

*jbpm No persistence provider for EntityManager named org.drools.task*

I'm new in jbpm i was  trying my first project jst to be fimiliar with the platform. I have this code in my main class:


        KnowledgeBase kBase= reaKnowledgeBase();

        EntityManagerFactory emf=Persistence.createEntityManagerFactory("org.drools.task");
        Environment env=KnowledgeBaseFactory.newEnvironment();
        env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf);

but when i try to run the class i got this error. I realy need help 

    javax.persistence.PersistenceException: No Persistence provider for EntityManager named org.drools.task
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:56)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)
    at example.ExapmleMainClass.main(ExapmleMainClass.java:50)
--------------------------------------------------------------

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

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/20120628/7e89a3ef/attachment-0001.html 


More information about the jboss-user mailing list