users@glassfish.java.net

Cannot resolve reference Unresolved Ejb-Ref

From: <glassfish_at_javadesktop.org>
Date: Fri, 15 Feb 2008 02:54:37 PST

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