Hi,
I have a project that requires a json endpoint.
We're generating classes using xjc with the extension="true" flag.
apt, and soap endpoints work fine, but the json endpoint throws:
SEVERE: WSSERVLET11: failed to parse runtime descriptor:
java.lang.NullPointerException
If I add @SchemaValidation to my webservice, essentially forcing strict
validation, then it throws:
SEVERE: WSSERVLET11: failed to parse runtime descriptor:
javax.xml.ws.WebServiceException: org.xml.sax.SAXParseException:
src-resolve: Cannot resolve the name 'tns:NameType' to a(n) 'attribute
declaration' component.
The 'NameType' is a schema extension:
<xs:extension base="NameType">
<xs:attribute name="NameType" type="PremisesElementTypeList">
<xs:annotation>
<xs:documentation>Describes the type / part of name this element
contains.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
To me, this seems like jaxws-json cannot handle the extension and
instead fails due to strict validation.
Is there a workaround for this?
Also, just as an FYI, I tried to checkout the source but ALL of the urls
listed on the site for svn require a developer login.
Thanks,
- Jonathan