dev@jax-ws-commons.java.net

Re: JSON not working with xjc extension=true

From: Fedor Malyshkin <fedor.malyshkin_at_magnetosoft.ru>
Date: Sun, 10 Feb 2008 12:34:28 +0300

Fedor Malyshkin пишет:
> jonathan doklovic пишет:
>> 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
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_jax-ws-commons.dev.java.net
>> For additional commands, e-mail: dev-help_at_jax-ws-commons.dev.java.net
>>
> Hello!
>
> I don't maintain whole "jax-ws-commons" project and even my own
> sub-project "beans-generate" (or something like this). So I couldn't
> help you. Sorry.
> You could try contact with current maintainer - koshuke.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jax-ws-commons.dev.java.net
> For additional commands, e-mail: dev-help_at_jax-ws-commons.dev.java.net
>
Oups :) Sorry...