Hello everyone!!!

I've been following a basic example using ejb3 and jsf (
http://luxlog.wordpress.com/2007/12/15/basic-example-web-app-with-glassfish-netbeans-60-jsf-and-ejb3/)

But at the moment of @EJB injection in the JSF Managed Bean and then making
the deploy displays this message in the Glassfish log

Glassfish log

Cannot resolve reference Unresolved Ejb-Ref
org.app.managed.user.UserManagedBean/businessb...@jndi:
@n...@org.app.business.businesslocal@sess...@null
Exception occured in J2EEC Phasejava.lang.RuntimeException: Cannot resolve
reference Unresolved Ejb-Ref
org.app.managed.user.UserManagedBean/businessb...@jndi:
@n...@org.app.business.businesslocal@sess...@null
com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading
deployment descriptors for module [EJB3_JSF-war] -- Cannot resolve reference
Unresolved Ejb-Ref org.app.managed.user.UserManagedBean/businessb...@jndi:
@n...@org.app.business.businesslocal@sess...@null
        at
com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:390)
        at
com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(ModuleDeployer.java:423)
        at
com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:157)
        at
com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:179)
        at
com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:191)
        at
com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
        at
com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
        at
com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279)
        at
com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788)
        at
com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
        at
com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223)
Caused by: java.lang.RuntimeException: Cannot resolve reference Unresolved
Ejb-Ref org.app.managed.user.UserManagedBean/businessb...@jndi:
@n...@org.app.business.businesslocal@sess...@null
        at
com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:430)
        at
com.sun.enterprise.deployment.WebBundleDescriptor.visit(WebBundleDescriptor.java:1406)
        at
com.sun.enterprise.deployment.archivist.WebArchivist.validate(WebArchivist.java:188)
        at
com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:790)
        at
com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:744)
        at
com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:349)
        ... 10 more
------

Deploying application in domain failed; Error loading deployment descriptors
for module [EJB3_JSF-war] -- Cannot resolve reference Unresolved Ejb-Ref
org.app.managed.user.UserManagedBean/businessb...@jndi:
@n...@org.app.business.businesslocal@sess...@null
Deployment error:
The module has not been deployed.
See the server log for details.
        at
org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:166)
        at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:104)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
        at
org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277)
        at
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460)
        at
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Caused by: The module has not been deployed.
        at
org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:160)
        ... 16 more
BUILD FAILED (total time: 0 seconds)

What am I doing wrong? What's missing?

Thank you so much

-- 
Julian Osorio Amaya
IngenierĂ­a de Sistemas.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to