Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249412 - dev-util/netbeans-6.5-r1 build failed - jaxb is not found
Summary: dev-util/netbeans-6.5-r1 build failed - jaxb is not found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-30 19:31 UTC by Igor
Modified: 2009-05-03 11:07 UTC (History)
2 users (show)

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


Attachments
/var/tmp/portage/dev-util/netbeans-6.5-r1/temp dir zipped (temp.zip,152.41 KB, application/octet-stream)
2008-12-02 16:36 UTC, Igor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Igor 2008-11-30 19:31:51 UTC
Since 6.5 ebuild hit tree I try to build it every day but I always get the same
error.

Reproducible: Always

Actual Results:  
xjc-init:

model-gen:
      [xjc] /var/tmp/portage/dev-util/netbeans-6.5-r1/work/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.5-r1/work/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.5-r1/work/nbbuild/build.xml:713: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.5-r1/work/nbbuild/build.xml:708: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.5-r1/work/nbbuild/build.xml:743: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.5-r1/work/nbbuild/build.xml:726: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.5-r1/work/nbbuild/build.xml:708: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.5-r1/work/nbbuild/build.xml:743: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.5-r1/work/nbbuild/build.xml:726: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.5-r1/work/nbbuild/build.xml:708: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.5-r1/work/nbbuild/build.xml:754: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.5-r1/work/websvc.saas.api/build.xml:65: java.lang.NoClassDefFoundError: com/sun/xml/bind/v2/runtime/JAXBContextImpl

Total time: 2 minutes 22 seconds
 * 
 * ERROR: dev-util/netbeans-6.5-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4224:  Called eant '-Dstop.when.broken.modules=true' '-Dpermit.jdk6.builds=true' '-Dbuild.compiler.deprecation=false' '-Dnb.clusters.list=nb.cluster.platform,nb.cluster.apisupport,nb.cluster.cnd,nb.cluster.harness,nb.cluster.ide,nb.cluster.java,nb.cluster.nb,nb.cluster.websvccommon,nb.cluster.xml' '-f' 'nbbuild/build.xml' 'build-nozip'
 *             environment, line  944:  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.5-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/netbeans-6.5-r1/temp/environment'.
 * 
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.10"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER="javac"
and of course, the output of emerge --info


Portage 2.1.6_rc2 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r1-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6000+-with-glibc2.0
Timestamp of tree: Sun, 30 Nov 2008 18:45:01 +0000
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.4.4-r9, 2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2
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.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -msse3 -pipe -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"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -msse3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS=" http://gentoo.prz.rzeszow.pl ftp://mirror.icis.pcz.pl/gentoo http://gentoo.prz.rzeszow.pl ftp://sunsite.icm.edu.pl/pub/Linux/sunsite.unc.edu/distributions/gentoo ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo http://distfiles.gentoo.org"
LANG="pl_PL.UTF8"
LC_ALL="pl_PL.UTF8"
LDFLAGS="-Wl,-O1"
LINGUAS="pl en"
MAKEOPTS="-j3"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X Xaw3d a52 aac ace acl acpi alsa apache2 arj asf avi bzip2 cairo cdr cli cracklib crypt cups custom-cflags custom-optimization dbus dga dirac djvu dts dv dvd dvdr dvdread dxr3 encode fam ffmpeg firefox flac fontconfig fortran gd gdbm ggi gif glitz gnutls gpm gstreamer gtk gtk2 hal iconv idn imlib ipv6 isdnlog jabber java6 jbig jikes jp2 jpeg jpeg2k kdeenablefinal ladspa lame lcms lha libg++ libwww lm_sensors lzo mad matroska midi mikmod mmx mmxext mng motif mp3 mpeg mudflap musepack musicbrainz ncurses nls nptl nptlonly nsplugin nvidia ogg openal opengl openmp pam pango pcre pdf perl png ppds pppd python quicktime rar readline realmedia reflection rpm schroedinger sdl session smp sndfile speex spl sse sse2 sse3 ssl startup-notification svg svga sysfs tcltk tcpd theora threads tiff timidity truetype udev unicode usb vcd videos vorbis wavpack win32codecs wma wmf wxwindows x264 x86 xcb xforms xml xml2 xorg xpm xslt xv xvid yv12 zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="pl en" NETBEANS_MODULES="apisupport cnd harness ide java nb websvccommon xml" USERLAND="GNU" VIDEO_CARDS="nvidia vesa vga nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Francisco José Cañizares Santofimia 2008-11-30 20:25:45 UTC
Same here.
Comment 2 Miroslav Šulc gentoo-dev 2008-12-01 15:32:44 UTC
Does

