Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 152246

Summary: WTP, Web Services not working in any scenario ..
Product: [WebTools] WTP Webservices Reporter: Ravi Kumar Sangubotla <ravi.sangubotla>
Component: wst.wsAssignee: wst.ws <wst.ws-inbox>
Status: CLOSED DUPLICATE QA Contact: Chris Brealey <cbrealey>
Severity: critical    
Priority: P3 CC: ravi.sangubotla
Version: 1.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Ravi Kumar Sangubotla CLA 2006-07-29 04:03:13 EDT
1.When I tried to create a web service from the Wizard  I got :
IWAB0489E Error when deploying Web service to Axis runtime
  axis-admin failed with  {http://schemas.xmlsoap.org/soap/envelope/}Server.userException java.net.ConnectException: Connection refused: connect

2. I copied and modified the server-config.wsdd mentioned in Bug : 119964 according to my web service declarations then I got and error. 
Back in the JBoss Console : 
This I got when manually provided server-config.wsdd mentioned in 
13:23:41,843 FATAL [InternalException] Exception:
org.apache.axis.ConfigurationException: org.apache.axis.deployment.wsdd.WSDDException: Invalid WSDD element 'deployment' (wanted 'deployment')
org.apache.axis.deployment.wsdd.WSDDException: Invalid WSDD element 'deployment' (wanted 'deployment')
	at org.apache.axis.deployment.wsdd.WSDDElement.validateCandidateElement(WSDDElement.java:74)
	at org.apache.axis.deployment.wsdd.WSDDElement.<init>(WSDDElement.java:54)
	at org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment.java:172)
	at org.apache.axis.deployment.wsdd.WSDDDocument.setDocument(WSDDDocument.java:139)
	at org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.java:65)
	at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
	at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
	at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
	at org.apache.axis.server.AxisServer.<init>(AxisServer.java:88)
	at org.apache.axis.server.DefaultAxisServerFactory.createServer(DefaultAxisServerFactory.java:109)
	at org.apache.axis.server.DefaultAxisServerFactory.getServer(DefaultAxisServerFactory.java:73)
	at org.apache.axis.server.AxisServer.getServer(AxisServer.java:73)
	at org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:185)
	at org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:396)
	at org.apache.axis.transport.http.AxisServletBase.init(AxisServletBase.java:112)
	at javax.servlet.GenericServlet.init(GenericServlet.java:211)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3857)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4118)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
	at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
	at org.apache.catalina.core.StandardContext.init(StandardContext.java:5005)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
	at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
	at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:280)
	at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:88)
	at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:357)
	at org.jboss.web.WebModule.startModule(WebModule.java:68)
	at org.jboss.web.WebModule.startService(WebModule.java:46)
	at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
	at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
	at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
	at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
	at $Proxy0.start(Unknown Source)
	at org.jboss.system.ServiceController.start(ServiceController.java:428)
	at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
	at $Proxy33.start(Unknown Source)
	at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:400)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
	at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
	at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80)
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
	at $Proxy34.start(Unknown Source)
	at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
	at org.jboss.deployment.MainDeployer.start(MainDeployer.java:979)
	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
	at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
	at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
	at $Proxy10.deploy(Unknown Source)
	at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
	at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
	at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
	at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:265)
	at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
	at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
	at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
	at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
	at $Proxy0.start(Unknown Source)
	at org.jboss.system.ServiceController.start(ServiceController.java:428)
	at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
	at $Proxy4.start(Unknown Source)
	at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
	at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
	at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
	at $Proxy5.deploy(Unknown Source)
	at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
	at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
	at org.jboss.Main.boot(Main.java:187)
	at org.jboss.Main$1.run(Main.java:438)
	at java.lang.Thread.run(Thread.java:595)

2. Why does it create an .EAR project when I dont want to have the webservice.war wrapped into an .EAR ? 
Is it needed to have an .WAR wrapped inside an .EAR for web services ?
Comment 1 Chris Brealey CLA 2006-08-01 14:10:27 EDT
Ravi,

1. Similarly to bug 152244, this is another manifestation of issues in deploying the Axis servlets (including the admin servlet) to JBoss. I'm resolving this also as a duplicate of bug 140994 - not to make your bug disappear, but to track THE JBoss / Axis problem in one place.

2. First, if possible, would you please attach your server-config.wsdd file to this bug so I can look at it? Axis itself is complaining that it cannot parse the wsdd file, although the error messages don't make a whole lot of sense (eg. "Invalid WSDD element 'deployment' (wanted 'deployment')"). Second, try deploying your Web project containing your Axis Web service to Tomcat, which will help determine whether Axis' apparent inability to load server-config.wsdd is a problem in the wsdd file and/or Axis vs. something related to the target server.

3. The Web service tools create EARs automagically if the server adapter (JBoss in this case, though we're in the same boat with Geronimo) plugged into the Server Tools framework specifies that it "supports EARs". The problem is we don't have a way, via Server Tools, to ask if "supports" = "requires". For safety's sake, we assume it does. See bug 111341 and bug 119165 for more background on exactly this behaviour.

*** This bug has been marked as a duplicate of 140994 ***
Comment 2 Ravi Kumar Sangubotla CLA 2006-08-02 04:34:36 EDT
Chris,
The problem is no server-config.wsdd is generated.As I stated I copied server-config.wsdd from a Bug reply of Kathy and modified it according to my service descriptions.

The same JBoss ( Axis ) works from Netbeans / JDeveloper IDE's . After a few investigations of making diff between the artifacts generated from other IDE's to Eclipse , I found that the strategy itself is different. That means other IDE's go with mapping.xml / webservices.xml.. etc . Whereas Eclipse generates WSDD files deploy.wsdd /undeploy.wsdd .. 

I think you should take a look at them.

Ravi.

(In reply to comment #1)
> Ravi,
> 
> 1. Similarly to bug 152244, this is another manifestation of issues in
> deploying the Axis servlets (including the admin servlet) to JBoss. I'm
> resolving this also as a duplicate of bug 140994 - not to make your bug
> disappear, but to track THE JBoss / Axis problem in one place.
> 
> 2. First, if possible, would you please attach your server-config.wsdd file to
> this bug so I can look at it? Axis itself is complaining that it cannot parse
> the wsdd file, although the error messages don't make a whole lot of sense (eg.
> "Invalid WSDD element 'deployment' (wanted 'deployment')"). Second, try
> deploying your Web project containing your Axis Web service to Tomcat, which
> will help determine whether Axis' apparent inability to load server-config.wsdd
> is a problem in the wsdd file and/or Axis vs. something related to the target
> server.
> 
> 3. The Web service tools create EARs automagically if the server adapter (JBoss
> in this case, though we're in the same boat with Geronimo) plugged into the
> Server Tools framework specifies that it "supports EARs". The problem is we
> don't have a way, via Server Tools, to ask if "supports" = "requires". For
> safety's sake, we assume it does. See bug 111341 and bug 119165 for more
> background on exactly this behaviour.
> 
> *** This bug has been marked as a duplicate of 140994 ***
> 
Comment 3 Kathy Chan CLA 2006-09-25 10:38:46 EDT
Tracking issues with creating Web service on JBOSS with bug 140994 and persisting server-config.wsdd in bug 119964.