cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] Created: (CXF-2206) Mapping jaxb types to "default" package causes exception
Date Wed, 06 May 2009 18:42:30 GMT
Mapping jaxb types to "default" package causes exception
--------------------------------------------------------

                 Key: CXF-2206
                 URL: https://issues.apache.org/jira/browse/CXF-2206
             Project: CXF
          Issue Type: Bug
          Components: Tooling
    Affects Versions: 2.2.1
            Reporter: Daniel Kulp



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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message