cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lee Yang (JIRA)" <>
Subject [jira] [Created] (CXF-5951) wadl2java jaxb binding bug
Date Thu, 14 Aug 2014 21:22:19 GMT
Lee Yang created CXF-5951:

             Summary: wadl2java jaxb binding bug
                 Key: CXF-5951
             Project: CXF
          Issue Type: Bug
            Reporter: Lee Yang

If you specify the jaxb binding file using the <bindingFile> tag (see the pom configuration
section),  then wadl2java throws the following error:

[INFO] java.lang.RuntimeException: Error compiling schema from WADL : "file:/C:/webdev/cygwin/tmp/xsd/MyTypes.xsd"
is not a part of this compilation. Is this a mistake for "file:/C:/webdev/cygwin/tmp/cxf-tmp-699471/jaxbbinding5875176368914084138.xml"?

However, if you specify the same jaxb binding file using the -xjc -b option via the <extraarg>
tag, then the binding works. The relevant files (pom, xsd-binding, and wadl) are enclosed

1.  The relevant pom configuration section:

	<version>${cxf.version}</version>  <!-- 3.0.0 or 3.0.1 -->
						<!-- The following commented-out binding causes errors. The same binding works
							 fine when using the -xjc options via the extraarg tag.

2.  The xsd-binding.xml:

<jxb:bindings version="2.0" xmlns:jxb=""
	<jxb:bindings schemaLocation="../xsd/MyTypes.xsd" node="/xs:schema">
			<jxb:package name="" />

3.  The MyService-wadl.xml:

<wadl:application xmlns:wadl="" xmlns:xs=""
xmlns:xsi="" xmlns=""
		<wadl:include href="../xsd/MyTypes.xsd"/>
	<wadl:resources base="http://HOST:PORT/WEB_APP_CONTEXT_ROOT/services">

This message was sent by Atlassian JIRA

View raw message