Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 240970 - [java-overlay] emerge of netbeans-6.1-r1 failed because of java.lang.NoClassDefFoundError
Summary: [java-overlay] emerge of netbeans-6.1-r1 failed because of java.lang.NoClassD...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-10 08:06 UTC by Juergen Rose
Modified: 2008-11-21 01:22 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 Juergen Rose 2008-10-10 08:06:35 UTC
emerge of netbeans-6.1-r1 failed failed with:

xjc-init:

model-gen:
      [xjc] /var/tmp/portage/dev-util/netbeans-6.1-r1/work/netbeans-6.1/websvc.saas.api/src/org/netbeans/modules/websvc/saas/model/jaxb is not found and thus excluded from the dependency check
      [xjc] Compiling file:/var/tmp/portage/dev-util/netbeans-6.1-r1/work/netbeans-6.1/websvc.saas.api/src/org/netbeans/modules/websvc/saas/model/SaasServices.xsd
  [nbmerge] Failed to build target: all-websvc.saas.api

BUILD FAILED
/var/tmp/portage/dev-util/netbeans-6.1-r1/work/netbeans-6.1/nbbuild/build.xml:709: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.1-r1/work/netbeans-6.1/nbbuild/build.xml:704: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.1-r1/work/netbeans-6.1/nbbuild/build.xml:743: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.1-r1/work/netbeans-6.1/nbbuild/build.xml:725: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.1-r1/work/netbeans-6.1/nbbuild/build.xml:704: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.1-r1/work/netbeans-6.1/nbbuild/build.xml:754: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.1-r1/work/netbeans-6.1/websvc.saas.api/build.xml:102: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException

Total time: 19 minutes 12 seconds
 * 
 * ERROR: dev-util/netbeans-6.1-r1 failed.


Reproducible: Always




cheetah ~ # emerge --info
Portage 2.2_rc12 (default-linux/x86/2007.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-rc7 i686)
=================================================================
System uname: Linux-2.6.27-rc7-i686-AMD_Athlon-tm-_XP_1800+-with-glibc2.0
Timestamp of tree: Fri, 10 Oct 2008 04:01:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.4.4-r15, 2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r8
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
FFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo rsync://gd.tuwien.ac.at/opsys/linux/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://gentoo.oregonstate.edu"
LDFLAGS=""
LINGUAS="de fr"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/n4g /usr/local/portage/layman/science /usr/local/portage/layman/java-overlay /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d a52 aac acl acpi administrator afs aiglx alsa amrr ao aotuv apache2 asf atlas auctex audacious audiofile automount bash-completion beagle berkdb bjam blas bluetooth bonobo boo boost bzip2 c++ cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli corba cracklib cran crypt cups curl cxx daap dbus device-mapper dga dia divx djvu dlloader dmi dri ds3490 dv dvb dvd dvdr dvi dxr3 dynagraph eds effects elf emacs emboss encode epiphany esd evo examples exif expat extra fam fame ffmpeg fftw firefox fits flac fltk foomaticdb fortran fpx galago gd gdal gdbm geos gif gimp gimpprint ginac glade glitz gml gmp gnokii gnome gnuplot gnutls gphoto2 gpm graphics graphviz gs gsl gsm gstreamer gtk guile hal hardened hddtemp hdf hdf5 hlapi http iconv icq icu id3 imagemagick imap innodb ipv6 irda irmc isdnlog ithreads jabber java jbig john jpeg jpeg2k kerberos kexi keyring ladspa lame lapack latex lcms ldap libffi libgda libsamplerate lirc lm_sensors lua lzo lzw mad maildir math matroska matrox midi mmx mmxext mng mod mono motif mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mplayer mudflap musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs numarray numeric obex ocaml octave odbc ogdi ogg ole opengl openmp pam pcre pda pdf perl plotutils plugins png posix postgres postscript pppd preview-latex proj projectx pstricks python qhull quicktime readline real reflection reiserfs rhythmbox rle rpc rrdcgi rrdtool samba sasl science sdl session slang slp sndfile snmp soup sox speex spell spl sqlite sse ssl stlport subtitles subversion suexec svg sysfs t1lib tcl tcpd tex theora threads thunderbird tidy tiff tk truetype unicode userlocales utempter v4l2 vorbis win32codecs wmf wxwindows x86 xattr xemacs xext xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse                " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" LIRC_DEVICES="hauppauge" USERLAND="GNU" VIDEO_CARDS="mga matrox vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Miroslav Šulc gentoo-dev 2008-10-10 13:46:10 UTC
What JDK is used to compile netbeans and what compiler?
Comment 2 Juergen Rose 2008-10-10 22:06:03 UTC
Java-config shows sun-jdk-1.6:

