Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289078 - dev-java/istack-commons-runtime-20090620: build fails with sun-jdk-1.5 due to lack of stax api
Summary: dev-java/istack-commons-runtime-20090620: build fails with sun-jdk-1.5 due to...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-14 18:26 UTC by Martin von Gagern
Modified: 2009-10-16 12:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2009-10-14 18:26:19 UTC
compile:
    [mkdir] Created dir: /var/tmp/portage/dev-java/istack-commons-runtime-20090620/work/istack-commons-20090620/runtime/build/classes
    [javac] Compiling 17 source files to /var/tmp/portage/dev-java/istack-commons-runtime-20090620/work/istack-commons-20090620/runtime/build/classes
    [javac] /var/tmp/portage/dev-java/istack-commons-runtime-20090620/work/istack-commons-20090620/runtime/src/com/sun/istack/XMLStreamException2.java:3: package javax.xml.stream does not exist
    [javac] import javax.xml.stream.XMLStreamException;
    [javac]                         ^

...

    [javac] 40 errors

BUILD FAILED
/var/tmp/portage/dev-java/istack-commons-runtime-20090620/work/istack-commons-20090620/build-common.xml:14: Compile failed; see the compiler error output for details.

Total time: 2 seconds
 * ERROR: dev-java/istack-commons-runtime-20090620 failed:
 *   eant failed
 * 
 * Call stack:
 *     ebuild.sh, line   49:  Called src_compile
 *   environment, line 4319:  Called java-pkg-2_src_compile
 *   environment, line 2374:  Called eant 'jar' '-f' 'runtime/build.xml'
 *   environment, line  951:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 * 
 * If you need support, post the output of 'emerge --info =dev-java/istack-commons-runtime-20090620',
 * the complete build log and the output of 'emerge -pqv =dev-java/istack-commons-runtime-20090620'.
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.5  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.5.0.21"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER="javac"

The package should depend on java-virtuals/stax-api and make sure that the corresponding JAR files if any are included in the classpath as well.

Possible workaround:
JAVA_PKG_FORCE_VM=sun-jdk-1.6 emerge -1 =istack-commons-runtime-20090620
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2009-10-16 12:52:47 UTC
Fixed. Thanks for reporting.