cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CXF-5647) Cannot attach binding.xjb without schemaLocation attribute to cxf-wadl2java-plugin
Date Thu, 27 Mar 2014 15:41:20 GMT

     [ https://issues.apache.org/jira/browse/CXF-5647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sergey Beryozkin resolved CXF-5647.
-----------------------------------

    Resolution: Not A Problem

> 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)

Mime
View raw message