Hi Ivan, first of all thank you for making things more clear. I changed the @WebService annotation on AskQuestionBean to include name="AskQuestion" as follows:
[code] @Stateless @WebService(serviceName="AskQuestionService", name="AskQuestion", endpointInterface="ejb.AskQuestionBean") public class AskQuestionBean implements IAskQuestionBean{ … } [/code] This works fine on GlassFish3 with the address changed to /AskQuestionServicve/AskQuestion. However on Geronimo3 I get the following exception in geronimo.log when I deploy the ear file: [code] 2012-03-23 23:47:49,140 INFO [OpenEJB] Auto-deploying ejb AskQuestionBean: EjbDeployment(deployment-id=sayhello-ejb-1.0-SNAPSHOT.jar/AskQuestionBean) 2012-03-23 23:47:49,141 INFO [config] Enterprise application "C:\geronimo-tomcat7-javaee6-3.0-beta-1\bin\default\sayhello-ear-1.0-SNAPSHOT\1332542868048\car" loaded. 2012-03-23 23:47:50,598 WARN [AdminObjectRefBuilder] Failed to build reference to resource env reference [java:comp/BeanManager, java:comp/Validator, java:comp/ValidatorFactory] defined in plan file. The corresponding entry in Geronimo deployment descriptor is missing. 2012-03-23 23:47:50,598 WARN [AdminObjectRefBuilder] Failed to build reference to resource env reference [java:comp/BeanManager, java:comp/Validator, java:comp/ValidatorFactory] defined in plan file. The corresponding entry in Geronimo deployment descriptor is missing. 2012-03-23 23:47:50,600 INFO [JAXWSServiceBuilder] Configuring EJB JAX-WS Web Service: AskQuestionBean at /AskQuestionService/AskQuestionRemote 2012-03-23 23:47:52,624 ERROR [EjbModuleBuilder] JAXWSEJBModuleBuilderExtension.addGBeans() failed: WSDL generation failed org.apache.geronimo.common.DeploymentException: WSDL generation failed at org.apache.geronimo.jaxws.sun.tools.WsdlGenerator.generateWsdl(WsdlGenerator.java:176) at org.apache.geronimo.jaxws.sun.tools.SunWsdlGenerator.generateWsdl(SunWsdlGenerator.java:34) at org.apache.geronimo.axis2.builder.Axis2Builder.initialize(Axis2Builder.java:153) at org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.configureEJB(JAXWSServiceBuilder.java:378) at org.apache.geronimo.jaxws.ejb.builder.JAXWSEJBModuleBuilderExtension.addGBeans(JAXWSEJBModuleBuilderExtension.java:249) at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.doAddGBeans(EjbModuleBuilder.java:1247) at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.addGBeans(EjbModuleBuilder.java:1146) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:763) at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:255) at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:140) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:131) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:883) at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245) at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116) at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61) at java.lang.Thread.run(Thread.java:722) [/code] I also downloaded JBoss7 and @WebService "name" also worked fine (although unlike GlassFish3 and Geronimo3 final address includes jar file name as well). -- View this message in context: http://apache-geronimo.328035.n3.nabble.com/Webservice-example-working-on-glassfish3-but-not-on-geronimo-tomcat7-javaee6-3-0-beta-1-tp3830574p3852898.html Sent from the Users mailing list archive at Nabble.com.