email exhange with Gerald:
Issue Tracker opened:
https://glassfish.dev.java.net/issues/show_bug.cgi?id=3883
Thanks for catching this bug!
Jane
Gerald Holl wrote:
> Jane Young wrote:
>
>> Hi Gerald,
>
>
>
> Hi Jane,
>
>> Thanks for the quick response.
>> The issue is that sun-appserv-update task assumes that entities.jar is in the top level of widok.ear but it's in lib/entities.jar. If you move entities.jar from lib directory to the parent directory then it should work. This is a bug in sun-appserv-update task.
>
>
>
> I can't put the entities.jar in the root directory of the .ear file because my web-app needs to access the persistence unit:
>
> See https://glassfish.dev.java.net/javaee5/persistence/persistence_faq.html#9
> for more details.
> See section A. XML and Packaging
> Q: I have an ear file which has an ejb-jar file and a war file. The ejb-jar defines a persistence unit. Can my web module use that persistence unit?
>
>> I'll open a bug for this.
>
>
>
> Thank you very much, please send me the link to the issue.
>
> Thanks for your help,
> Gerald
[Message sent by forum member 'janey' (janey)]
http://forums.java.net/jive/thread.jspa?messageID=247982