Return-Path: X-Original-To: apmail-geronimo-user-archive@www.apache.org Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 67DCE9E3A for ; Sat, 24 Mar 2012 09:42:20 +0000 (UTC) Received: (qmail 65334 invoked by uid 500); 24 Mar 2012 09:42:20 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 64834 invoked by uid 500); 24 Mar 2012 09:42:14 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 64778 invoked by uid 99); 24 Mar 2012 09:42:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Mar 2012 09:42:12 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of sim085@hotmail.com does not designate 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Mar 2012 09:42:06 +0000 Received: from ben.nabble.com ([192.168.236.152]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1SBNTl-0005Bk-De for user@geronimo.apache.org; Sat, 24 Mar 2012 02:41:45 -0700 Date: Sat, 24 Mar 2012 02:41:45 -0700 (PDT) From: sim085 To: user@geronimo.apache.org Message-ID: <1332582105405-3853534.post@n3.nabble.com> In-Reply-To: References: <1331859401579-3830574.post@n3.nabble.com> <1331996478193-3834663.post@n3.nabble.com> <1332516595708-3851927.post@n3.nabble.com> <1332543948159-3852898.post@n3.nabble.com> Subject: Re: Webservice example working on glassfish3 but not on geronimo-tomcat7-javaee6-3.0-beta-1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Ivan, sorry for the mistake in code, it is because I re-wrote the exampl= e rather then copy and paste it. I confirm endpointName is correct, ejb.IAskQuestionBean.=20 Here is the code: [code] @Stateless @WebService(serviceName=3D"AskQuestionService", name=3D"AskQuestion", =09endpointInterface=3D"ejb.IAskQuestionBean") public class AskQuestionBean implements IAskQuestionBean{ =09... } [/code] In geronimo.log I could not find anything else. However when I checked geronimo.out I found the following exception: [code] Problem encountered during annotation processing;=20 see stacktrace below for more information. com.sun.tools.ws.processor.modeler.ModelerException: modeler error: The @javax.jws.WebService.name element cannot be used in with @javax.jws.WebService.endpointInterface element.=20 =09at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.onError(WebServi= ceAP.java:244) =09at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.annotationE= rror(WebServiceVisitor.java:196) =09at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassD= eclaration(WebServiceVisitor.java:141) =09at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDecla= rationImpl.java:113) =09at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebSe= rviceAP.java:334) =09at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServi= ceAP.java:275) =09at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.proces= s(AnnotationProcessors.java:84) =09at com.sun.tools.apt.comp.Apt.main(Apt.java:480) =09at com.sun.tools.apt.main.AptJavaCompiler.compile(AptJavaCompiler.java:2= 70) =09at com.sun.tools.apt.main.Main.compile(Main.java:1127) =09at com.sun.tools.apt.main.Main.compile(Main.java:989) =09at com.sun.tools.apt.Main.processing(Main.java:113) =09at com.sun.tools.apt.Main.process(Main.java:103) =09at com.sun.tools.apt.Main.process(Main.java:85) =09at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:222) =09at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:126) =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) =09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:5= 7) =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp= l.java:43) =09at java.lang.reflect.Method.invoke(Method.java:601) =09at com.sun.tools.ws.Invoker.invoke(Invoker.java:135) =09at com.sun.tools.ws.WsGen.main(WsGen.java:57) error: compilation failed, errors should have been reported 2012-03-24 09:20:12,277 ERROR [EjbModuleBuilder] JAXWSEJBModuleBuilderExtension.addGBeans() failed: WSDL generation failed org.apache.geronimo.common.DeploymentException: WSDL generation failed =09at org.apache.geronimo.jaxws.sun.tools.WsdlGenerator.generateWsdl(WsdlGenerato= r.java:176) =09at org.apache.geronimo.jaxws.sun.tools.SunWsdlGenerator.generateWsdl(SunWsdlGe= nerator.java:34) =09at org.apache.geronimo.axis2.builder.Axis2Builder.initialize(Axis2Builder.java= :153) =09at org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.configureEJB(JAXWSSer= viceBuilder.java:378) =09at org.apache.geronimo.jaxws.ejb.builder.JAXWSEJBModuleBuilderExtension.addGBe= ans(JAXWSEJBModuleBuilderExtension.java:249) =09at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.doAddGBeans(EjbModu= leBuilder.java:1247) =09at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.addGBeans(EjbModule= Builder.java:1146) =09at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EAR= ConfigBuilder.java:763) =09at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:255) =09at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:140) =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) =09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:5= 7) =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp= l.java:43) =09at java.lang.reflect.Method.invoke(Method.java:601) =09at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(Reflection= MethodInvoker.java:34) =09at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java= :131) =09at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:8= 83) =09at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245) =09at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(= AbstractDeployCommand.java:116) =09at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(Distribut= eCommand.java:61) =09at java.lang.Thread.run(Thread.java:722) [/code] I guess =E2=80=9CThe @javax.jws.WebService.name element cannot be used in w= ith @javax.jws.WebService.endpointInterface element.=E2=80=9D says it all.=20 Checked @WebService api which seems to indicate that this statement is correct since endpointName element sets portType and bindings and name element sets portType (already set by endpointName element). Do not know therefore which is right or wrong =E2=80=A6 maybe both :) Ivan Xu wrote >=20 > There should be other error message in the log, could you check that ? > Also, I found that in the new codes, endpointInterface is configured with > ejb.AskQuestionBean, which is different with your previous codes. >=20 -- View this message in context: http://apache-geronimo.328035.n3.nabble.com/W= ebservice-example-working-on-glassfish3-but-not-on-geronimo-tomcat7-javaee6= -3-0-beta-1-tp3830574p3853534.html Sent from the Users mailing list archive at Nabble.com.