users@glassfish.java.net

Sever Deployment Error - Netbeans 6.8 & Glassfish v3

From: <glassfish_at_javadesktop.org>
Date: Sat, 09 Jan 2010 03:27:59 PST

Hello!

This is urgent. I get this error the most time I deploy my project from Netbeans IDE 6.8 to Glassfish v3.
It doesn't make any difference if I deploy to an installation on Windows, oder on linux.
Sometimes it works if I redeploy it after a restart of the server. Without any reason, meaning without changing the code it sometimes reappears:

SCHWERWIEGEND: com.sun.enterprise.deployment.EjbSessionDescriptor cannot be cast to com.sun.enterprise.deployment.BundleDescriptor
SCHWERWIEGEND: Exception while deploying the app
java.lang.IllegalStateException: com.sun.enterprise.deployment.EjbSessionDescriptor cannot be cast to com.sun.enterprise.deployment.BundleDescriptorat org.glassfish.apf.AnnotationInfo_at_cba8e1
        at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:458)
        at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:420)
        at com.sun.enterprise.deployment.archivist.Archivist.readRestDeploymentDescriptors(Archivist.java:396)
        at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:373)
        at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:238)
        at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:247)
        at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:208)
        at com.sun.enterprise.deployment.archivist.ApplicationFactory.openArchive(ApplicationFactory.java:148)
        at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:155)
        at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:78)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:612)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:554)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:262)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
        at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
        at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
        at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
        at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
        at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
        at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
        at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
        at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
        at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
        at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
        at java.lang.Thread.run(Thread.java:619)
Caused by: com.sun.enterprise.deployment.EjbSessionDescriptor cannot be cast to com.sun.enterprise.deployment.BundleDescriptorat org.glassfish.apf.AnnotationInfo_at_cba8e1
        at org.glassfish.apf.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:360)
        at org.glassfish.apf.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:368)
        at org.glassfish.apf.impl.AnnotationProcessorImpl.processAnnotations(AnnotationProcessorImpl.java:282)
        at org.glassfish.apf.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:188)
        at org.glassfish.apf.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:129)
        at com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:581)
        at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:447)
        ... 39 more
Caused by: java.lang.ClassCastException: com.sun.enterprise.deployment.EjbSessionDescriptor cannot be cast to com.sun.enterprise.deployment.BundleDescriptor
        at com.sun.enterprise.deployment.annotation.context.ResourceContainerContextImpl.addManagedBean(ResourceContainerContextImpl.java:453)
        at com.sun.enterprise.deployment.annotation.handlers.ManagedBeanHandler.processAnnotation(ManagedBeanHandler.java:173)
        at org.glassfish.apf.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:337)
        ... 45 more
[Message sent by forum member 'levinivel' (christoph.gleichweit_at_student.tugraz.at)]

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