Madden:
I use exolab SourceGenerator to generate java source files. The schema
files are downloaded from Open Travel Alliance web site (2002A).
Two error occured while trying to generate the source:
1. SourceGenerator does not support "Language" type and as a result,
it was treated as string. It is not import to me, So I removed the
'xml: lang="en" '. This error is gone when trying to regenerate the
source.
2. See following exception trace:
Exception in thread "main" java.lang.IllegalArgumentException: 'null'
is not a valid Java identifier.
at org.exolab.javasource.JClass.<init>(Unknown Source)
at org.exolab.castor.builder.TypeConversion.convertType(Unknown
Source)
at
org.exolab.castor.builder.MemberFactory.createFieldInfo(Unknown Source)
at
org.exolab.castor.builder.SourceFactory.processAttributes(Unknown
Source)
at
org.exolab.castor.builder.SourceFactory.processComplexType(Unknown
Source)
at
org.exolab.castor.builder.SourceFactory.createSourceCode(Unknown
Source)
at
org.exolab.castor.builder.SourceFactory.processComplexType(Unknown
Source)
at
org.exolab.castor.builder.SourceFactory.createSourceCode(Unknown
Source)
at
org.exolab.castor.builder.SourceFactory.processContentModel(Unknown
Source)
at
org.exolab.castor.builder.SourceFactory.processContentModel(Unknown
Source)
at
org.exolab.castor.builder.SourceFactory.processComplexType(Unknown
Source)
at
org.exolab.castor.builder.SourceFactory.createSourceCode(Unknown
Source)
at
org.exolab.castor.builder.SourceGenerator.createClasses(Unknown Source)
at
org.exolab.castor.builder.SourceGenerator.createClasses(Unknown Source)
at
org.exolab.castor.builder.SourceGenerator.generateSource(Unknown
Source)
at
org.exolab.castor.builder.SourceGenerator.generateSource(Unknown
Source)
at
org.exolab.castor.builder.SourceGenerator.generateSource(Unknown
Source)
at org.exolab.castor.builder.SourceGenerator.main(Unknown
Source)
The jar castor-0.9.3.19.jar is in my classpath. The command I use is
java org.exolab.castor.builder.SourceGenerator -i OTA_HotelAvailRS.xsd
-package com -dest d:\qd
Is anything I did wrong? Please advise me or tell me if there is a
user group on castro. Thank you very much.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev