Opened 17 years ago
Closed 17 years ago
#940 closed defect (fixed)
Can't generate web services wsdl files with ant 1.7
Reported by: | Nicklas Nordborg | Owned by: | Nicklas Nordborg |
---|---|---|---|
Priority: | major | Milestone: | BASE 2.6.1 |
Component: | core | Version: | |
Keywords: | Cc: |
Description
Compiling BASE with ant 1.7.0 fails when generating wsdl files. The end of the ant output is below. There is no problem with ant 1.6.2.
check.wsdl: [echo] WSDL files may not be up to date; generating new webservices.wsdl: BUILD FAILED /root/d/Nicklas/eclipse/Base2/build.xml:1080: The following error occurred while executing this line: /root/d/Nicklas/eclipse/Base2/build.xml:1100: java.util.zip.ZipException: error in opening zip file
Change History (3)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
I checked the source code for the Java2WSDLTask class at http://www.java2s.com/Open-Source/Java-Document/Web-Services-AXIS2/java2wsdl/org/apache/ws/java2wsdl/Java2WSDLTask.java.htm
The critical part in the stacktrace seems to be: {{{ org.apache.ws.java2wsdl.Java2WSDLTask.execute(Java2WSDLTask.java:261) }}}
which more or less corresponds to lines 259-260 in the link above
if (outputLocation != null) cl.addPathElement(outputLocation);
The path pointed to by outputLocation (<basedir>/misc/wsdl) doesn't exists. Adding a <mkdir> in the "webservices.wsdl" target makes the compilation error go away. I'll check in the fix tommorrow.
comment:3 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Running ant with the -verbose options yields a very long stacktrace, but still not any information about which file it can't open: