users@jaxb.java.net

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

From: Markku Saarela <markku.saarela_at_iki.fi>
Date: Sun, 15 Oct 2006 10:17:32 +0300

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