[ https://issues.apache.org/jira/browse/CXF-5647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13949450#comment-13949450 ]
Vjacheslav Borisov commented on CXF-5647: ----------------------------------------- Actually i fixed this problem by setting schemaLocation="document.xsd" in the root jaxb:binding, May be the main problem is the error message "....wadl is not a part of this compilation" I spent lot of time diagnosing this problem. There is no signal that the cause of this problem is of lack of schemaLocation in *root* jaxb:binding element. And in case of simple jaxb (not using wadl2java) this is not required, I can have root jaxb:binding without schemaLocation attribute But for me this problem is fixed somehow. > 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)