users@jaxb.java.net

Problems with running XJC for JAXB 1.0.2

From: Mark Brouwer <mark.brouwer_at_virgil.nl>
Date: Sun, 26 Oct 2003 21:42:29 +0100

I just upgraded my JAXB 1.0.1 environment to JAXB 1.0.2 and my build
scripts refuse to work. Running in the Ant verbose mode I get output
like provided below. It states an error message should be provided,
while it is not. I'm really wondering whether somebody got the XJC Ant
task (or command line version) working with this new version. (The -nv
option had no effect, but this schema compiled fine for a very long time
with all the previous versions of XJC).

Apache Ant version 1.5.3 compiled on April 9 2003
Buildfile: build.xml
Detected Java version: 1.4 in: /opt/jdk1.4.2/jre
Detected OS: SunOS
parsing buildfile build.xml with URI =
file:/export/home/marbro/workspace/cheiro
n/seven/build/build.xml
Project base dir set to:
/export/home/marbro/workspace/cheiron/seven/build
Build sequence for target `create-jsc-model' is [create-jsc-model]
Complete build sequence is [create-jsc-model, clean,
create-config-model, build-
dev, pack, package-nightly, javadoc, upload-dev, nightly,
compile-jdbm-db, jar-j
dbm-db, build-jdbm-db, distr-unix, compile-xml-config, manual-pdf,
pack-bootpack
, test, jar-xml-config, build-xml-config, format, compile-seven,
compile, packag
e, sign, unix-installer, distr-windows-jre, jar-seven, upload-rel,
copy-jre, com
pile-test, distr-unix-jre, build-rel, distribution, jar, build-seven,
manual-htm
l]

create-jsc-model:
      [xjc] build id of XJC is 1.0.2-b15-fcs
      [xjc] Checking timestamp of
/export/home/marbro/workspace/cheiron/seven/bu
ild/schema/jsc.xsd
      [xjc] Checking timestamp of
/export/home/marbro/workspace/cheiron/seven/bu
ild/jsc.xjb
      [xjc] the last modified time of ths inputs is 1063453403000
      [xjc] the last modified time of the outputs is
-9223372036854775808
      [xjc] Compiling
file:/export/home/marbro/workspace/cheiron/seven/build/sch
ema/jsc.xsd
      [xjc] [INFO] Using Xerces from
jar:file:/export/home/marbro/workspace/chei
ron/tools/xjc/lib/xercesImpl.jar!/org/apache/xerces/impl/Version.class
      [xjc] unknown location


BUILD FAILED
file:/export/home/marbro/workspace/cheiron/seven/build/build.xml:446:
unable to
parse the schema. Error messages should have been provided
        at com.sun.tools.xjc.XJCTask._doXJC(XJCTask.java:334)
        at com.sun.tools.xjc.XJCTask.doXJC(XJCTask.java:283)
        at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:227)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at
org.apache.tools.ant.Project.executeTargets(Project.java:1255)
        at org.apache.tools.ant.Main.runBuild(Main.java:609)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)


P.S. Sorry when I sound a bit depressed, but I fear this update release
will be yet another painful migration process, something that could have
been prevented when beta's were provided before the final.
-- 
Mark Brouwer
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net