root@cheetah:/root(49)# java-config -L
The following VMs are available for generation-2:
1)      Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2]
2)      Sun JDK 1.5.0.16 [sun-jdk-1.5]
*)      Sun JDK 1.6.0.07 [sun-jdk-1.6]
Comment 3 Miroslav Šulc gentoo-dev 2008-10-11 10:02:40 UTC
Well, netbeans forces usage of JDK 1.5, so it cannot be JDK 1.6, but looks like it uses Sun JDK. Anyway used JDK and compiler should be part of the failure message at the end of the output. So please paste it here.

I tried to reproduce the failure but no success.
Comment 4 Juergen Rose 2008-10-11 21:30:34 UTC
I can't reach the computer cheetah today were the error originally has happend.
But the same error occurs also at grizzly. There I have the following error message:

model-gen:
      [xjc] /var/tmp/portage/dev-util/netbeans-6.1-r1/work/netbeans-6.1/websvc.saas.api/src/org/netbeans/modules/websvc/saas/model/jaxb is not 
found and thus excluded from the dependency check
      [xjc] Compiling file:/var/tmp/portage/dev-util/netbeans-6.1-r1/work/netbeans-6.1/websvc.saas.api/src/org/netbeans/modules/websvc/saas/mod
el/SaasServices.xsd
  [nbmerge] Failed to build target: all-websvc.saas.api

BUILD FAILED
/var/tmp/portage/dev-util/netbeans-6.1-r1/work/netbeans-6.1/nbbuild/build.xml:709: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.1-r1/work/netbeans-6.1/nbbuild/build.xml:704: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.1-r1/work/netbeans-6.1/nbbuild/build.xml:743: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.1-r1/work/netbeans-6.1/nbbuild/build.xml:725: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.1-r1/work/netbeans-6.1/nbbuild/build.xml:704: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.1-r1/work/netbeans-6.1/nbbuild/build.xml:754: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.1-r1/work/netbeans-6.1/websvc.saas.api/build.xml:102: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBE
xception

Total time: 21 minutes 24 seconds
 * 
 * ERROR: dev-util/netbeans-6.1-r1 failed.
 * Call stack:
 * ebuild.sh, line   49:  Called src_compile
 * environment, line 4309:  Called eant '-Dstop.when.broken.modules=true' '-Dbuild.compiler.deprecation=false' '-Dnb.clusters.list=nb.cluster.p
latform,nb.cluster.apisupport,nb.cluster.cnd,nb.cluster.gsf,nb.cluster.harness,nb.cluster.ide,nb.cluster.identity,nb.cluster.j2ee,nb.cluster.ja
va,nb.cluster.mobility,nb.cluster.nb,nb.cluster.php,nb.cluster.profiler,nb.cluster.ruby,nb.cluster.soa,nb.cluster.uml,nb.cluster.visualweb,nb.c
luster.xml' 'build-nozip'
 * environment, line 1005:  Called die
 * The specific snippet of code:
 * ant ${antflags} "${@}" || die "eant failed"
 * The die message:
 * eant failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-util/netbeans-6.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/netbeans-6.1-r1/temp/environment'.
 * This ebuild is from an overlay: '/usr/local/portage/layman/java-overlay/'
 * 
!!! 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.16"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER="javac"
and of course, the output of emerge --info

>>> Failed to emerge dev-util/netbeans-6.1-r1, Log file:

I hope it helps.

Juergen

