Hi all
When I try to generate JAXP for a XSD using the ant task "com.sun.tools.xjc.XJCTask" i get a: java.lang.NoSuchFieldError: BOOLEAN
This is what i get when I run the task in verbose mode. :-
ant -verbose -f jaxb.xml
Apache Ant version 1.6.2 compiled on June 28 2005
Buildfile: jaxb.xml
Detected Java version: 1.4 in: c:\j2sdk1.4.2_08\jre
Detected OS: Windows 2000
parsing buildfile D:\server\jaxb.xml with URI = file:///D:/server/jaxb.xml
Project base dir set to: D:\server
[property] Loading D:\server\build.props
Build sequence for target `compile.jaxb.gen' is [xjc.gen, compile.jaxb.gen]
Complete build sequence is [xjc.gen, compile.jaxb.gen, remove.gen.java, remove.cl
ases, cleancompile, ]
xjc.gen:
[echo] Compiling the schema...
[xjc] build id of XJC is 1.0.4-b18-fcs
[xjc] Checking timestamp of D:\server\util\classes\j2ee_dtds\j2ee_jaxrpc_ma
pping_1_1.xsd
[xjc] Checking timestamp of D:\server\util\classes\j2ee_dtds\j2ee_jaxrpc_ma
pping_1_1.xsd
[xjc] the last modified time of ths inputs is 1139399266000
[xjc] the last modified time of the outputs is -9223372036854775808
[xjc] Compiling file:/D:/server/util/classes/j2ee_dtds/j2ee_jaxrpc_mapping_
1_1.xsd
[xjc] [INFO] Using Xerces from jar:file:/D:/server/lib/tp_build/jaxb_gen/ja
xp/lib/endorsed/xercesImpl.jar!/com/sun/org/apache/xerces/internal/impl/Version.c
lass
[xjc] unknown location
[xjc] [WARNING] warning: <key> identity constraint will be ignored by JAXB
validation
[xjc] line 117 of j2ee_web_services_client_1_1.xsd
BUILD FAILED
java.lang.NoSuchFieldError: BOOLEAN
at org.apache.tools.ant.Project.executeTarget(Project.java:1223)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.Main.runBuild(Main.java:673)
at org.apache.tools.ant.Main.startAnt(Main.java:188)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
Caused by: java.lang.NoSuchFieldError: BOOLEAN
at com.sun.tools.xjc.grammar.xducer.BuiltinDatatypeTransducerFactory._get
WithoutWhitespaceNormalization(BuiltinDatatypeTransducerFactory.java:175)
at com.sun.tools.xjc.grammar.xducer.BuiltinDatatypeTransducerFactory.getW
ithoutWhitespaceNormalization(BuiltinDatatypeTransducerFactory.java:137)
at com.sun.tools.xjc.reader.xmlschema.ConversionFinder.<init>(ConversionF
inder.java:106)
at com.sun.tools.xjc.reader.xmlschema.SimpleTypeBuilder.<init>(SimpleType
Builder.java:54)
at com.sun.tools.xjc.reader.xmlschema.BGMBuilder.<init>(BGMBuilder.java:3
30)
at com.sun.tools.xjc.reader.xmlschema.BGMBuilder.build(BGMBuilder.java:84
)
at com.sun.tools.xjc.GrammarLoader.annotateXMLSchema(GrammarLoader.java:4
08)
at com.sun.tools.xjc.GrammarLoader.load(GrammarLoader.java:127)
at com.sun.tools.xjc.GrammarLoader.load(GrammarLoader.java:76)
at com.sun.tools.xjc.XJCTask._doXJC(XJCTask.java:356)
at com.sun.tools.xjc.XJCTask.doXJC(XJCTask.java:305)
at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:245)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
... 5 more
--- Nested Exception ---
java.lang.NoSuchFieldError: BOOLEAN
at com.sun.tools.xjc.grammar.xducer.BuiltinDatatypeTransducerFactory._get
WithoutWhitespaceNormalization(BuiltinDatatypeTransducerFactory.java:175)
at com.sun.tools.xjc.grammar.xducer.BuiltinDatatypeTransducerFactory.getW
ithoutWhitespaceNormalization(BuiltinDatatypeTransducerFactory.java:137)
at com.sun.tools.xjc.reader.xmlschema.ConversionFinder.<init>(ConversionF
inder.java:106)
at com.sun.tools.xjc.reader.xmlschema.SimpleTypeBuilder.<init>(SimpleType
Builder.java:54)
at com.sun.tools.xjc.reader.xmlschema.BGMBuilder.<init>(BGMBuilder.java:3
30)
at com.sun.tools.xjc.reader.xmlschema.BGMBuilder.build(BGMBuilder.java:84
)
at com.sun.tools.xjc.GrammarLoader.annotateXMLSchema(GrammarLoader.java:4
08)
at com.sun.tools.xjc.GrammarLoader.load(GrammarLoader.java:127)
at com.sun.tools.xjc.GrammarLoader.load(GrammarLoader.java:76)
at com.sun.tools.xjc.XJCTask._doXJC(XJCTask.java:356)
at com.sun.tools.xjc.XJCTask.doXJC(XJCTask.java:305)
at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:245)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.Main.runBuild(Main.java:673)
at org.apache.tools.ant.Main.startAnt(Main.java:188)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
Total time: 32 seconds
Any help wud be appreciated.
cheers
bharath