MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
kvas1
Post subject: unable to create web service client  PostPosted: Nov 03, 2008 - 05:16 PM



Joined: Nov 03, 2008
Posts: 3

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!
 
 View user's profile Send private message  
Reply with quote Back to top
kvas1
Post subject:   PostPosted: Nov 04, 2008 - 09:03 AM



Joined: Nov 03, 2008
Posts: 3

Does anybody has any ideas? I am trying to fix this problem for three days :-(
 
 View user's profile Send private message  
Reply with quote Back to top
huisma13
Post subject:   PostPosted: Nov 04, 2008 - 03:18 PM



Joined: Nov 30, 2006
Posts: 190

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

HTH
Ton
 
 View user's profile Send private message  
Reply with quote Back to top
kvas1
Post subject:   PostPosted: Nov 06, 2008 - 04:12 PM



Joined: Nov 03, 2008
Posts: 3

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?
 
 View user's profile Send private message  
Reply with quote Back to top
sharonbn
Post subject: need help also  PostPosted: Jan 01, 2009 - 03:02 PM



Joined: Jan 01, 2009
Posts: 4

I have the exact same problem.
I followed the tutorial for creating JAX-WS web service on WebSphere 6.1
I am using MyEclipse Blue 6.6 trial.
I am seeing the same error with the message
java.io.FileNotFoundException: http://w-sharon-b:9081/WebServiceProject/CalculatorService_schema1.xsd
However, I have absolutely no idea how to generate this URL.
testong the web service through the Web Service Explorer works fine
 
 View user's profile Send private message  
Reply with quote Back to top
sharonbn
Post subject: RE: need help also  PostPosted: Jan 04, 2009 - 12:46 PM



Joined: Jan 01, 2009
Posts: 4

ok, i think i worked arounf that problem:
I searched for CalculatorService_schema1.xsd in the WebSphere directory tree, and found it here
profiles\AppSrv02\installedApps\W-SHARON-BNode02Cell\WebServiceProject.ear\WebServiceProject.war\WEB-INF\wsdl\
the wsdl file was also there. so I specified the wsdl file in the "WSDL file" option in the "New Web Service Client" dialog and it seems to work
 
 View user's profile Send private message  
Reply with quote Back to top
sharonbn
Post subject: RE: need help also  PostPosted: Jan 05, 2009 - 08:34 AM



Joined: Jan 01, 2009
Posts: 4

nope, it didn't work. I am stil in need of some help here, please
 
 View user's profile Send private message  
Reply with quote Back to top
sharonbn
Post subject: RE: need help also  PostPosted: Jan 07, 2009 - 03:19 PM



Joined: Jan 01, 2009
Posts: 4

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.
 
 View user's profile Send private message  
Reply with quote Back to top
senthilkumartnr
Post subject:   PostPosted: Mar 16, 2009 - 06:12 PM



Joined: Feb 15, 2006
Posts: 24

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
 
 View user's profile Send private message  
Reply with quote Back to top
peeyushhcl
Post subject: Re: RE: need help also  PostPosted: Dec 21, 2009 - 11:33 PM



Joined: Dec 21, 2009
Posts: 1

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.



Yeah steps mentioned, worked, we need to only specify WSDL location.
 
 View user's profile Send private message  
Reply with quote Back to top
stanley_Jones
Post subject: unable to create web service client  PostPosted: Jul 31, 2010 - 10:19 AM



Joined: Jul 31, 2010
Posts: 1

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
 
 View user's profile Send private message  
Reply with quote Back to top
spice80
Post subject: Re: RE: need help also  PostPosted: Apr 16, 2012 - 10:21 AM



Joined: Apr 16, 2012
Posts: 1

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 :)
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits