Build fails with JDK 1.5
Scott Brickner
scottb at brickner.net
Thu Nov 11 10:37:18 EST 2004
The "dpml-planet-http-impl" target fails when I build with 1.5 on Fedora
Core 2. While this appears to be a bug in the 1.5 compiler, a fix for it
is (at least) months away. Furthermore, "ant clean" doesn't back things
out far enough to recover - subsequent runs of ant with JDK 1.4.2 report
"java.lang.UnsupportedClassVersionError: net/dmpl/tools/model/Magic
(Unsupported major.minor version 49.0)" - which isn't particularly
unexpected, just a nuisance.
Here's the relevant ant output:
info:
------------------------------------------------------------------------
name: dpml-planet-http-impl
------------------------------------------------------------------------
init:
[plugin] Install "plugin:dpml/meta/dpml-meta-tools"
[plugin] Task "plugin:dpml/meta/dpml-meta-tools:meta"
prepare:
[x:prepare] creating target directory
[x:prepare] Created dir:
/home/scottb/projects/dpml-main/planet/facilities/http/impl/target
[x:prepare] creating test directory
[x:prepare] Created dir:
/home/scottb/projects/dpml-main/planet/facilities/http/impl/target/test
[x:prepare] Created dir:
/home/scottb/projects/dpml-main/planet/facilities/http/impl/target/build/main
[x:prepare] Copying 38 files to
/home/scottb/projects/dpml-main/planet/facilities/http/impl/target/build/main
[x:prepare] Copying 1 file to
/home/scottb/projects/dpml-main/planet/facilities/http/impl/target/build/main
[x:prepare] Copying 1 file to
/home/scottb/projects/dpml-main/planet/facilities/http/impl/target/build
[x:prepare] Copying 7 files to
/home/scottb/projects/dpml-main/planet/facilities/http/impl/target/build
[meta] Writing descriptors using 'xml' format.
[meta] Processed 30 Types and 0 Services from a total of 31 classes.
standard.build:
[x:javac] Compiling 31 source files to
/home/scottb/projects/dpml-main/planet/facilities/http/impl/target/classes
[x:reactor] An exception has occurred in the compiler (1.5.0). Please
file a bug at the Java Developer Connection
(http://java.sun.com/webapps/bugreport) after checking the Bug Parade
for duplicates. Include your program and the following diagnostic in
your report. Thank you.
[x:reactor] com.sun.tools.javac.code.Symbol$CompletionFailure: file
javax/servlet/http/HttpServletRequest.class not found
BUILD FAILED
/home/scottb/projects/dpml-main/build.xml:35: The following error
occurred while executing this line:
/home/scottb/.dpml/templates/reactor.xml:46: The following error
occurred while executing this line:
/home/scottb/.dpml/templates/standard.xml:38: Compile failed; see the
compiler error output for details.
More information about the support-dpml
mailing list