]
Scott Marlow updated AS7-3110:
------------------------------
Component/s: JPA / Hibernate
Forum Reference:
Enhance validation message when multiple persistence units are found
--------------------------------------------------------------------
Key: AS7-3110
URL:
https://issues.jboss.org/browse/AS7-3110
Project: Application Server 7
Issue Type: Enhancement
Components: JPA / Hibernate
Reporter: Markus Dahm
Priority: Minor
The current message is
Caused by: java.lang.IllegalArgumentException: JBAS011470: Persistence unitName was
not specified and there are 9 persistence unit definitions in application deployment
"test.ear". Either change the application to have only one persistence unit
definition or specify the unitName for each reference to a persistence unit.
Yet what is always helpful in search of such validation errors is the context.
In that case the offending class name would suffice, you should have this information at
hands since you're scanning the classes, right?
Given that information I'd have found the problem immediately.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: