users@glassfish.java.net

Re: Exception while deploying the app : Cannot resolve reference Remote ejb-ref

From: <hong.hz.zhang_at_oracle.com>
Date: Wed, 26 Oct 2011 11:47:27 -0400

Does your ejb jar have a ejb-jar.xml? If you packaged the ejb jar this
way, the ejb-jar.xml will not be processed as a deployment descriptor.

I am not sure about the issue with Eclipse packaging, but can you
manually package the application so the ejb jar is packaged as a module?

- Hong

On 10/26/2011 10:25 AM, forums_at_java.net wrote:
> I have two dynamic web applications App1.war and App2.war, which should
> access the same EJB-Application.
>
> The genarated ear has the following content:
>
> lib/ejb-app.jar
> META-INF/MANIFEST.MF
> META-INF/application.xml
> App1.war
> App2.war
>
> I get the above exception and I can not deploy the application! what is
> wrong?
>
> if I deploy the ejb-app as a module with either of the App1.war or
> App2.war,
> the related part of the application works. Of course, doing so I must
> define
> the Project-Reference within Eclipse! This works, having only one
> .war, but
> not having two!
>
> Please help
>
>
>
>
>
>
> --
>
> [Message sent by forum member 'szhb69']
>
> View Post: http://forums.java.net/node/857069
>
>