users@glassfish.java.net

Re: Glassfish v1/v2 incompatibility?

From: <glassfish_at_javadesktop.org>
Date: Wed, 13 Jun 2007 07:37:06 PDT

Hi,
i am using glassfish v2 build 28, and while trying to deploy an ear file i got this error:

[#|2007-06-13T16:54:05.100+0300|SEVERE|sun-appserver-ee9.1|javax.enterprise.system.tools.deployment|_ThreadID=17;_ThreadName=Thread-33;_RequestID=7f4c76bb-5a11-470b-b51f-b391aba37b78;|Exception occured in J2EEC Phase
com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [appress] -- com.sun.enterprise.deployment.annotation.context.WebBundleContextat com.sun.enterprise.deployment.annotation.AnnotationInfo_at_114cd80
        at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:364)
        at com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:345)
        at com.sun.enterprise.deployment.backend.AppDeployer.explodeArchive(AppDeployer.java:274)
        at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:188)
        at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:132)
        at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:171)
        at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:892)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:266)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:761)
        at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:174)
        at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:210)
Caused by: java.lang.IllegalStateException: com.sun.enterprise.deployment.annotation.context.WebBundleContextat com.sun.enterprise.deployment.annotation.AnnotationInfo_at_114cd80

[b]i tried again to deploy it via the admin console and got this error:[/b]

com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [appress] -- Invalid ejb jar [appressEJB.jar]: it contains zero ejb.
Note:
1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message driven bean.
2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.
        at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:364)
        at com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:345)
        at com.sun.enterprise.deployment.backend.AppDeployer.explodeArchive(AppDeployer.java:274)
        at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:188)
        at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:132)
        at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:171)
        at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:892)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:266)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:761)
        at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:174)
        at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:210)
Caused by: java.lang.IllegalArgumentException: Invalid ejb jar [appressEJB.jar]: it contains zero ejb.

1. my ejb jar contains one statless bean, which i expose as a web service, and 3 entities
2. i packaged the ear file with eclipse.
thanks.
[Message sent by forum member 'ftom2' (ftom2)]

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