If WSDL contains message parts with empty XML type, NullPointerException is thrown during the deployment.
Here is the relevant pieces from the WSDL:
Piece from the schema embedded in the WSDL:
<element name=methodResponse" type="tns:methodResponseType"/>
Snippet from the WSDL:
<part name="result" element="ns2:someResponse"/>
The attached patch shows the possible solution:
Note that problem is that operationType.getContentModel() in the line HeavyweightOperationDescBuilder.java:231 returns null if it consists of one empty sequence. If check is added, everything works fine.