I did these:
$ cd $AXIS2_HOME/samples/jaxws-calculator
$ mvn clean install

Two files were created:
samples/jaxws-calculator/target/jaxws-calculator-1.7.9.jar
samples/jaxws-calculator/target/jaxws-calculator-1.7.9-client.jar


$ cd $AXIS2_HOME/samples/jaxws-calculator/target/classes


java org.apache.axis2.jaxws.calculator.client.AddSEIClient 3 33
javax.xml.ws.WebServiceException: Failed to access the WSDL at:
http://localhost:8080/axis2/services/CalculatorService.CalculatorServicePort?wsdl.
It failed with:
http://localhost:8080/axis2/services/CalculatorService.CalculatorServicePort?wsdl
.
at
com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(RuntimeWSDLParser.java:250)
at
com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:231)
at
com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:194)
at
com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:163)
at
com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:348)
at
com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:306)
at
com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:215)
at
com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:196)
at
com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:192)
at
com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:104)
at javax.xml.ws.Service.<init>(Service.java:77)
at
org.apache.axis2.jaxws.calculator.client.CalculatorService.<init>(CalculatorService.java:53)
at
org.apache.axis2.jaxws.calculator.client.AddSEIClient.main(AddSEIClient.java:41)
Caused by: java.io.FileNotFoundException:
http://localhost:8080/axis2/services/CalculatorService.CalculatorServicePort?wsdl
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1890)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
at java.net.URL.openStream(URL.java:1045)
at
com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.createReader(RuntimeWSDLParser.java:984)
at
com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.resolveWSDL(RuntimeWSDLParser.java:385)
at
com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:216)
... 11 more



The server is tomcat-9.0.8.

Reply via email to