users@glassfish.java.net

Re: Cannot resolve reference Unresolved Ejb-Ref

From: Sahoo <Sahoo_at_Sun.COM>
Date: Fri, 15 Feb 2008 18:50:14 +0530

That's because you have a typo in your LovelyStatelessBean class. The
code says
/_at_Stateless
public class LovelyStatelessBean
implements LovelyStateful
{...}
/
I think you want it to implement LovelyStateless, don't you?

Thanks,
Sahoo

glassfish_at_javadesktop.org wrote:
> Hi,
>
> I'm trying to make a simple EJB3 proof-of-concept application, but fail to deploy with the following error:
>
> com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [lovely] -- Cannot resolve reference Unresolved Ejb-Ref jeesandbox.lovely.web.LovelyServlet/stateless_at_jndi: @null_at_jeesandbox.lovely.api.LovelyStateless_at_Session@null
>
>
> My application is made up like this:
>
> An outer EAR, lovely.ear:
> /lib/lovely-api.jar
> /lovely-web.war
> /lovely-beans.jar
>
> lovely-api.jar contains the business interfaces of the beans:
> @Local LovelyStateless
>
> lovely-beans.jar is an EJB-JAR of bean implementations:
> @Stateless LovelyStatelessBean implements LovelyStateless
>
> lovely-web.war contains a servlet that makes uses of the bean though its business interface:
> @EJB LovelyStateless stateless;
>
>
> Of course this layout is bloated for this simple project, but isn't this separation generally the way to go?
>
> I've attached the entire project, running "ant ear" should build ./dist/lovely.ear. The sub-components of the EAR are located in ./dist/ too.
> [Message sent by forum member 'zta' (zta)]
>
> http://forums.java.net/jive/thread.jspa?messageID=259159
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>