I had the same problem, and simply got the response from the developers that
"it works on their machine". I haven't found exactly where your problem is,
but you can find out by debugging the castor source, although this can be
tricky. Basically, you have "groups" (see castor.org for details of
supported groups) in your schema, and castor needs the groups to have "name"
attributes, although this will then break compliance with w3c
recommendation. I did it anyway, and the sourcegenerator worked fine.
good luck.
kipz.
----- Original Message -----
From: Riviere, Brian <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 23, 2001 5:13 PM
Subject: [castor-dev] Any idea why castor cannot compile this schema?
> Any idea why castor cannot compile this schema?
>
> > <<rulebase.xsd>>
> >
> java.lang.IllegalArgumentException: Only named groups are currently by the
MemberFactory
> > at
org.exolab.castor.builder.MemberFactory.createFieldInfo(MemberFactory.java:4
76)
> > at
org.exolab.castor.builder.SourceFactory.processContentModel(SourceFactory.ja
va:1372)
> > at
org.exolab.castor.builder.SourceFactory.processContentModel(SourceFactory.ja
va:1377)
> > at
org.exolab.castor.builder.SourceFactory.processComplexType(SourceFactory.jav
a:1237)
> > at
org.exolab.castor.builder.SourceFactory.createSourceCode(SourceFactory.java:
228)
> > at
org.exolab.castor.builder.SourceGenerator.createClasses(SourceGenerator.java
:725)
> > at
org.exolab.castor.builder.SourceGenerator.createClasses(SourceGenerator.java
:679)
> > at
org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.jav
a:323)
> > at
org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.jav
a:381)
> > at
org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.jav
a:394)
> > at
org.exolab.castor.tools.XSDCompiler.execute(XSDCompiler.java:154)
> > at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:124)
> > at org.apache.tools.ant.Target.execute(Target.java:153)
> > at org.apache.tools.ant.Project.runTarget(Project.java:898)
> > at org.apache.tools.ant.Project.executeTarget(Project.java:536)
> > at org.apache.tools.ant.Project.executeTargets(Project.java:510)
> > at org.apache.tools.ant.Main.runBuild(Main.java:421)
> > at org.apache.tools.ant.Main.main(Main.java:149)
>
>
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev