users@glassfish.java.net

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

From: <glassfish_at_javadesktop.org>
Date: Wed, 23 Jan 2008 08:41:21 PST

Hi,

I'm running SJSAS 9.0_01 and trying to deploy an EAR app that contains a web module with an EJB module, that implements a webservice, and I seem to be getting the same error message.
I've tried to deploy the app under the latest beta SJSAS (java_app_platform_sdk-5_03-beta) and also under the latest stable GlassFish (glassfish-installer-v2ur1-b09d-linux.jar), and it still doesn't work.

Does anyone have an idea what I might be doing wrong?

The entry in the domain logfile is below.

Thanks,
Kolos

[#|2008-01-23T16:23:39.952+0000|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=11;_ThreadName=Timer-2;_RequestID=bdf160d0-bb44-4b7d-b07c-a5227d40e992;|Exception occured in J2EEC Phase
com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [MyDemoApp] -- com.sun.enterprise.deployment.annotation.context.WebBundleContext cannot be cast to com.sun.enterprise.deployment.annotation.context.EjbContextat com.sun.enterprise.deployment.annotation.AnnotationInfo_at_bb0257
        at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:362)
        at com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:327)
        at com.sun.enterprise.deployment.backend.AppDeployer.explodeArchive(AppDeployer.java:332)
        at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:182)
        at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:129)
        at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:169)
        at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:263)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:281)
        at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:534)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:353)
        at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:336)
        at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:448)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
        at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77)
        at $Proxy1.invoke(Unknown Source)
        at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
        at com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymentService(AutoDeployer.java:413)
        at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:394)
        at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:253)
        at com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$AutoDeployTask.run(AutoDeployControllerImpl.java:358)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
Caused by: java.lang.IllegalStateException: com.sun.enterprise.deployment.annotation.context.WebBundleContext cannot be cast to com.sun.enterprise.deployment.annotation.context.EjbContextat com.sun.enterprise.deployment.annotation.AnnotationInfo_at_bb0257
        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.readModulesDescriptors(ApplicationArchivist.java:308)
        at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:316)
        ... 31 more
Caused by: com.sun.enterprise.deployment.annotation.context.WebBundleContext cannot be cast to com.sun.enterprise.deployment.annotation.context.EjbContextat
com.sun.enterprise.deployment.annotation.AnnotationInfo_at_bb0257
        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)
        ... 35 more
Caused by: java.lang.ClassCastException: com.sun.enterprise.deployment.annotation.context.WebBundleContext cannot be cast to com.sun.enterprise.deployment.annotation.context.EjbContext
        at com.sun.enterprise.deployment.annotation.handlers.WebServiceProviderHandler.processAnnotation(WebServiceProviderHandler.java:117)
        at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:324)
        ... 41 more
|#]
[Message sent by forum member 'kolos' (kolos)]

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