[
https://issues.apache.org/jira/browse/CXF-5647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13949270#comment-13949270
]
Sergey Beryozkin commented on CXF-5647:
---------------------------------------
I think this issue is invalid. I'm not really sure exactly about the way the
external bindings have to be set up, but this document
http://docs.oracle.com/cd/E17802_01/webservices/webservices/docs/1.5/tutorial/doc/JAXBUsing4.html
says "There are several rules that apply to binding declarations made in an
external binding customization file that do not apply to similar declarations
made inline in a source schema:... The remote schema to which the binding
declaration applies must be identified explicitly in XPath notation by means of
a jxb:bindings declaration specifying schemaLocation and node attributes"
Can you investigate more on JAXB forums, etc and resolve this issue as Invalid
if you agree ? Or do you have it working without these attributes with the CXF
WSDL tooling ?
> Cannot attach binding.xjb without schemaLocation attribute to
> cxf-wadl2java-plugin
> ----------------------------------------------------------------------------------
>
> Key: CXF-5647
> URL: https://issues.apache.org/jira/browse/CXF-5647
> Project: CXF
> Issue Type: Improvement
> Components: JAX-RS
> Affects Versions: 3.0.0-milestone2
> Reporter: Vjacheslav Borisov
> Priority: Minor
>
> Cannot attach binding.xjb without schemaLocation attribute to
> cxf-wadl2java-plugin
> Don't really know is it jaxb or CXF issue
> I have working jaxb bindings file
> https://github.com/bystrobank/testappjava/blob/master/src/main/webapp/schemas/testappjava/binding.xjb
> with attributes
> <jaxb:bindings
> ...
> schemaLocation="document.xsd" node="/xsd:schema"
> >
> Attached using cxf-wadl2java-plugin
> https://github.com/bystrobank/testappjava/blob/master/pom.xml
> <bindingFile>${basedir}/src/main/webapp/schemas/testappjava/binding.xjb</bindingFile>
> But I cannot attach binding.xjb file *without* attributes
> schemaLocation="document.xsd" node="/xsd:schema" in root
> jaxb:bindings
> I got error:
> plugin:3.0.0-milestone2:wadl2java (generate-sources) on project testappjava:
> java.lang.RuntimeException: Error compiling schema from WADL :
> "file:/home/slavb/work/testapp/testappjava/src/main/webapp/schemas/testappjava/testappjava.wadl"
> is not a part of this compilation. Is this a mistake for
> "file:/home/slavb/work/testapp/testappjava/src/main/webapp/schemas/testappjava/document.xsd
> So I cannot use single binding file for different xsd schema files, example
> by placing multiple jaxb:bindings with different schemaLocation
> Altough jaxb:globalBindings placed in one file works for all other schemas.
> Does this done intentionally or this is bug?
--
This message was sent by Atlassian JIRA
(v6.2#6252)