Hi Alain, From the email, it looks like you've got an <xs:group ref="..."/> element as the content of an <xs:extension> or <xs:restriction> element. I suspect this is happening as a result of some of the optimizations CodeGen performs before building the Java representation for a schema, but it would help me to isolate the issue if you could enter a Jira bug report (at http://jira.codehaus.org/secure/BrowseProject.jspa?id=10410) and attach the schemas along with an Ant build to recreate the problem. Can you do this?
Thanks, - Dennis Dennis M. Sosnoski XML and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 Alain Tamayo wrote: > Hello, > > I'm trying yo generate code for a set of about 66 schema files. When I > execute codeGen I get the following output: > > Loaded and validated 1 specified schema(s) and 65 referenced schema(s) > Exception in thread "main" java.lang.ClassCastException: > org.jibx.schema.elements.GroupRefElement cannot be cast to > org.jibx.schema.elements.CommonCompositorDefinition > at > org.jibx.schema.elements.CommonComplexModification.getContentDefinition(CommonComplexModification.java:105) > at > org.jibx.schema.codegen.custom.ComponentExtension.normalize(ComponentExtension.java:982) > at > org.jibx.schema.codegen.custom.ComponentExtension.normalize(ComponentExtension.java:847) > at > org.jibx.schema.codegen.custom.GlobalExtension.normalize(GlobalExtension.java:302) > at > org.jibx.schema.codegen.CodeGen.applyAndNormalize(CodeGen.java:461) > at org.jibx.schema.codegen.CodeGen.main(CodeGen.java:1940) > > any idea which the problem might be? > > Thanks in advance, > > Alain > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > ------------------------------------------------------------------------ > > _______________________________________________ > jibx-users mailing list > jibx-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jibx-users > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users