xml-xmlbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noah Campbell <noahcampb...@gmail.com>
Subject Re: scomp does not compile standard IFX or ACORD schemas
Date Wed, 07 Jul 2004 17:04:16 GMT
I tried getting the IFX150_XSD to compile on my machine and it would
crash.  What JVM were you using?

On Wed, 07 Jul 2004 08:07:48 -0700, Lachlan Paterson <lachlan@post.com> wrote:
> Great, thanks, I missed seeing that -noupa option. Now IFX1.5 compiles.
> 
> java -classpath $XMLBEANDIR/xbean.jar com.bea.xbean.tool.SchemaCompiler -noupa IFX150_XSD.xsd
> Loading schema file IFX150_XSD.xsd
> Time to build schema type system: 8.18 seconds
> Time to generate code: 422.75 seconds
> Compiled types to xmltypes.jar
> 
> I'm not aure about ACORD yet.
> -Lachlan
> 
> 
> 
> 
> ----- Original Message -----
> From: "Radu Preotiuc-Pietro" <radup@bea.com>
> Date: Tue, 6 Jul 2004 18:39:26 -0700
> To: <xmlbeans-user@xml.apache.org>
> Subject: RE: scomp does not compile standard IFX or ACORD schemas
> 
> > I haven't looked at the first Schema, is it actually invalid or is an XMLBeans bug?
> > If the Schema is invalid, you can use the '-noupa' command-line option to scomp
to skip this check.
> >
> > Radu
> >
> > -----Original Message-----
> > From: Noah Campbell [mailto:noahcampbell@gmail.com]
> > Sent: Tuesday, July 06, 2004 5:58 PM
> > To: xmlbeans-user@xml.apache.org
> > Subject: Re: scomp does not compile standard IFX or ACORD schemas
> >
> >
> > I'm using v2 (latest snapshot).  I think in a recent post some
> > mentioned that the schema is invalid.  Perhaps XMLBeans is too good
> > and might need a lax  parser.
> >
> > I get the following:
> >
> > C:\Temp\IFX1.5-XSD-DTD>scomp IFX150_XSD.xsd
> > [JAM] Warning: This build of JAM was not with JDK 1.5.Even though you are now ru
> > nning under JDK 1.5, JSR175-style annotations will not be available
> > C:\Temp\IFX1.5-XSD-DTD\IFX150_XSD.xsd:0: error: Content model violates the uniqu
> > e particle attribution rule
> > Time to build schema type system: 7.438 seconds
> > BUILD FAILED
> > C:\Temp\IFX1.5-XSD-DTD>
> >
> > On Tue, 06 Jul 2004 14:30:44 -0700, Lachlan Paterson <lachlan@post.com> wrote:
> > > Has anyone else tried these standard schemas from the banking and insurance
industries?
> > >
> > > When I try to compile the IFX 1.5 schema, it complains that:
> > > IFX150_XSD.xsd:12424: error: Content model violates the unique particle attribution
rule
> > > As with my simple <xs:choices> example, this schema passes the w3.org
validation, but does not compile with XML beans.
> > >
> > > When I try to compile the ACORD 1.3 schema, acord-pc-v1_3_0-fulldoc-codes.xsd,
it simply crashes like this:
> > >
> > > java -classpath $XMLBEANDIR/xbean.jar com.bea.xbean.tool.SchemaCompiler acord-pc-v1_3_0-fulldoc-nocodes.xsd
> > > Loading schema file acord-pc-v1_3_0-fulldoc-nocodes.xsd
> > > Loading referenced file acord-doc.xsd
> > > Time to build schema type system: 17.923 seconds
> > > Exception in thread "main" com.bea.xml.SchemaTypeLoaderException: null (schema.system.s0C043B8F3E836BA5CB9A92B6A08E35BD.insurancesvcspirqmsgsmodelgroup)
- code 9
> > >        at com.bea.xbean.schema.SchemaTypeSystemImpl$StringPool.writeTo(SchemaTypeSystemImpl.java:608)
> > >        at com.bea.xbean.schema.SchemaTypeSystemImpl$XsbReader.writeRealHeader(SchemaTypeSystemImpl.java:1120)
> > >        at com.bea.xbean.schema.SchemaTypeSystemImpl.saveModelGroup(SchemaTypeSystemImpl.java:944)
> > >        at com.bea.xbean.schema.SchemaTypeSystemImpl.saveModelGroups(SchemaTypeSystemImpl.java:895)
> > >        at com.bea.xbean.schema.SchemaTypeSystemImpl.saveToDirectory(SchemaTypeSystemImpl.java:857)
> > >        at com.bea.xbean.tool.SchemaCodeGenerator.compileTypeSystem(SchemaCodeGenerator.java:52)
> > >        at com.bea.xbean.tool.SchemaCompiler.compileImpl(SchemaCompiler.java:547)
> > >        at com.bea.xbean.tool.SchemaCompiler.main(SchemaCompiler.java:141)
> > >
> > > - ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
> > > For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
> > > Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/
> > >
> > >
> >
> > - ---------------------------------------------------------------------
> > To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
> > For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
> > Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/
> >
> >
> > - ---------------------------------------------------------------------
> > To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
> > For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
> > Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/
> >
> 
> - ---------------------------------------------------------------------
> To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
> Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/
> 
>

- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


Mime
View raw message