users@glassfish.java.net

Error Glassfish with EJB3 JPA and JSF

From: <glassfish_at_javadesktop.org>
Date: Wed, 27 Aug 2008 10:04:19 PDT

Hello to all
My English is not terrible but I am going to try to explain:
I am learning JSF and EJB3, JPA and I have the following error with Glassfish installed(settled) since Netbeans 6.1. I do not know how to resolve him(it) for 2 weeks. Here is the error.

[b]init:
deps-module-jar:
init:
deps-jar:
compile:
library-inclusion-in-archive:
dist:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
In-place deployment at J:\ProjetPGV\Source\Personne\Personne-war\build\web
Start registering the project's server resources
Finished registering server resources
moduleID=Personne-war
deployment started : 0%
Déploiement de l'application dans le domaine a échoué ; Erreur lors du chargement des descripteurs du déploiement pour le module [Personne-war] -- Cannot resolve reference Unresolved Ejb-Ref jsf.PersonneManagedBean/dao_at_jndi: @null_at_stateless.PersonneFacadeLocal_at_Session@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.GeneratedMethodAccessor40.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: 5 seconds)[/b]

This is my Managed Beans
[b]
 @EJB
         private PersonneFacadeLocal dao;
        public Collection<Personne> getPersonnes() throws NamingException {
        Collection<Personne> personnes = new ArrayList();
        Context ctx = new InitialContext();
        dao = (PersonneFacadeLocal) ctx.lookup("PersonneFacade");
        for (Personne pers : dao.findAll()){
            Personne personne = new Personne();
            personne.setIdPersonne(pers.getIdPersonne());
            personne.setNom(pers.getNom());
            personne.setPrenom(pers.getPrenom());
            personnes.add(personne);
        }
        return personnes;
    }[/b]
Help me please !!!
[Message sent by forum member 'webdevelopper' (webdevelopper)]

http://forums.java.net/jive/thread.jspa?messageID=295708