users@glassfish.java.net

Re: Error deploying EJB web service

From: Robert K. Carroll <rcarroll_at_kanbay.com>
Date: Wed, 11 Apr 2007 09:38:39 -0700 (PDT)

I seem to be having the same problem, and was wondering if you found a
resolution. My problem is that I have an EJB web service that uses another
EJB. There is a method on the ejb that accepts a base object. When I pass
the base object it works fine. But when I pass a derived object to the
method I get the same message that you are getting. Wonder what it could
be.

Thanks,
Rob


Ryan de Laplante-2 wrote:
>
> The web service uses a deployed JCA connector. When I added the
> connector and several of the connector's dependancies to my EJB Module
> project (in NetBeans 5.5) this error went away, but now I get a
> NoClassDefFound when deploying the EJB. The EJB complains that it can't
> find classes inside of the JCA connector.
>
> With a custom JCA connector, do I have to deploy it AND bundle it inside
> of my EJB jar so that my EJB project can use the classes? When I do
> that I still have these problems. I've even tried putting all the jars
> in domain1\lib\ with no success.
>
> When this was a web project, I didn't have these problems.
>
>
> Exception occured in J2EEC Phase
> java.lang.NoClassDefFoundError:
> com/company/product/ra/cci/InteractionTimedOutException
> at java.lang.Class.getDeclaredMethods0(Native Method)
> at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
> at java.lang.Class.privateGetPublicMethods(Class.java:2519)
> at java.lang.Class.getMethods(Class.java:1406)
> at
> com.sun.xml.ws.modeler.RuntimeModeler.determineWebMethodUse(RuntimeModeler.java:290)
> at
> com.sun.xml.ws.modeler.RuntimeModeler.processClass(RuntimeModeler.java:306)
> at
> com.sun.xml.ws.modeler.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:251)
> at
> com.sun.tools.ws.wscompile.CompileTool.buildModel(CompileTool.java:633)
> 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)
>
>
> Thanks,
> Ryan
>
> Ryan de Laplante wrote:
>> 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
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>

-- 
View this message in context: http://www.nabble.com/Error-deploying-EJB-web-service-tf3522458.html#a9943308
Sent from the java.net - glassfish users mailing list archive at Nabble.com.