users@glassfish.java.net

Error deploying EJB web service

From: Ryan de Laplante <ryan_at_ijws.com>
Date: Tue, 03 Apr 2007 17:19:12 -0400

Hi,

I have a web service that was in a web project, and I've decided to put
it into an EJB Module project instead. I've created a new service with
the same name and package, then overwrite the generated class with the
one from my web project. I made sure to add @Stateless before the class
name, and to resolve all dependencies. When I deploy the project, I
get the following exception:

ADM1006:Uploading the file to:[C:\Documents and Settings\ryan\Local
Settings\Temp\s1astempdomain1server-438267565\CicoKioskService.jar]
Problem encountered during annotation processing;
see stacktrace below for more information.
java.lang.NullPointerException
        at
com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.isSubtype(WebServiceAP.java:418)
        at
com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.isRemote(WebServiceAP.java:413)
        at
com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.isLegalType(WebServiceVisitor.java:817)
        at
com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.isLegalMethod(WebServiceVisitor.java:648)
        at
com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.methodsAreLegal(WebServiceVisitor.java:624)
        at
com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.isLegalImplementation(WebServiceVisitor.java:542)
        at
com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.shouldProcessWebService(WebServiceVisitor.java:352)
        at
com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:145)
        at
com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:95)
        at
com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:347)
        at
com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:232)
        at
com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
        at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
        at
com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
        at com.sun.tools.apt.main.Main.compile(Main.java:1075)
        at com.sun.tools.apt.main.Main.compile(Main.java:938)
        at com.sun.tools.apt.Main.processing(Main.java:95)
        at com.sun.tools.apt.Main.process(Main.java:85)
        at com.sun.tools.apt.Main.process(Main.java:67)
        at
com.sun.tools.ws.wscompile.CompileTool.buildModel(CompileTool.java:605)
        at com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:538)
        at com.sun.tools.ws.util.ToolBase.run(ToolBase.java:56)
        at
com.sun.tools.ws.util.WSToolsObjectFactoryImpl.wsgen(WSToolsObjectFactoryImpl.java:44)
        at com.sun.enterprise.webservice.WsUtil.runWsGen(WsUtil.java:1820)
        at com.sun.enterprise.webservice.WsUtil.genWSInfo(WsUtil.java:2089)
        at
com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(ModuleDeployer.java:396)
        at
com.sun.enterprise.deployment.backend.EjbModuleDeployer.deploy(EjbModuleDeployer.java:138)
        at
com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:160)
        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:266)
        at
com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:739)
        at
com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:174)
        at
com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:210)
error: compilation failed, errors should have been reported
wsgen successful

Any idea what the problem might be? The exact same code worked fine in
a web project. I'm using Sun App Server 9.0 on XP Pro with NetBeans
5.5/Ent Pack.


Thanks,
Ryan