Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 628452

Summary: java-config fails to set/detect VM and servlet-api, regardless of what eselect says
Product: Gentoo Linux Reporter: Steve Arnold <nerdboy>
Component: Current packagesAssignee: Java team <java>
Status: RESOLVED OBSOLETE    
Severity: critical    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Steve Arnold archtester gentoo-dev 2017-08-21 00:29:44 UTC
This came up (again) in the context of building opencv; opencv also has its own install issues right now, but during the build it barfs the same error as java-config (see below).

OTOH, eselect java-vm appears to work and reports the correct version set for both system and user VMs.

That said, java-config reports one thing correctly without the error:

$ java-config-2 -L
The following VMs are available for generation-2:
1)	IcedTea JDK 7.2.6.4 [icedtea-bin-7]
*)	Oracle JDK 1.7.0.80 [oracle-jdk-bin-1.7]
3)	Oracle JDK 1.8.0.144 [oracle-jdk-bin-1.8]

$ java-config -l | grep servlet
[servlet-api-3.1] Tomcat's Servlet API 3.1/JSP API 2.3/EL API 3.0 implementation (/usr/share/java-config-2/virtuals/servlet-api-3.1)
[tomcat-servlet-api-4.0] Tomcat's Servlet API 4.0/JSP API 2.4?/EL API 3.1? implementation (/usr/share/tomcat-servlet-api-4.0/package.env)
[tomcat-servlet-api-3.1] Tomcat's Servlet API 3.1/JSP API 2.3/EL API 3.0 implementation (/usr/share/tomcat-servlet-api-3.1/package.env)
!!! ERROR: No providers are available, please ensure you have one of the following VM's or Package's;
           VM's (Your active vm must be one of these): 
           Packages's: tomcat-servlet-api-2.5 resin-servlet-api-2.5 glassfish-servlet-api-2.5

This killed the build a couple of weeks ago, but manually fussing with java-config and installing one of the servlet-api packages, then fussing with java-config again appeared to fix it, at least for that build update.

But no more, it's broken as above now and I can't work around it.  Punt!
Comment 1 Steve Arnold archtester gentoo-dev 2017-08-21 00:33:00 UTC
Portage 2.3.8 (python 3.4.6-final-0, default/linux/amd64/13.0/desktop, gcc-6.3.0, glibc-2.25-r3, 4.3.0-gentoo x86_64)
=================================================================
System uname: Linux-4.3.0-gentoo-x86_64-AMD_Athlon-tm-_II_X4_640_Processor-with-gentoo-2.4.1
KiB Mem:     4046248 total,   1051016 free
KiB Swap:    8388604 total,   7658456 free
Timestamp of repository gentoo: Sun, 20 Aug 2017 10:30:01 +0000
Head commit of repository gentoo: 9ce823e08f8d00add75a85430c5f40f61e6f36bc
Head commit of repository arm_support: b64243eb1a6b58660715f0bd3bf5a9733c854cf8

Head commit of repository nerdboy: 6adf15087117e9dd48e69130ffdad7e69f5c819f

