You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2014/10/30 16:59:33 UTC

[jira] [Commented] (CXF-6049) wsdl2java generates code in two folders instead of one (only one ObjectFactory class)

    [ https://issues.apache.org/jira/browse/CXF-6049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14190275#comment-14190275 ] 

Gary Gregory commented on CXF-6049:
-----------------------------------

The same problem happens with 2.7.13.

> wsdl2java generates code in two folders instead of one (only one ObjectFactory class)
> -------------------------------------------------------------------------------------
>
>                 Key: CXF-6049
>                 URL: https://issues.apache.org/jira/browse/CXF-6049
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.7.12, 3.0.1, 2.7.13, 3.0.2
>         Environment: Java 1.7.0 64-bit, Windows 7.
>            Reporter: Gary Gregory
>
> With the WSDL:
> http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL
> Calling::
> {noformat}
> wsdl2java -server -impl -d C:/test/cxf/wsdl2java/src -classdir C:/test/cxf/wsdl2java/bin -compile http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL
> {noformat}
> 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
(v6.3.4#6332)