Description
Looks like a bug in the XMLBeans Schema compiler (due to the
redefinition of already redefined types).
Can you log a jira bug against this?
Radu
----Original Message----
From: Geoff Hendrey ghendrey@telcontar.com
Sent: Tuesday, May 18, 2004 3:55 PM
To: xmlbeans-user@xml.apache.org
Subject: voice xml, VXML
I am trying to compile the Voice XML schemas. This would seem to be a
fairly big brag if only I could get it to work. I gave up trying to do
it with JAXB. The VXML schemas are available from
http://www.w3c.org/TR/voicexml20/vxml-schema.zip
The problem appears to be with xsd:redefine, so I tried to use
-allowmdef but the ClassCastException is still thrown.
C:\temp>scomp -compiler C:\j2sdk1.4.2_01\bin\javac -jar
C:\j2sdk1.4.2_01\bin\jar
-allowmdef http://www.w3.org/2001/vxml -out vxml.jar vxml-schema
Exception in thread "main" java.lang.ClassCastException:
java.lang.String
at
org.apache.xmlbeans.impl.schema.StscTranslator$RedefinitionHolder.com
plainAboutMissingDefinitions(StscTranslator.java:264)
at
org.apache.xmlbeans.impl.schema.StscTranslator.addAllDefinitions(Stsc
Translator.java:144)
at
org.apache.xmlbeans.impl.schema.StscTranslator.addAllDefinitions(Stsc
Translator.java:60)
at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compileImpl(
SchemaTypeSystemCompiler.java:194)
at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(Sche
maTypeSystemCompiler.java:144)
at
org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCom
piler.java:732)
at
org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.j
ava:784)
at
org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java
:264)