The deployment descriptors sun-ejb-jar.xml and ejb-jar.xml should be
defined with the appropriate resource-refs before the resource is looked
up. These descriptors are not needed in the case of a war based
application. Only web.xml and sun-web.xml would be used in this case.
Hence your application worked fine. Please read the application
deployment guide for GlassFish :
http://docs.sun.com/app/docs/doc/819-3660
glassfish_at_javadesktop.org wrote:
> They do.
>
> Actually everything works, when we deploy the WAR solely.
>
> Problem occurs when we put the very same WAR in an EAR.
> [Message sent by forum member 'janhelwich' (jan.helwich_at_gmx.de)]
>
> http://forums.java.net/jive/thread.jspa?messageID=380560
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>