$ unzip -l /var/tmp/portage/dev-util/netbeans-6.5-r1/work/libs.jaxb/external/jaxb-impl.jar | grep "com/sun/xml/bind/v2/runtime/JAXBContextImpl"

show this?

/var/tmp/portage/dev-util/netbeans-6.5-r1/work/libs.jaxb/external/jaxb-impl.jar
     1044  04-24-08 16:07   com/sun/xml/bind/v2/runtime/JAXBContextImpl$1.class
     1065  04-24-08 16:07   com/sun/xml/bind/v2/runtime/JAXBContextImpl$2.class
     1072  04-24-08 16:07   com/sun/xml/bind/v2/runtime/JAXBContextImpl$3.class
     1188  04-24-08 16:07   com/sun/xml/bind/v2/runtime/JAXBContextImpl$4.class
     1133  04-24-08 16:07   com/sun/xml/bind/v2/runtime/JAXBContextImpl$5.class
     1325  04-24-08 16:07   com/sun/xml/bind/v2/runtime/JAXBContextImpl$6.class
     1152  04-24-08 16:07   com/sun/xml/bind/v2/runtime/JAXBContextImpl$7.class
    33529  04-24-08 16:07   com/sun/xml/bind/v2/runtime/JAXBContextImpl.class
Comment 3 Francisco José Cañizares Santofimia 2008-12-01 20:23:37 UTC
(In reply to comment #2)
> Does
> 
> $ unzip -l
> /var/tmp/portage/dev-util/netbeans-6.5-r1/work/libs.jaxb/external/jaxb-impl.jar
> | grep "com/sun/xml/bind/v2/runtime/JAXBContextImpl"
> 
> show this?

In my case, yes. Even the file size is the same.

Comment 4 Igor 2008-12-02 06:39:12 UTC
(In reply to comment #2)
Yes
Comment 5 Miroslav Šulc gentoo-dev 2008-12-02 14:46:04 UTC
It's really weird, I have no idea what could cause this class is not on your classpath. This should be handled by the ant script and should behave the same in all cases imo, but it obviously does not.

Do you have your systems somehow modified wrt classpath or ant?

You can also try to build netbeans using debug switch for emerge (-d, --debug), I guess it should also output ant debug info, but the output will be very lengthy.

Also, does this occur in case you add all netbeans modules to NETBEANS_MODULES and try to emerge netbeans?
Comment 6 Igor 2008-12-02 16:36:28 UTC
Created attachment 174078 [details]
/var/tmp/portage/dev-util/netbeans-6.5-r1/temp dir zipped

I did not modified any java-related stuff. I have netbeans 5.5.1 and eclipse 3.4 running fine.

Adding all NETBEANS_MODULES did not helped, error is the same.

Here goes whole temp dir after emerge -d netbeans
Comment 7 Miroslav Šulc gentoo-dev 2008-12-04 10:40:28 UTC
One more thing to try pls.

Try to emerge netbeans:

NETBEANS_MODULES="apisupport cnd harness ide java nb websvccommon xml" emerge netbeans

When it fails:

cd /var/tmp/portage/dev-util/netbeans-6.5-r2/work
ANT_TASKS="ant-nodeps"  ANT_OPTS="-Xmx1g -Djava.awt.headless=true" ant -Dstop.when.broken.modules=true -Dpermit.jdk6.builds=true -Dbuild.compiler.deprecation=false -Dnb.clusters.list=nb.cluster.platform,nb.cluster.apisupport,nb.cluster.cnd,nb.cluster.harness,nb.cluster.ide,nb.cluster.java,nb.cluster.nb,nb.cluster.websvccommon,nb.cluster.xml -f nbbuild/build.xml

What I need to know is whether it fails too and what is the error or whether it compiles without problems. If it fails too, then try one more thing.

Create somewhere directory 'netbeans'. Move to that directory and run

unzip /usr/portage/distfiles/netbeans-6.5-l10n-20081119172200.tar.bz2
ANT_TASKS="ant-nodeps"  ANT_OPTS="-Xmx1g -Djava.awt.headless=true" ant -Dstop.when.broken.modules=true -Dpermit.jdk6.builds=true -Dbuild.compiler.deprecation=false -Dnb.clusters.list=nb.cluster.platform,nb.cluster.apisupport,nb.cluster.cnd,nb.cluster.harness,nb.cluster.ide,nb.cluster.java,nb.cluster.nb,nb.cluster.websvccommon,nb.cluster.xml -f nbbuild/build.xml

Again I need to know whether this fails and what is the error.
Comment 8 Igor 2008-12-04 17:26:42 UTC
After todays sync netbeans ebuild did not wanted to build with these NETBEANS_MODULES, it told me to add "groovy gsf j2ee". I added them and run emerge, it failed with the same error. Then I entered temp dir and run the first ant command - it also failed with the same error.

I cant run the last ant command. I untared ( not unzipped :P ) that distfile but there was no nbbuild dir inside only l10n. I modified the command so it ended with l10n/build.xml instead of nbbuild/build.xml but it ended with this error:

Buildfile: l10n/build.xml

BUILD FAILED
/netbeans/l10n/build.xml:51: Cannot find ../nbbuild/default.xml imported from /netbeans/l10n/build.xml
Comment 9 Miroslav Šulc gentoo-dev 2008-12-04 18:45:56 UTC
(In reply to comment #8)
> After todays sync netbeans ebuild did not wanted to build with these
> NETBEANS_MODULES, it told me to add "groovy gsf j2ee".

Seems I shouldn't touch the ebuild today :-) Pls sync after ~hour and you can remove these netbeans modules from your NETBEANS_MODULES. This was caused by a bug in the ebuild.

> I added them and run
> emerge, it failed with the same error. Then I entered temp dir and run the
> first ant command - it also failed with the same error.

You should go into 'work' directory, not the 'temp' directory. The work directory contains complete sources that are used to build netbeans and you have to run the command on those.

> I cant run the last ant command. I untared ( not unzipped :P )

sorry again :-) but I was partly right :-P you really need to unzip the netbeans tarball, but the correct file name is netbeans-6.5-200811100001-ml-src.zip, not the localization file I incorrectly pasted here before.

I hope next time I'll make less errors :-)
Comment 10 Igor 2008-12-04 19:46:51 UTC
I was in the work dir, sorry, that ant command wouldn't work in the temp dir.

Now I did that second part with unzipping and unfortunately it ended with the same error.
Comment 11 Francisco José Cañizares Santofimia 2008-12-05 00:00:09 UTC
(In reply to comment #10)
> I was in the work dir, sorry, that ant command wouldn't work in the temp dir.
> 
> Now I did that second part with unzipping and unfortunately it ended with the
> same error.
> 

In my case regarding the test and error tries, I did but with ALL netbeans modules.

 In working dir the errors were: 
model-gen:
      [xjc] /var/tmp/portage/dev-util/netbeans-6.5-r2/work/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.5-r2/work/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.5-r2/work/nbbuild/build.xml:713: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.5-r2/work/nbbuild/build.xml:708: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.5-r2/work/nbbuild/build.xml:743: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.5-r2/work/nbbuild/build.xml:726: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.5-r2/work/nbbuild/build.xml:708: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.5-r2/work/nbbuild/build.xml:743: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.5-r2/work/nbbuild/build.xml:726: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.5-r2/work/nbbuild/build.xml:708: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.5-r2/work/nbbuild/build.xml:754: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.5-r2/work/websvc.saas.api/build.xml:65: java.lang.NoClassDefFoundError: com/sun/xml/bind/v2/runtime/JAXBContextImpl

Total time: 1 minute 54 seconds

In the created netbeans dir, the errors were:
model-gen:
      [xjc] /tmp/netbeans/websvc.saas.api/src/org/netbeans/modules/websvc/saas/model/jaxb is not found and thus excluded from the dependency check
      [xjc] Compiling file:/tmp/netbeans/websvc.saas.api/src/org/netbeans/modules/websvc/saas/model/SaasServices.xsd
  [nbmerge] Failed to build target: all-websvc.saas.api

BUILD FAILED
/tmp/netbeans/nbbuild/build.xml:720: The following error occurred while executing this line:
/tmp/netbeans/nbbuild/build.xml:715: The following error occurred while executing this line:
/tmp/netbeans/nbbuild/build.xml:750: The following error occurred while executing this line:
/tmp/netbeans/nbbuild/build.xml:733: The following error occurred while executing this line:
/tmp/netbeans/nbbuild/build.xml:715: The following error occurred while executing this line:
/tmp/netbeans/nbbuild/build.xml:750: The following error occurred while executing this line:
/tmp/netbeans/nbbuild/build.xml:733: The following error occurred while executing this line:
/tmp/netbeans/nbbuild/build.xml:715: The following error occurred while executing this line:
/tmp/netbeans/nbbuild/build.xml:761: The following error occurred while executing this line:
/tmp/netbeans/websvc.saas.api/build.xml:65: java.lang.NoClassDefFoundError: com/sun/xml/bind/v2/runtime/JAXBContextImpl

Total time: 3 minutes 5 seconds

I hope this helps to solve the problem.
Comment 12 Miroslav Šulc gentoo-dev 2008-12-05 00:45:51 UTC
From the tests you did, it is obvious it is not problem of the ebuild nor the way portage works because it fails even in case you build netbeans from upstream sources.

To get more brains into it, I'd suggest one of you should file the bug at http://www.netbeans.org/community/issues.html and the other can add his info to the bug too. I could do it myself but me serving as proxy wouldn't be useful imo as I am not able to reproduce this bug.

I'm really not sure what could be the cause, but there are two components that could influence it imo: ant and jdk.

In my case dev-java/ant-1.7.1, dev-java/ant-core-1.7.1-r2, dev-java/ant-nodeps-1.7.1 and dev-java/sun-jdk-1.6.0.10 are used to build netbeans. Compiler used is javac. jdk and compiler is the same as in Igor's case at least.

Could you both pls check the versions used in your case, re-emerge them to be sure some old bug is not sitting in your systems and then try to emerge netbeans again?
Comment 13 Igor 2008-12-05 20:22:43 UTC
Re-emerging ant didn't helped so I made a drastic move: un-emerged everything from dev-java and java-virtuals and then emerged netbeans. Over 120 packages later netbeans emerged successfully :) Unfortunately this way I still don't know which package caused trouble.
Comment 14 Miroslav Šulc gentoo-dev 2008-12-05 20:42:30 UTC
At least we know what works :-) I hope it will work for Francisco too.
Comment 15 Francisco José Cañizares Santofimia 2008-12-05 20:43:28 UTC
(In reply to comment #13)
> Re-emerging ant didn't helped so I made a drastic move: un-emerged everything
> from dev-java and java-virtuals and then emerged netbeans. Over 120 packages
> later netbeans emerged successfully :) Unfortunately this way I still don't
> know which package caused trouble.
> 

It's there a command so I can reemerge that packages?
Comment 16 Miroslav Šulc gentoo-dev 2008-12-05 20:51:45 UTC
> It's there a command so I can reemerge that packages?
> 

You can use this script to re-emerge everything java:

http://overlays.gentoo.org/proj/java/browser/scripts/re-emerge-everything-java.sh