2 Replies Latest reply on Apr 30, 2006 6:24 PM by arthur83

    Persistence.createEntityManagerFactory problem

    arthur83

      Hello everybody,

      I need an application-managed EntityManagerFactory, because I have to control the transactions manually.

      So I create the EntityManagerFactory via

      EntityManagerFactory emf = Persistence.createEntityManagerFactory("wfmsem");
      


      but I get the following exception:
      javax.persistence.PersistenceException: No Persistence provider for EntityManager named wfmsem
       at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:41)
      


      my persistence.xml looks like:
      <persistence>
       <persistence-unit name="wfmsem" transaction-type="RESOURCE_LOCAL">
      
       </persistence-unit>
      </persistence>
      



      What is wrong? I use jboss version 4.0.3SP1


      Thans in advance!

      Regards,
      Arthur