users@glassfish.java.net

Problem with deploying EAR (that contains .jar with @Stateless/@WebServices

From: <glassfish_at_javadesktop.org>
Date: Fri, 26 Sep 2008 04:07:55 PDT

Hi
I try to deploy EAR that contains .jar with SLSB and WebServices implemented by some of my SLSB. I get exception:

[#|2008-09-26T12:22:57.031+0200|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=28;_ThreadName=Thread-1537;_RequestID=d570f82e-3526-45f2-bd2e-1cb9d4bb3f3c;|com.sun.enterprise.deployment.annotation.context.EjbBundleContext cannot be cast to com.sun.enterprise.deployment.annotation.context.EjbContext|#]

[#|2008-09-26T12:22:59.343+0200|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=28;_ThreadName=Thread-1537;_RequestID=d570f82e-3526-45f2-bd2e-1cb9d4bb3f3c;|Exception occured in J2EEC Phasejava.lang.IllegalStateException: com.sun.enterprise.deployment.annotation.context.EjbBundleContext cannot be cast to com.sun.enterprise.deployment.annotation.context.EjbContextat com.sun.enterprise.deployment.annotation.AnnotationInfo_at_cc9a39
com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [productip-core-1.3.2] -- com.sun.enterprise.deployment.annotation.context.EjbBundleContext cannot be cast to com.sun.enterprise.deployment.annotation.context.EjbContextat com.sun.enterprise.deployment.annotation.AnnotationInfo_at_cc9a39
        at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:390)
        at com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:358)
        at com.sun.enterprise.deployment.backend.AppDeployer.explodeArchive(AppDeployer.java:294)
        at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:207)
        at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
        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.IllegalStateException: com.sun.enterprise.deployment.annotation.context.EjbBundleContext cannot be cast to com.sun.enterprise.deployment.annotation.context.EjbContextat com.sun.enterprise.deployment.annotation.AnnotationInfo_at_cc9a39
        at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:363)
        at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:318)
        at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:213)
        at com.sun.enterprise.deployment.archivist.ApplicationArchivist.readModulesDescriptors(ApplicationArchivist.java:321)
        at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:338)
        ... 11 more
Caused by: com.sun.enterprise.deployment.annotation.context.EjbBundleContext cannot be cast to com.sun.enterprise.deployment.annotation.context.EjbContextat com.sun.enterprise.deployment.annotation.AnnotationInfo_at_cc9a39
        at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:360)
        at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:327)
        at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:368)
        at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.processAnnotations(AnnotationProcessorImpl.java:282)
        at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:188)
        at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:129)
        at com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:445)
        at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:346)
        ... 15 more
Caused by: java.lang.ClassCastException: com.sun.enterprise.deployment.annotation.context.EjbBundleContext cannot be cast to com.sun.enterprise.deployment.annotation.context.EjbContext
        at com.sun.enterprise.deployment.annotation.handlers.WebServiceHandler.processAnnotation(WebServiceHandler.java:168)
        at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:337)
        ... 22 more
|#]

What's wrong with my app ?

thanks
Beniamin
[Message sent by forum member 'beniamin' (beniamin)]

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