1 Reply Latest reply on Apr 2, 2008 5:10 PM by shruthi

    Deployment of web service

    kishore_v1981

      Hi,

      I am trying to develop a bottom up web service out of a Java class using JBoss IDE 2.0. I am using JBoss AS 4.0.2 to deploy my web service.

      When i use the web services wizard to create the web service, it gives following error message "Unable to get URL for project {0}" at last step. But it generates the deploy.wsdd and wsdl file.

      If i ignore the message and deploy the web service, i see a message in the console "Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd". Despite of this message, there is not such file created under WEB-INF.

      Then I tried to copy the content of deploy.wsdd in to a new file and named it as server-config.wsdd, placed it under WEB-INF. This time the "Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd" message is disappeared.

      But when i launch a browser and check for the service at http://localhost:8080/context/services/ServiceEndpointInterface?wsdl and submit, i end up with "page cannot be displayed"

      I also tested under http://localhost:8080/axis/services, but my wsdl is not available even here.

      When i type "http://localhost:8080/context/services/ServiceEndpointInterface.wsdl" (unlike ?wsdl in the earlier attempt), it displays the wsdl fine.

      And finally when i go ahead and generate a web service client from the wsdl file and test the service, i get a fault message as below.

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      - <soapenv:Body>
      - <soapenv:Fault>
      <faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Server.NoService
      The AXIS engine could not find a target service to invoke! targetService is null
      -
      <ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">HWLSE56744</ns2:hostname>

      </soapenv:Fault>
      </soapenv:Body>
      </soapenv:Envelope>

      The above described behaviour is same even if I use eclipse instead of JBoss IDE.

      I am not sure why it is so complex to generate a simple web service even with the latest JBOSS IDE available in the market.

      Doesn't the tool generate all the required web service deployment descriptors which are required to deploy the web service propely?

      Any help on these questions would be very helpful. Also I would like to know if I am missing any step which would actually solve these problems.

      Thanks in advance

      Kishore