1 Reply Latest reply on Mar 5, 2015 2:03 AM by swiderski.maciej

    jbpm-ejb-impl - multiple persistence.xml

    jimmy001

      Hello,

       

      after adding a second persistence.xml to my application I received the following error:

       

      Caused by: java.lang.IllegalArgumentException: JBAS011470: Persistence unitName was not specified and there are 2 persistence unit definitions in application deployment...

       

      After removing the dependency to jbpm-ejb-impl the error was gone.

      Taking a look at the source code, for example:

       

      @PersistenceUnit(name="org.jbpm.domain")
          @Override
          public void setEmf(EntityManagerFactory emf) {
      

       

      I am starting to wonder if that should not be

       

      @PersistenceUnit(unitName="org.jbpm.domain")
          @Override
          public void setEmf(EntityManagerFactory emf) {
      

       

       

      Kind regards