We have a "normal" every day EAR file, but this one has a SessionBean with a WebService.
It seems that we intermittently get a deployment error. Inevitably, we end up restarting glassfish, and most of the time, but not always, the problem goes away. We rebuild the EAR from scratch, etc.
Not a lot of rhyme or reason for it.
When we get this error, we're not even making dramatic changes to the application (like adding or removing WS methods or anything), rather it's a simple logic change to the SessionBean.
We're deploying with Netbeans 5.5.1 to Glassfish (Sun Java System Application Server 9.1 (build b58g-fcs) ... )
Below is the exception that we get.
Starting Sun Java System Application Server 9.1 (build b58g-fcs) ...
ADM1064:The upload file at [C:\Documents and Settings\willh\Local Settings\Temp\s1astempdomain1server-541097766\TestApp.ear] exists and will be overwritten.
ADM1006:Uploading the file to:[C:\Documents and Settings\willh\Local Settings\Temp\s1astempdomain1server-541097766\TestApp.ear]
<ejb-class> value [pkg.TestAppSessionBean] in ejb-jar.xml for ejb-name [TestAppSessionBean] does not match classname[com.webreach.TestApp.ejb.TestAppSessionBean] for corresponding component-defining annotation.
symbol: TYPE location: class com.webreach.TestApp.ejb.TestAppSessionBean
com.sun.enterprise.deployment.annotation.context.EjbBundleContext
Exception occured in J2EEC Phasejava.lang.IllegalStateException: com.sun.enterprise.deployment.annotation.context.EjbBundleContextat com.sun.enterprise.deployment.annotation.AnnotationInfo_at_157524c
com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [TestApp] -- com.sun.enterprise.deployment.annotation.context.EjbBundleContextat com.sun.enterprise.deployment.annotation.AnnotationInfo_at_157524c
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.EjbBundleContextat com.sun.enterprise.deployment.annotation.AnnotationInfo_at_157524c
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.EjbBundleContextat com.sun.enterprise.deployment.annotation.AnnotationInfo_at_157524c
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:360)
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
at com.sun.enterprise.deployment.annotation.handlers.WebServiceHandler.processAnnotation(WebServiceHandler.java:168)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:337)
... 21 more
[Message sent by forum member 'whartung' (whartung)]
http://forums.java.net/jive/thread.jspa?messageID=261537