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
yes, that should be unitName, do you mind creating jira for this and specify what class is affected?
Thanks