Note that there are some explanatory texts on larger screens.

plurals
  1. POMaven Webservice Plugin working with install, not deploy
    text
    copied!<p>I have a maven module that uses the plugin <code>jaxws-maven-plugin</code>. I have the webservice up and running and when browsing to the <code>.../myWebservice?wsdl</code>, I get the WSDL. No problem. </p> <p>This also works when running the <code>wsimport</code> maven goal through:</p> <p><code> <code>&lt;plugin&gt;</code><br/> &nbsp;&nbsp;<code>&lt;groupId&gt;</code>org.codehaus.mojo<code>&lt;/groupId&gt;</code><br/> &nbsp;&nbsp;<code>&lt;artifactId&gt;</code>jaxws-maven-plugin<code>&lt;/artifactId&gt;</code><br/> &nbsp;&nbsp;<code>&lt;executions&gt;</code><br/> &nbsp;&nbsp;&nbsp;&nbsp;<code>&lt;execution&gt;</code><br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>&lt;goals&gt;</code><br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>&lt;goal&gt;</code>wsimport<code>&lt;/goal&gt;</code><br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>&lt;/goals&gt;</code><br/> &nbsp;&nbsp;&nbsp;&nbsp;<code>&lt;/execution&gt;</code><br/> &nbsp;&nbsp;<code>&lt;/executions&gt;</code><br/> &nbsp;&nbsp;<code>&lt;configuration&gt;</code><br/> &nbsp;&nbsp;&nbsp;&nbsp;<code>&lt;sourceDestDir&gt;</code>src/main/java<code>&lt;/sourceDestDir&gt;</code><br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>&lt;wsdlUrls&gt;</code><br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>&lt;wsdlUrl&gt;</code><a href="http://host/f/soap/fWeb?wsdl" rel="nofollow noreferrer">http://host/f/soap/fWeb?wsdl</a><code>&lt;/wsdlUrl&gt;</code><br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>&lt;/wsdlUrls&gt;</code><br/> &nbsp;&nbsp;<code>&lt;/configuration&gt;</code><br/> <code>&lt;/plugin&gt;</code><br/> </code> </p> <p>When running </p> <p><code>mvn clean install</code></p> <p>All is fine... However, it doesn't work when I run </p> <p><code>mvn clean deploy</code></p> <p>Looking at the logged out parameters, they are identical in both cases:</p> <p><code> [INFO] jaxws:wsimport args: [-s, D:\works2\f-service\src\main\java, -d, D:\works2\f- service\target\classes, -Xnocompile, <a href="http://host/f/soap/fWeb?wsdl]" rel="nofollow noreferrer">http://host/f/soap/fWeb?wsdl]</a> parsing WSDL... </code></p> <p>After a really long timeout, that feels like a http timeout, it fails with this message: </p> <p><code> [ERROR] Unexpected end of file from server Failed to read the WSDL document: <a href="http://host/f/soap/fWeb?wsdl" rel="nofollow noreferrer">http://host/f/soap/fWeb?wsdl</a>, because<br> 1) could not find the document;<br> 2) the document could not be read;<br> 3) the root element of the document is not wsdl:definitions.<br> 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. </code></p> <p>It's a bit confusing, since it takes so long... In fact the full namespace is not mentioned in the WSDL, root element is <code>&lt;definitions&gt;</code>, not <code>&lt;wsdl:definitions&gt;</code>, but then why does it work with <code>mvn clean install</code>...?</p> <p>Thanks!<br> Raoul</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload