Uma, A snippet of Schema would be useful here to help understand what is going on, and the version of Castor that you are using. Also are you doing element or type binding?
John -----Original Message----- From: Palani, Uma Shankar [mailto:[EMAIL PROTECTED] Sent: 15 June 2005 23:29 To: castor-dev@exolab.org; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [castor-dev] Error in compiling XSDs Hi Can you please help in resolving the following problem. I am trying to do the XSD compiling through the castor Source Generator. I am getting this following error while generating the java files from the XSDs. Creating classes for element: GetOrderListResponse java.lang.IllegalArgumentException: duplicate name found: _type at org.exolab.javasource.JClass.addField(JClass.java:242) at org.exolab.castor.builder.FieldInfo.createJavaField(FieldInfo.java:155) at org.exolab.castor.builder.SourceFactory.handleField(SourceFactory.java:1446) at org.exolab.castor.builder.SourceFactory.processContentModel(SourceFactory.ja va:1536) at org.exolab.castor.builder.SourceFactory.processContentModel(SourceFactory.ja va:1571) at org.exolab.castor.builder.SourceFactory.processComplexType(SourceFactory.jav a:1347) at org.exolab.castor.builder.SourceFactory.createSourceCode(SourceFactory.java: 249) at org.exolab.castor.builder.SourceFactory.processContentModel(SourceFactory.ja va:1529) at org.exolab.castor.builder.SourceFactory.processContentModel(SourceFactory.ja va:1571) at org.exolab.castor.builder.SourceFactory.processComplexType(SourceFactory.jav a:1347) at org.exolab.castor.builder.SourceFactory.createSourceCode(SourceFactory.java: 249) at org.exolab.castor.builder.SourceFactory.processContentModel(SourceFactory.ja va:1529) at org.exolab.castor.builder.SourceFactory.processContentModel(SourceFactory.ja va:1571) at org.exolab.castor.builder.SourceFactory.processComplexType(SourceFactory.jav a:1347) at org.exolab.castor.builder.SourceFactory.createSourceCode(SourceFactory.java: 249) at org.exolab.castor.builder.SourceFactory.processContentModel(SourceFactory.ja va:1529) at org.exolab.castor.builder.SourceFactory.processContentModel(SourceFactory.ja va:1571) at org.exolab.castor.builder.SourceFactory.processComplexType(SourceFactory.jav a:1347) at org.exolab.castor.builder.SourceFactory.createSourceCode(SourceFactory.java: 249) at org.exolab.castor.builder.SourceGenerator.createClasses(SourceGenerator.java :809) at org.exolab.castor.builder.SourceGenerator.createClasses(SourceGenerator.java :743) at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.jav a:361) at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.jav a:419) at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.jav a:448) at org.exolab.castor.builder.SourceGenerator.main(SourceGenerator.java:683) Thanks, Uma ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev