Hi All,
I have a maven module that uses the plugin jaxws-maven-plugin
. I have the webservice up and running and when browsing to the .../myWebservice?wsdl
, I get the WSDL. No problem.
This also works when running the wsimport
maven goal through:
<plugin>
<groupId>
org.codehaus.mojo</groupId>
<artifactId>
jaxws-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>
wsimport</goal>
</goals>
</execution>
</executions>
<configuration>
<sourceDestDir>
src/main/java</sourceDestDir>
<wsdlUrls>
<wsdlUrl>
http://host/f/soap/fWeb?wsdl</wsdlUrl>
</wsdlUrls>
</configuration>
</plugin>
When running
mvn clean install
All is fine... However, it doesn't work when I run
mvn clean deploy
Looking at the logged out parameters, they are identical in both cases:
[INFO] jaxws:wsimport args: [-s, D:\works2\f-service\src\main\java, -d, D:\works2\f-
service\target\classes, -Xnocompile, http://host/f/soap/fWeb?wsdl%5D
parsing WSDL...
After a really long timeout, that feels like a http timeout, it fails with this message:
[ERROR] Unexpected end of file from server
Failed to read the WSDL document: http://host/f/soap/fWeb?wsdl, because
1) could not find the document;
2) the document could not be read;
3) the root element of the document is not wsdl:definitions.
ERROR failed.noservice=Could not find wsdl:service in the provided WSDL(s):
At least one WSDL with at least one service definition needs to be provided.
Failed to parse the WSDL.
It's a bit confusing, since it takes so long... In fact the full namespace is not mentioned in the WSDL, root element is <definitions>
, not <wsdl:definitions>
, but then why does it work with mvn clean install
...?
Thanks!
Raoul