You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Eivind Berg Johannessen (JIRA)" <ji...@apache.org> on 2009/03/16 11:09:50 UTC
[jira] Issue Comment Edited: (CXF-1905) WSDL2Java can't handle
JAXB-bindings with split WSDLs
[ https://issues.apache.org/jira/browse/CXF-1905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12682263#action_12682263 ]
Eivind Berg Johannessen edited comment on CXF-1905 at 3/16/09 3:09 AM:
-----------------------------------------------------------------------
I still get the exception from JAXB that "(...) is not a part of this compilation. Is this a mistake for (...) ?". As this issue is closed, I was assuming that CXF now accepts the binding files directly, but running the cxf-codegen maven plugin with the example project provided with this issue, I still need to supply the binding files directly to xjc through <extraarg>-xjc -b,jaxb-custom.xjb</extraarg> and not via the <bindingFiles>(...)</bindingFiles> configuration paramters.
was (Author: eivindjo):
I still get the exception from JAXB that "(...) is not a part of this compilation. Is this a mistake for (...) ?". As this issue is closed, I was assuming that CXF now accepts the binding files directly, but running the cxf-codegen maven plugin with the example project provided with this issue, I still need to supply the binding files directly to xjc through and not via the <bindingFiles> configuration paramters.
> WSDL2Java can't handle JAXB-bindings with split WSDLs
> -----------------------------------------------------
>
> Key: CXF-1905
> URL: https://issues.apache.org/jira/browse/CXF-1905
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.1.3
> Reporter: Janko Heilgeist
> Assignee: Daniel Kulp
> Fix For: 2.0.10, 2.1.4
>
> Attachments: hello-world-service.tar.gz
>
>
> The documentation on WSDL2Java says about the parameter "-b": "Specifies zero, or more, JAXWS or JAXB binding files." In fact, WSDL2Java can not handle specified JAXB binding files if the WSDL is split, i.e. it is given a WSDL with service and binding definitions, which imports another WSDL with port type and messages definitions, which in turn imports an XML schema file.
> The command line "wsdl2java -validate -b jaxb-custom.xjb hello-world-service.wsdl" will fail with
> WSDLToJava Error: Thrown by JAXB : "file:/home/jheilgei/DEV/workspaces/cxf-mini/hello-world-service.wsdl" is not a part of this compilation. Is this a mistake for "file:/home/jheilgei/DEV/workspaces/cxf-mini/hello-world-abstract.wsdl"?
> while the command line "wsdl2java -validate -xjc-b,jaxb-custom.xjb hello-world-service.wsdl" which gives the binding file directly to the JAXB binding compiler will succeed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.