users@jaxb.java.net

Re: JAXB XJC Maven 2 Plugin with JDK 1.6.0-beta2 not working!

From: Markku Saarela <markku.saarela_at_iki.fi>
Date: Mon, 16 Oct 2006 08:29:22 +0300

This is report about JAXB-2.x.

Kostis Anagnostopoulos wrote:
> Hi Markku,
>
> Is this report about JAXB-1.x or JAXB-2.x ?
>
> On 10/15/06, Markku Saarela <markku.saarela_at_iki.fi> wrote:
>> Hi,
>>
>> I'm having problems to generate java classes from schema with JDK 1.6
>> beta-2. With JDK 1.5 it works. So I can't use this project as subproject
>> because other project use jdk 1.6 features.
>>
>> I got following error:
>>
>> [INFO] Compiling
>> file:/C:/eclipse_workspaces/modeler/ui-jaxb-layout/src/main/xsd/layout-components.x
>>
>> sd
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] FATAL ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] org.xml.sax.SAXParseException: src-resolve: Cannot resolve the
>> name 'xjc:serializable' to a(n
>> ) 'element declaration' component.
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> java.lang.AssertionError: org.xml.sax.SAXParseException: src-resolve:
>> Cannot resolve the name 'xjc:s
>> erializable' to a(n) 'element declaration' component.
>> at
>> com.sun.tools.xjc.SchemaCache.newValidator(SchemaCache.java:42)
>> at
>> com.sun.tools.xjc.reader.xmlschema.bindinfo.AnnotationParserFactoryImpl$1$1.startElement(
>>
>> AnnotationParserFactoryImpl.java:136)
>> at
>> com.sun.xml.xsom.impl.parser.state.NGCCRuntime.startElement(NGCCRuntime.java:214)
>>
>>
>> Regards,
>>
>> Markku Saarela
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
>> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>