sh bash 4.3_p48-r1
ld GNU gold (Gentoo 2.28 p1.2 2.28) 1.14
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.3.4 [enabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo, 3.5.2::gentoo
dev-util/ccache:          3.3.4::gentoo
dev-util/cmake:           3.9.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r1::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.9.6-r4::gentoo, 1.10.3-r1::gentoo, 1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15.1::gentoo
sys-devel/binutils:       2.26.1::gentoo, 2.27-r1::gentoo, 2.28-r2::nerdboy, 2.28.1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.3.0::arm_support, 5.4.0::gentoo, 6.3.0::gentoo, 6.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-umask: 022
    sync-uri: rsync://foo.bar/gentoo-portage
    sync-user: portage:portage
    priority: -1000
    eclass-overrides: nerdboy

arm_support
    location: /usr/local/arm
    sync-type: git
    sync-umask: 022
    sync-uri: https://github.com/gentoo/arm.git
    sync-user: portage:portage
    masters: gentoo

jorgicio
    location: /var/lib/layman/jorgicio
    sync-type: laymansync
    sync-umask: 022
    sync-uri: https://github.com/jorgicio/jorgicio-gentoo.git
    sync-user: portage:portage
    masters: gentoo
    priority: 50

nerdboy
    location: /usr/local/portage
    sync-type: git
    sync-umask: 022
    sync-uri: https://github.com/sarnold/portage-overlay.git
    sync-user: portage:portage
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA @GPL-COMPATIBLE @OSI-APPROVED @EULA dlj-1.1 skype-eula googleearth AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -mtune=amdfam10 -O2 -pipe -flto=4 -ftree-vectorize -ftree-loop-distribution -fvect-cost-model=cheap -floop-interchange -floop-strip-mine -floop-block"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.1/conf /usr/share/maven-bin-3.2/conf /usr/share/maven-bin-3.3/conf /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -mtune=amdfam10 -O2 -pipe -flto=4 -ftree-vectorize -ftree-loop-distribution -fvect-cost-model=cheap -floop-interchange -floop-strip-mine -floop-block"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://bar.foo/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-flto=4 -fuse-linker-plugin"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_BZIP2_COMMAND="/bin/bzip2"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="7zip X Xaw3d a52 aac aalib abiword accessibility acl acpi ada alsa ambiance amd64 amr amrnb ansi ao artworkextra aspell avahi avi berkdb bitmap-fonts bluetooth bluray branding browserplugin bzip2 bzlib cairo caps cdda cddb cdparanoia cdr cli consolekit corefonts cracklib crypt css cups curl cvs cxx daap dbus dga divx4linux djvu dnotify dri drm dts dv dvd dvdr dvdread dynagraph eds egl emboss emf enchant encode evo exif faac faad fam fame fbcon fftw firefox3 fits flac fluidsynth fontconfig fortran freetype freetype2 g3dvl gb gbm gd gdbm geos gif gimp git glade glamor glib glx gmp gnome-keyring gnome-online-accounts gnutls go gphoto2 gpm gps graphite graphviz grass gs gsm gstreamer gtk gtk3 gtkhtml gtkspell guile howl iconv icq id3 id3tag ifp imagemagick imap imlib inotify ios ipod ipv6 jabber jack jasper java jbig jikes jpeg jpeg2k jpg json junit ladspa lame lapack lash latex lcms ldap libav libnotify libsamplerate libsecret lm_sensors logrotate lto lua lzma mad midi mjpeg mng modules motif mp3 mp4 mpeg mplayer mtp multilib mythtv nas nautilus ncurses netcdf networking networkmanager nfs nls nolvmstatic normalize notification nptl nptlonly nsplugin numeric objc ogdi ogg oggvorbis opencl opengl openmp oss pam pango pcre pcsc-lite pda pdf perl phonon pic pkcs11 plotutils png policykit postgres ppds pulseaudio python qml qt5 quicktime r600-llvm-compiler rdp readline real replaygain rtc ruby samba sasl sdl seamonkey seccomp session shorten slp sndfile snmp sox spamassassin speex spell spice sqlite ssh ssl startup-notification subtitles subversion svg system-cairo system-harfbuzz system-icu system-jpeg system-libvpx system-sqlite taglib tcl tcpd theora threads tiff timidity tk tls truetype truetype-fonts type1-fonts udev udisks unicode upower usb v4l v4l2 vaapi vala vcd vdpau vim vorbis vpx wav wavpack wayland webkit webp weston wheel wifi wmf wxwidgets x264 xanim xattr xcb xcomposite xext xine xinerama xml xmp xorg xpm xrandr xscreensaver xv xvid xvmc zeitgeist zeo zeroconf zip zlib zvbi" ABI_X86="64 32" ALSA_CARDS="emu10k1 hda-intel usb-audio" APACHE2_MODULES="actions alias auth_digest auth_basic authn_alias access_compat authn_core authn_dbd authz_core cache_disk cern_meta cgi cgid charset_lite authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_connect proxy_http rewrite setenvif speling status unique_id userdir usertrack vhost_alias unixd socache_shmcb" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="adc65 agfa_cl20 aox ax203 barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a jl2005c kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_l859 panasonic_dc1000 panasonic_dc1580 pccam300 pccam600 pentax polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 stv0680 sx330z toshiba_pdrm11 topfield tp6801" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="aivdm ashtech earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 navcom ntrip oceanserver oncore rtcm104v2 rtcm104v3 sirf superstar2 tnt tripmate tsip ublox nmea nmea0183 nmea2000 passthrough" GRUB_PLATFORMS="efi-32 efi-64 pc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" L10N="en_US en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-minimizer wiki-publisher" LINGUAS="en_US en" LLVM_TARGETS="AMDGPU BPF NVPTX X86 AArch64 ARM Hexagon MSP430 Mips PowerPC Sparc SystemZ XCore Lanai RISCV" NETBEANS_MODULES="apisupport java javafx profiler websvccommon cnd dlight ergonomics groovy mobility webcommon" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="aarch64 arm i386 mips mipsel mips64 mips64el ppc ppc64 x86_64" QEMU_USER_TARGETS="aarch64 arm i386 mips mipsel mips64 mips64el ppc ppc64 x86_64" RUBY_TARGETS="ruby24 ruby23 ruby22" SANE_BACKENDS="net" USERLAND="GNU" VIDEO_CARDS="radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 William L. Thomson Jr. 2018-02-16 21:00:49 UTC
Maybe related to broken virtual handling. I would stick with only tomcat-servlet-api. If there are others, remove them, glassfish and/or resin.

Sounds like bug 212922, but maybe another issue in java-config.
Comment 3 Florian Schmaus gentoo-dev 2022-04-25 15:14:53 UTC
Is this still an issue?
Comment 4 Volkmar W. Pogatzki 2023-06-29 15:52:44 UTC
java-config is no longer used to set VM. This is done by "eselect java" instead.
Closing.