Comment 5 Miroslav Šulc gentoo-dev 2008-10-12 09:24:45 UTC
Thanks, the output shows nothing strange. You use exactly the same JDK and compiler as me. What use flags do you use to build nb 6.1?
Comment 6 Juergen Rose 2008-10-12 10:07:20 UTC
root@grizzly:/root(1)# emerge -pvD netbeans

These are the packages that would be merged, in order:

Calculating dependencies   waiting for lock on /var/db/.pkg.portage_lockfile
# before ''compare_two_dirs  usr/share/pixmaps /'' (RUNLEVEL=3)
 - * Digest verification failed:
 * /usr/local/portage/layman/java-overlay/dev-java/gcj-jdk/gcj-jdk-4.3.ebuild
 * Reason: Filesize does not match recorded size
 * Got: 3060
 * Expected: 3068
... done!
[ebuild     U ] perl-core/Sys-Syslog-0.27 [0.26] 75 kB [0]
[ebuild     U ] virtual/perl-Sys-Syslog-0.27 [0.26] 0 kB [0]
[ebuild     U ] x11-themes/gnome-icon-theme-2.24.0 [2.22.0] USE="(-debug%)" 3,405 kB [0]
[ebuild  NS   ] dev-util/netbeans-6.1-r1 [5.5.1-r1] USE="apisupport cnd gsf harness ide identity j2ee java mobility nb php profiler ruby soa uml visualweb xml -debug -doc" LINGUAS="de -es -ja -pt_BR -sq -zh_CN" 0 kB [1]

Total: 4 packages (3 upgrades, 1 in new slot), Size of downloads: 3,480 kB
Comment 7 Miroslav Šulc gentoo-dev 2008-10-12 12:44:51 UTC
I am not able to reproduce the bug. In fact netbeans 6.1 uses everything bundled as packaged by upstream so it's weird it fails. It would be interesting if you could unpack the upstream tarball to a directory and run `ant -f nbbuild/build.xml build-nozip` to see whether it fails. So we could say either it's upstream/environment problem or problem of the ebuild.
Comment 8 thomas 2008-10-15 13:06:10 UTC
Same here, see some info on this thread :

http://forums.gentoo.org/viewtopic-t-711264.html
Comment 9 thomas 2008-10-15 13:42:06 UTC
(In reply to comment #7)
> I am not able to reproduce the bug. In fact netbeans 6.1 uses everything
> bundled as packaged by upstream so it's weird it fails. It would be interesting
> if you could unpack the upstream tarball to a directory and run `ant -f
> nbbuild/build.xml build-nozip` to see whether it fails. So we could say either
> it's upstream/environment problem or problem of the ebuild.
> 

here is the result on my computer :

build-init:

-init-proxy:

init:

xjc-init:

model-gen:
      [xjc] /usr/portage/distfiles/netbeans-6.1/websvc.saas.api/src/org/netbeans/modules/websvc/saas/model/jaxb is not found and thus excluded from the dependency check
      [xjc] Compiling file:/usr/portage/distfiles/netbeans-6.1/websvc.saas.api/src/org/netbeans/modules/websvc/saas/model/SaasServices.xsd
  [nbmerge] Failed to build target: all-websvc.saas.api

BUILD FAILED
/usr/portage/distfiles/netbeans-6.1/nbbuild/build.xml:709: The following error occurred while executing this line:
/usr/portage/distfiles/netbeans-6.1/nbbuild/build.xml:704: The following error occurred while executing this line:
/usr/portage/distfiles/netbeans-6.1/nbbuild/build.xml:754: The following error occurred while executing this line:
/usr/portage/distfiles/netbeans-6.1/websvc.saas.api/build.xml:102: java.lang.NoClassDefFoundError: com/sun/xml/bind/v2/runtime/JAXBContextImpl

Total time: 7 minutes 52 seconds

Comment 10 Miroslav Šulc gentoo-dev 2008-11-21 01:22:32 UTC
netbeans 6.1 will not reach the main tree, instead try netbeans 6.5 from the main tree (just committed) and file a new bug if the problem persists.