Description
If you use a JAXB customization like:
<jaxws:bindings wsdlLocation="./proactive.wsdl"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb">
<jaxws:package></jaxws:package>
</jaxws:bindings
To try and map to a default package, wsdl2java yields:
Caused by: java.lang.StringIndexOutOfBoundsException: String index out
of range: -1
at java.lang.String.substring(String.java:1768)
at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.addedToClassCollector(JAXBDataBinding.java:488)
at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.addedEnumClassToCollector(JAXBDataBinding.java:477)
at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:333)
at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(WSDLToJavaContainer.java:557)
at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:208)
at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:127)
at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:252)
... 22 more