Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 41414
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Java team <java@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Joe Khoobyar <joe@ankhcraft.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 41414 depends on: Show dependency tree
Bug 41414 blocks: 42850
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-02-12 13:57 0000
When trying to:

emerge -vu dev-java/ant

the build fails with a java.lang.NoClassDefFoundError

Reproducible: Always
Steps to Reproduce:
emerge -vu dev-java/ant

Actual Results:  
16:51:25 (326.64 KB/s) - `/usr/portage/distfiles/apache-ant-1.6.0-src.tar.bz2'
saved [6217526/6217526]

>>> md5 src_uri ;-) apache-ant-1.6.0-src.tar.bz2
>>> Unpacking source...
>>> Unpacking apache-ant-1.6.0-src.tar.bz2 to /var/tmp/portage/ant-1.6.0-r3/work
RUNNING FROM extra_functions.sh
 * Applying build.sh-exit-fix.patch.gz...                                      
                                                    [ ok ]
>>> Source unpacked.
... Bootstrapping Ant Distribution
... Compiling Ant Classes
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
... Copying Required Files
... Building Ant Distribution
Buildfile: build.xml

BUILD FAILED
java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Locator
        at org.apache.tools.ant.util.FileUtils.fromURI(FileUtils.java:1329)
        at org.apache.tools.ant.Location.<init>(Location.java:125)
        at
org.apache.tools.ant.helper.ProjectHelper2$ElementHandler.onStartElement(ProjectHelper2.java:955)
        at
org.apache.tools.ant.helper.ProjectHelper2$RootHandler.startElement(ProjectHelper2.java:491)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
        at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:247)
        at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:170)
        at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:126)
        at org.apache.tools.ant.Main.runBuild(Main.java:654)
        at org.apache.tools.ant.Main.startAnt(Main.java:220)
        at org.apache.tools.ant.Main.start(Main.java:184)
        at org.apache.tools.ant.Main.main(Main.java:267)

Total time: 0 seconds
java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Locator
        at org.apache.tools.ant.util.FileUtils.fromURI(FileUtils.java:1329)
        at org.apache.tools.ant.Location.<init>(Location.java:125)
        at
org.apache.tools.ant.helper.ProjectHelper2$ElementHandler.onStartElement(ProjectHelper2.java:955)
        at
org.apache.tools.ant.helper.ProjectHelper2$RootHandler.startElement(ProjectHelper2.java:491)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
        at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:247)
        at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:170)
        at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:126)
        at org.apache.tools.ant.Main.runBuild(Main.java:654)
        at org.apache.tools.ant.Main.startAnt(Main.java:220)
        at org.apache.tools.ant.Main.start(Main.java:184)
        at org.apache.tools.ant.Main.main(Main.java:267)
org/apache/tools/ant/launch/Locator
... Failed Building Ant Distribution !
Bootstrap FAILED

!!! ERROR: dev-java/ant-1.6.0-r3 failed.
!!! Function src_compile, Line 41, Exitcode 1
!!! (no error message)

Expected Results:  
built and merged successfully

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040207-r0,
2.6.1-gentoo-r1)
=================================================================
System uname: 2.6.1-gentoo-r1 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.4.3.13
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /opt/tomcat/conf /usr/X11R6/lib/X11/xkb
/usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://128.213.5.34/gentoo/ http://mirrors.tds.net/gentoo
http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.netnitco.net
http://cudlug.cudenver.edu/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa apache2 apm arts avi berkdb bonobo cdr crypt cups
directfb encode esd foomaticdb gdbm ggi gif gnome gpm gtk gtk2 imlib java jpeg
kde ldap libg++ libwww mad mikmod mmx motif mozilla mpeg mysql nas ncurses
oggvorbis opengl oss pam pdflib perl png python qt quicktime readline scanner
sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype video_cards_savage
x86 xml2 xmms xv zlib"

------- Comment #1 From Don Seiler (RETIRED) 2004-02-12 14:37:52 0000 -------
This may be a dupe of Bug #38874

------- Comment #2 From Joe Khoobyar 2004-02-12 19:43:06 0000 -------
It definitely doesn't look like a dupe of that bug to me.  I don't even think
that they are the same package.

The problems are similar in cause, however, since missing jars lead to missing
classes, but unlike that other bug, the ebuild completely fails here.  Also,
this is the 'ant' package not the 'ant-optional' package.

------- Comment #3 From Chetan Sarva 2004-02-13 15:09:55 0000 -------
That bug was indeed referring to ant-optional, however I got the same error
when trying to re-emerge ant once it was already installed. I was able to fix
with:

# java-config --clean-system-classpath
# env-update && source /etc/profile
# emerge ant

------- Comment #4 From Dylan Carlson (RETIRED) 2004-02-25 00:35:34 0000 -------
ant-1.6.0 is going into package.mask for now.  Too many problems & the tree
needs to be tested against it.    Please merge 1.5.4.  We cannot support 1.6.0
yet.  

If you want to use 1.6.0 on your own, download it, then put the distributables
somewhere on your system, and update your CLASSPATH via java-config so that
your desired version of ant takes precedence over 1.5.4.

------- Comment #5 From Chris Aniszczyk (RETIRED) 2004-03-11 12:44:24 0000 -------
Fixed in the new ant 1.6.1, try it out, it just got unmasked :)

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug