facebook

unable to create web service client

  1. MyEclipse IDE
  2.  > 
  3. WebSphere Development
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #290591 Reply

    kvas1
    Member

    Hello! I’m using MyEclipse Blue 6.5.1 GA and WebSphere 6.1 application server with web service and EJB 3.0 feature packs.

    I have tried to create a web service and web service client as it is shown in “Developing JAX-WS Web Services for WebSphere” tutorial. I have deployed and tested web service successfully, but I can’t generate a client! Although I’m doing everythig as in tutorial, the process crashes when I press “Finish” button on “New web service client” window after succesful validation and compliance tests of WSDL file.

    Full exception stack trace is here (located in .metadata\.log file):

    !ENTRY com.genuitec.eclipse.ws.blue 4 0 2008-11-03 19:33:26.812
    !MESSAGE Unable to parse “CalculatorService_schema1.xsd” : http://localhost:9080/WebServiceProject/CalculatorService_schema1.xsd
    !STACK 0
    java.io.FileNotFoundException: http://localhost:9080/WebServiceProject/CalculatorService_schema1.xsd
    at com.sun.tools.ws.wsdl.parser.AbstractReferenceFinderImpl.startElement(AbstractReferenceFinderImpl.java:106)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at com.sun.tools.ws.wsdl.parser.DOMForest.parse(DOMForest.java:264)
    at com.sun.tools.ws.wsdl.parser.DOMForest.parse(DOMForest.java:147)
    at com.sun.tools.ws.wsdl.parser.MetadataFinder.parseWSDL(MetadataFinder.java:102)
    at com.sun.tools.ws.wsdl.parser.WSDLParser.parse(WSDLParser.java:141)
    at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:126)
    at com.genuitec.eclipse.ws.jaxws.JAXWSJob$MEWSDLModeler.buildModel(JAXWSJob.java:521)
    at com.genuitec.eclipse.ws.blue.jaxws.JAXWSJob.parseService(JAXWSJob.java:131)
    at com.genuitec.eclipse.ws.jaxws.JAXWSJob.run(JAXWSJob.java:128)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    Caused by: java.io.FileNotFoundException: http://localhost:9080/WebServiceProject/CalculatorService_schema1.xsd
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at com.sun.tools.ws.wsdl.parser.DOMForest.parse(DOMForest.java:221)
    at com.sun.tools.ws.wsdl.parser.DOMForest.parse(DOMForest.java:180)
    at com.sun.tools.ws.wsdl.parser.AbstractReferenceFinderImpl.startElement(AbstractReferenceFinderImpl.java:97)
    … 18 more

    !ENTRY org.eclipse.core.jobs 4 2 2008-11-03 19:33:26.812
    !MESSAGE An internal error occurred during: “Generating JAX-WS Web Service Client”.
    !STACK 0
    com.sun.tools.ws.wscompile.AbortException
    at com.genuitec.eclipse.ws.blue.jaxws.JAXWSJob$1.fatalError(JAXWSJob.java:100)
    at com.sun.tools.ws.wscompile.ErrorReceiverFilter.fatalError(ErrorReceiverFilter.java:94)
    at org.xml.sax.helpers.XMLFilterImpl.fatalError(Unknown Source)
    at com.sun.tools.ws.wsdl.parser.AbstractReferenceFinderImpl.startElement(AbstractReferenceFinderImpl.java:110)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at com.sun.tools.ws.wsdl.parser.DOMForest.parse(DOMForest.java:264)
    at com.sun.tools.ws.wsdl.parser.DOMForest.parse(DOMForest.java:147)
    at com.sun.tools.ws.wsdl.parser.MetadataFinder.parseWSDL(MetadataFinder.java:102)
    at com.sun.tools.ws.wsdl.parser.WSDLParser.parse(WSDLParser.java:141)
    at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:126)
    at com.genuitec.eclipse.ws.jaxws.JAXWSJob$MEWSDLModeler.buildModel(JAXWSJob.java:521)
    at com.genuitec.eclipse.ws.blue.jaxws.JAXWSJob.parseService(JAXWSJob.java:131)
    at com.genuitec.eclipse.ws.jaxws.JAXWSJob.run(JAXWSJob.java:128)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

    As I have understood, MyEclipse can’t find CalculatorService_schema1.xsd file. Thank you in advance!

    #290618 Reply

    kvas1
    Member

    Does anybody has any ideas? I am trying to fix this problem for three days 🙁

    #290628 Reply

    Ton Huisman
    Member

    I would think this message would explain enough?
    java.io.FileNotFoundException: http://localhost:9080/WebServiceProject/CalculatorService_schema1.xsd

    HTH
    Ton

    #290699 Reply

    kvas1
    Member

    Thank you, but how can I fix this problem? I wanted to purchase several licenses for my team when my trial version expires, but it’s really discouraging when even official tutorial doesn’t work with this IDE. I have tried the tutorial on several computers with the same result. Maybe it’s a bug?

    #293009 Reply

    sharonbn
    Member

    This message has not been recovered.

    #293034 Reply

    sharonbn
    Member

    This message has not been recovered.

    #293039 Reply

    sharonbn
    Member

    This message has not been recovered.

    #293156 Reply

    sharonbn
    Member

    This message has not been recovered.

    #296130 Reply

    Hi,
    I tried the solution given in this post. Still I am getting the same error.
    Is there any other way to create the Web Service client.

    I am using the

    Version: 6.5.1 Blue GA
    Build id: 6.5.1-Blue-GA-20080715

    #304910 Reply

    peeyushhcl
    Member

    This message has not been recovered.

    #310234 Reply

    Dear all,

    In the tutorial they said while creating the webservice client

    http://localhost:9081/WebServiceProject/CalculatorService?WSDL

    NOTE: The default WebSphere port is 9080, if the URL above doesn’t work for you, try changing the port from 9081 to 9080 and try again.

    for me default websphere application server is running on 9082 check this…and in the url try to give the full path as shown below

    http://localhost:9082/IPOMS_WS/CalculatorService/WEB-INF/wsdl/CalculatorService.wsdl

    then it will create all the java file required for the client .

    This is how i resolved the problem.

    Thanks,
    Stanley Jones

    #325266 Reply

    spice80
    Member

    @sharonbn wrote:

    ok, i’ve finally figured it out, here’s what i’ve done:

    go to the websphere administrative console, chose Applications from the left panel menu, Enterprise Applications option. You should see the WebServiceProject application. click on it and then on the right panel, under Web Services Properties, click on Publish WSDL files. You should be presented with a zip file. click on it to save it to a location of your choosing. open the zip file in the directory, it should contain the wsdl and xsd files.

    now, in the “New Web Service Client” dialog, chosoe the “WSDL file” option and specify the wsdl file that was extracted from the zip file. this will create the web service client and running it will produce the desired results.

    Thanks for this solution – worked fine for me 🙂

Viewing 12 posts - 1 through 12 (of 12 total)
Reply To: unable to create web service client

You must be logged in to post in the forum log in