Dear All,
I'm new to JAXWS. I tried to build and deploy the JAXWS 2.1.1 samples in
to Tomcat 5.5.
I started with 'fromJava' sample.
My first ant target (i.e. ant clean server -Dtomcat=true ) run shows as
successful.
My second ant target (i.e. ant clean client run -Dtomcat=true ) is
failing.
Below is error stack trace:
generate-client:
[wsimport] Consider using <depends>/<produces> so that wsimport won't
do unnecessary compilation
[wsimport] parsing WSDL...
[wsimport]
[wsimport]
[wsimport] [ERROR] Failed to read the WSDL document:
http://localhost:8080/jaxws-fromjava/addnumbers?wsdl
<
http://localhost:8080/jaxws-fromjava/addnumbers?wsdl> , be
cause 1) could not find the document; /2) the document could not be
read; 3) the root element of the document
is not <wsdl:definitions>.
[wsimport] unknown location
[wsimport]
[wsimport] Failed to parse the WSDL.
[wsimport] Command invoked: wsimport "C:\Program
Files\Java\jdk1.6.0\jre\bin\java.exe" -d D:\Hitesh\GYAN\JAXW
S\jaxws-ri\samples\fromjava\build\classes -g -keep
http://localhost:8080/jaxws-fromjava/addnumbers?wsdl
<
http://localhost:8080/jaxws-fromjava/addnumbers?wsdl> -p fro
mjava.client
BUILD FAILED
D:\Hitesh\GYAN\JAXWS\jaxws-ri\samples\fromjava\build.xml:81: wsimport
failed
I verified that though my first ant target shows successful, but it's
not generating WSDL.
Could you please help me out regarding the same.
Please find the attached build file (i.e. build.xml)
Thanks,
Hitesh