2 Replies Latest reply on Apr 1, 2005 8:00 AM by dhartford

    Unsupported number of service elements in wsdl document

    madan12

      Hi everyone,
      i am trying to deploy webservice in jboss4.0.1RC1. It is everything fine if i am using single service in wsdl file, if i am trying to use more than one services in wsdl file i am getting the following error when i am deploying my ear file.
      Is this is the problem of xdoclet because i am using xdoclet to generate webservice.xml file.
      And i am getting this service.wsdl(wsdl file) from this webservice.xml.

      Any one can help me how over come thing problem.

      thankyou.........madan.

      my wsdl file contains:
      ------------------------------------------------------------------------------
      <?xml version="1.0" encoding="UTF-8"?>
      <wsdl:definitions targetNamespace="http://WSSipikatManager" xmlns:impl="http://WSSipikatManager" xmlns:intf="http://WSSipikatManager" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/">

      <wsdl:message name="updateTRStatusResponse">

      <wsdl:part name="updateTRStatusReturn" type="xsd:short"/>

      </wsdl:message>

      <wsdl:message name="updateTestResultsResponse">

      <wsdl:part name="updateTestResultsReturn" type="xsd:short"/>

      </wsdl:message>

      <wsdl:message name="updateNotificationStatusResponse">

      <wsdl:part name="updateNotificationStatusReturn" type="xsd:short"/>

      </wsdl:message>

      <wsdl:message name="updateTRStatusRequest">

      <wsdl:part name="in0" type="xsd:string"/>

      <wsdl:part name="in1" type="xsd:string"/>

      <wsdl:part name="in2" type="xsd:string"/>

      <wsdl:part name="in3" type="xsd:string"/>

      <wsdl:part name="in4" type="xsd:string"/>

      <wsdl:part name="in5" type="xsd:string"/>

      <wsdl:part name="in6" type="xsd:string"/>

      <wsdl:part name="in7" type="xsd:string"/>

      <wsdl:part name="in8" type="xsd:string"/>

      <wsdl:part name="in9" type="xsd:string"/>

      <wsdl:part name="in10" type="xsd:string"/>

      <wsdl:part name="in11" type="xsd:string"/>

      <wsdl:part name="in12" type="xsd:string"/>

      <wsdl:part name="in13" type="xsd:string"/>

      </wsdl:message>

      <wsdl:message name="updateNotificationStatusRequest">

      <wsdl:part name="in0" type="xsd:string"/>

      <wsdl:part name="in1" type="xsd:string"/>

      <wsdl:part name="in2" type="xsd:string"/>

      <wsdl:part name="in3" type="xsd:string"/>

      <wsdl:part name="in4" type="xsd:string"/>

      <wsdl:part name="in5" type="xsd:string"/>

      </wsdl:message>

      <wsdl:message name="updateTestResultsRequest">

      <wsdl:part name="in0" type="xsd:string"/>

      <wsdl:part name="in1" type="xsd:string"/>

      <wsdl:part name="in2" type="xsd:string"/>

      <wsdl:part name="in3" type="xsd:string"/>

      <wsdl:part name="in4" type="xsd:string"/>

      <wsdl:part name="in5" type="xsd:string"/>

      <wsdl:part name="in6" type="xsd:string"/>

      <wsdl:part name="in7" type="xsd:string"/>

      <wsdl:part name="in8" type="xsd:string"/>

      <wsdl:part name="in9" type="xsd:string"/>

      <wsdl:part name="in10" type="xsd:string"/>

      <wsdl:part name="in11" type="xsd:string"/>

      <wsdl:part name="in12" type="xsd:string"/>

      <wsdl:part name="in13" type="xsd:string"/>

      <wsdl:part name="in14" type="xsd:string"/>

      <wsdl:part name="in15" type="xsd:string"/>

      <wsdl:part name="in16" type="xsd:string"/>

      <wsdl:part name="in17" type="xsd:string"/>

      <wsdl:part name="in18" type="xsd:string"/>

      <wsdl:part name="in19" type="xsd:string"/>

      <wsdl:part name="in20" type="xsd:string"/>

      </wsdl:message>

      <wsdl:portType name="WSSipikatManager">

      <wsdl:operation name="updateTRStatus" parameterOrder="in0 in1 in2 in3 in4 in5 in6 in7 in8 in9 in10 in11 in12 in13">

      <wsdl:input name="updateTRStatusRequest" message="impl:updateTRStatusRequest"/>

      <wsdl:output name="updateTRStatusResponse" message="impl:updateTRStatusResponse"/>

      </wsdl:operation>

      <wsdl:operation name="updateNotificationStatus" parameterOrder="in0 in1 in2 in3 in4 in5">

      <wsdl:input name="updateNotificationStatusRequest" message="impl:updateNotificationStatusRequest"/>

      <wsdl:output name="updateNotificationStatusResponse" message="impl:updateNotificationStatusResponse"/>

      </wsdl:operation>

      </wsdl:portType>

      <wsdl:portType name="WSAlertManager">

      <wsdl:operation name="updateTestResults" parameterOrder="in0 in1 in2 in3 in4 in5 in6 in7 in8 in9 in10 in11 in12 in13 in14 in15 in16 in17 in18 in19 in20">

      <wsdl:input name="updateTestResultsRequest" message="impl:updateTestResultsRequest"/>

      <wsdl:output name="updateTestResultsResponse" message="impl:updateTestResultsResponse"/>

      </wsdl:operation>

      </wsdl:portType>

      <wsdl:binding name="WSSipikatManagerSoapBinding" type="impl:WSSipikatManager">

      <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>

      <wsdl:operation name="updateTRStatus">

      <wsdlsoap:operation soapAction=""/>

      <wsdl:input name="updateTRStatusRequest">

      <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://WSSipikatManager"/>

      </wsdl:input>

      <wsdl:output name="updateTRStatusResponse">

      <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://WSSipikatManager"/>

      </wsdl:output>

      </wsdl:operation>

      <wsdl:operation name="updateNotificationStatus">

      <wsdlsoap:operation soapAction=""/>

      <wsdl:input name="updateNotificationStatusRequest">

      <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://WSSipikatManager"/>

      </wsdl:input>

      <wsdl:output name="updateNotificationStatusResponse">

      <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://WSSipikatManager"/>

      </wsdl:output>

      </wsdl:operation>

      </wsdl:binding>

      <wsdl:binding name="WSAlertManagerSoapBinding" type="impl:WSAlertManager">

      <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>

      <wsdl:operation name="updateTestResults">

      <wsdlsoap:operation soapAction=""/>

      <wsdl:input name="updateTestResultsRequest">

      <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://WSSipikatManager"/>

      </wsdl:input>

      <wsdl:output name="updateTestResultsResponse">

      <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://WSSipikatManager"/>

      </wsdl:output>

      </wsdl:operation>

      </wsdl:binding>

      <wsdl:service name="WSAlertManagerService">

      <wsdl:port name="WSAlertManager" binding="impl:WSAlertManagerSoapBinding">

      <wsdlsoap:address location="http://localhost:8072/webstars/WSAlertManager"/>

      </wsdl:port>

      </wsdl:service>

      <wsdl:service name="WSSipikatManagerService">

      <wsdl:port name="WSSipikatManager" binding="impl:WSSipikatManagerSoapBinding">

      <wsdlsoap:address location="http://localhost:8072/webstars/WSSipikatManager"/>

      </wsdl:port>

      </wsdl:service>

      </wsdl:definitions>
      ------------------------------------------------------------------------------



      and the error what i got in server is
      -----------------------------------------------------

      13:28:41,349 INFO [STDOUT] Retrieving document at 'jar:file:/C:/jboss-4.0.1RC1/server/default/tmp/deploy/tmp56093webstars.ear-contents/webstars.jar!/META-INF/wsdl/service.wsdl'.
      13:28:41,359 ERROR [ServiceDeployer] Cannot startup webservice for: webstars.jar
      java.lang.IllegalArgumentException: Unsupported number of service elements in wsdl document
      at org.jboss.webservice.metadata.WebserviceDescriptionMetaData.replaceAddressLocations(WebserviceDescriptionMetaData.java:241)
      at org.jboss.webservice.metadata.WebserviceDescriptionMetaData.updateServiceAddress(WebserviceDescriptionMetaData.java:229)
      at org.jboss.webservice.ServiceDeployer.startWebservice(ServiceDeployer.java:181)
      at org.jboss.webservice.ServiceDeployer.handleNotification(ServiceDeployer.java:113)
      at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
      at $Proxy23.handleNotification(Unknown Source)
      at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:112)
      at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:95)
      at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:178)
      at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:620)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:944)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:936)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:718)
      at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:175)
      at $Proxy8.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:463)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)
      13:28:41,379 INFO [TomcatDeployer] deploy, ctxPath=/WebSTARS, warUrl=file:/C:/jboss-4.0.1RC1/server/default/tmp/deploy/tmp56093webstars.ear-contents/webstars-exp.war/
      13:28:42,120 INFO [JBossCacheManager] init(): replicationGranularity_ is 0 and invaldateSessionPolicy is 2
      13:28:42,131 ERROR [JBossCacheManager] JBossCacheService to Tomcat clustering not found
      13:28:42,131 ERROR [TomcatDeployer] Failed to setup clustering, clustering disabled
      13:28:42,371 INFO [EARDeployer] Started J2EE application: file:/C:/jboss-4.0.1RC1/server/default/deploy/webstars.ear