users@glassfish.java.net

NetBeans and GlassFish deploy error

From: Ronaldo Rigoni ... <rrigoni_at_gmail.com>
Date: Thu, 16 Jul 2009 10:29:51 -0300

Hi all,
I am try to deploy a application in GlassFish and NetBeans in a new EAR project.
And i recieve a error.
I have 13 EJBs with @Remote interfaces and 21 with @Local, because
Application server responses with a EJB don't have a Remote interface.

Ronaldo.

Exception occured in J2EEC Phasejava.lang.RuntimeException: Trying to
set an ejb-ref on an EJB, while the EJB does not define remote
interfaces
com.sun.enterprise.deployment.backend.IASDeploymentException: Error
loading deployment descriptors for module [portaldoprofessor] --
Trying to set an ejb-ref on an EJB, while the EJB does not define
remote interfaces
        at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:406)
        at com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:359)
        at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:226)
        at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
        at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
        at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
        at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
        at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
Caused by: java.lang.RuntimeException: Trying to set an ejb-ref on an
EJB, while the EJB does not define remote interfaces
        at com.sun.enterprise.deployment.EjbReferenceDescriptor.setEjbDescriptor(EjbReferenceDescriptor.java:167)
        at com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:335)
        at com.sun.enterprise.deployment.WebBundleDescriptor.visit(WebBundleDescriptor.java:1415)
        at com.sun.enterprise.deployment.Application.visit(Application.java:1832)
        at com.sun.enterprise.deployment.archivist.ApplicationArchivist.validate(ApplicationArchivist.java:520)
        at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:840)
        at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:794)
        at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:365)
        ... 10 more


-- 
[]'s,
Ronaldo Rigoni
http://www.ronaldorigoni.com.br
Desenvolvedor JEE
Ministério da Educação -  CESPE