0 Replies Latest reply on Aug 10, 2011 11:55 AM by elico.a

    jboss6 does not find my persistence-units

    elico.a Newbie



      I am trying to upgrade my application from JBoss 4.2.2 to JBoss  (Final release).


      When I start the server I get errors that a stateless EJB I am using can't load due to unknown persistence context.


      In my code I am doing the following:


      @PersistenceContext(unitName = "MyAppDataBase")

      private EntityManager entityManager;


      But MyAppDataBase can't be found.



      I am using the persistence xml which is located in the META-INF directory of the EJB JAR file.

      It is important to say that inside the persistence.xml I am using 2 different persistence-unit.


      Your help will be highly appreciated.


      Best Regards,