Thanks for the reply.

I am attaching the XSD which is giving the problem with this.

Will this line cause the problem-

<xsd:element ref = "Type" minOccurs = "0"/>

I have the question here-   Can there be a name with "Type" in the XML schema.

The version of castor I am using is the sourcegenerator class file in the jar file with name - castor-0.9.3.9+-xml.jar.

Thanks,
Uma



-----Original Message-----
From: John Weir [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 15, 2005 5:33 PM
To: castor-dev@exolab.org
Subject: Re: [castor-dev] Error in compiling XSDs



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

Attachment: GetOrderDetail.xsd
Description: GetOrderDetail.xsd

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to