JBoss Community

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

created by RSTVMA LDHYAGF in jBPM - View the full discussion

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

Start a new discussion in jBPM at Community