cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <>
Subject [jira] [Created] (CXF-6049) wsdl2java does not generate an ObjectFactory class
Date Mon, 13 Oct 2014 17:59:34 GMT
Gary Gregory created CXF-6049:

             Summary: wsdl2java does not generate an ObjectFactory class
                 Key: CXF-6049
             Project: CXF
          Issue Type: Bug
          Components: JAXB Databinding
    Affects Versions: 2.7.12
         Environment: Java 1.7.0 64-bit, Windows 7.
            Reporter: Gary Gregory

With the WSDL:


wsdl2java -server -impl -d C:/test/cxf/wsdl2java/src -classdir C:/test/cxf/wsdl2java/bin -compile

This generates two source packages:
- C:\test\cxf\wsdl2java\src\org\oorsprong\websamples
- C:\test\cxf\wsdl2java\src\org\oorsprong\websamples_countryinfo

Instead of one.

CXF replaces the dot in the namespace from the WSDL with an underscore.

Then JAXB cannot create a JAXBContext for classes in {{org.oorsprong.websamples_countryinfo}}
because JAXB throws an exception because there is no ObjectFactory in that package.

It seems to me that all the code should be generated in {{C:\test\cxf\wsdl2java\src\org\oorsprong\websamples_countryinfo}}
and nothing in {{C:\test\cxf\wsdl2java\src\org\oorsprong\websamples}}?

This message was sent by Atlassian JIRA

View raw message