[jboss-dev-forums] [JBoss AS 7 Development] - Re: Ear which have multi persistence-unit deploy to jboss-as-7.1 error
Scott Marlow
do-not-reply at jboss.com
Tue Dec 20 07:20:01 EST 2011
Scott Marlow [http://community.jboss.org/people/smarlow] created the discussion
"Re: Ear which have multi persistence-unit deploy to jboss-as-7.1 error"
To view the discussion, visit: http://community.jboss.org/message/642439#642439
--------------------------------------------------------------
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.
>
I like that we are including the number of persistence unit definitions (nine in this case). Having the application name is also good. Perhaps some more context about where the reference to the persistence unit (without a name), would be helpful. Since I wrote the message, I understand completely what I meant. ;)
Do you have other suggetions to improve the message to be cleared? Perhaps you could post what it should be changed to.
Scott
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/642439#642439]
Start a new discussion in JBoss AS 7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20111220/c6f512b1/attachment.html
More information about the jboss-dev-forums
mailing list