Hi, I'm trying to generate java source for MODS (Metadata Object Description Schema) using the included SourceGenerator. The schema is located here: http://www.loc.gov/standards/mods/v3/mods-3-2.xsd. I got the following error:
12:39:33,187 WARN SourceGenerator:731 - Warning: Do not forget to generate source code for the following imported schema: http://www.loc.gov/standards/xlink.xsd 12:39:33,190 WARN SourceGenerator:731 - Warning: Do not forget to generate source code for the following imported schema: http://www.w3.org/2001/xml.xsd com/test/Mods.java already exists. overwrite(y|n|a|?)a java.lang.IllegalArgumentException: Duplicate name found as a class member: _type at org.exolab.javasource.JClass.addField(JClass.java:172) at org.exolab.castor.builder.FieldInfo.createJavaField(FieldInfo.java:183) at org.exolab.castor.builder.SourceFactory.handleField(SourceFactory.java:1916) at org.exolab.castor.builder.SourceFactory.processAttributes(SourceFactory.java:1554) at org.exolab.castor.builder.SourceFactory.processComplexType(SourceFactory.java:1674) at org.exolab.castor.builder.SourceFactory.processComplexType(SourceFactory.java:633) at org.exolab.castor.builder.SourceFactory.createSourceCode(SourceFactory.java:340) at org.exolab.castor.builder.SourceGenerator.processComplexType(SourceGenerator.java:903) at org.exolab.castor.builder.SourceGenerator.generateAllClassFiles(SourceGenerator.java:693) at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:654) at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:595) at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:497) at org.exolab.castor.builder.SourceGeneratorMain.main(SourceGeneratorMain.java:245) Any ideas? Thanks. -- View this message in context: http://www.nabble.com/SourceGenerator-and-MODS-schema-tf3078632.html#a8553456 Sent from the Castor - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

