users@glassfish.java.net

Re: Error Deploying Web Module That References EJB Module With Web Service

From: Vijay Ramachandran <Vijay.Ramachandran_at_Sun.COM>
Date: Mon, 05 Mar 2007 19:15:31 -0800

A bug for the same issue was fixed and closed last Friday. Which GF
build are you using ? Can you try with the latest GFv2 build ?

Thanks

Vijay

glassfish_at_javadesktop.org wrote:
> [b]Hi,
>
> When i deploy a Web Module that references my EJB Module i get the following error:[/b]
>
> Exception occured in J2EEC Phase
> com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [JUnitEE-TestRunner] -- com.sun.enterprise.deployment.annotation.context.WebBundleContextat com.sun.enterprise.deployment.annotation.AnnotationInfo_at_8d7ddd
> at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:364)
> at com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(ModuleDeployer.java:405)
> at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:144)
> at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:163)
> at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:174)
> 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_8d7ddd
> at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:350)
> at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:305)
> at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:200)
> at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:750)
> at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:731)
> at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:329)
> ... 10 more
> Caused by: com.sun.enterprise.deployment.annotation.context.WebBundleContextat com.sun.enterprise.deployment.annotation.AnnotationInfo_at_8d7ddd
> at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:347)
> at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:355)
> at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.processAnnotations(AnnotationProcessorImpl.java:269)
> at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:175)
> at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:116)
> at com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:432)
> at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:333)
> ... 15 more
> Caused by: java.lang.ClassCastException: com.sun.enterprise.deployment.annotation.context.WebBundleContext
> at com.sun.enterprise.deployment.annotation.handlers.WebServiceHandler.processAnnotation(WebServiceHandler.java:154)
> at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:324)
> ... 21 more
>
>
>
> [b]The Web Service that causes problem is shown below, if i remove this web service from the project i deploys correctly.[/b]
>
> @Stateless
> @WebService
> public class NewWebServiceBean {
>
> @EJB(beanInterface=com.idalt.server.management.ManagementFacadeRemote.class, name="ejb/ManagementFacadeBean")
> private ManagementFacadeRemote managementFacadeBean;
>
> @WebMethod
> @RolesAllowed(value={"Test"})
> public CustomerBean createCustomer(@WebParam(name = "forename") String forename, @WebParam(name = "surname") String surname) {
> Long id = managementFacadeBean.createCustomer(forename, surname);
>
> return managementFacadeBean.findCustomer(id);
>
> [b]Does anyone know how i can solve this problem?
>
> thanks,
> Edward[/b]
> [Message sent by forum member 'edward_d' (edward_d)]
>
> http://forums.java.net/jive/thread.jspa?messageID=206357
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>