Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 335907 - dev-java/msv-20050627-r2 missing launcher
Summary: dev-java/msv-20050627-r2 missing launcher
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-04 03:20 UTC by Mike Thompson
Modified: 2011-01-18 15:23 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 Mike Thompson 2010-09-04 03:20:25 UTC
I emerged dev-java/msv on my stable amd64 machine (Intel Core Duo) but found it would not start.  It appears that something went wrong in the build process.  The ebuild finished with no errors.

There are two issues related to the incomplete build:  a jar file that complains of a missing Main-Class manifest attribute and the lack of installation of a file mentioned in the README.txt:  commandline.html.  I installed the thing for the express purpose of getting a command-line schema checker that is better at error reporting than xmllint.

When the ebuild finished, I was expecting to have a new "msv" command.  That didn't happen, so I looked at the installed files and found that none were installed to any directories in PATH.  Pressing on, I thought to try the jar file.  This is what happened:

$ java -jar /usr/share/msv/lib/msv.jar
Failed to load Main-Class manifest attribute from
/usr/share/msv/lib/msv.jar

The /usr/share/doc/msv-20050627-r2/README.txt.bz2 directed me to look to the file commandline.html for instructions on how to use it from the command line, but I observed the file did not get installed.  (I had the USE flags +doc -source.)  I unzipped the source tarball from /usr/portage/distfiles/ and found a nice commandline.html there as well as an msv.jar file that worked.  I tried its instructions.  The upstream-supplied msv.jar worked:

$ java -jar /home/mike/lib/msv-20050627/msv.jar docbook.rng work.xml
[lots of useful output]

but the installed one failed:

$ java -jar /usr/share/msv/lib/msv.jar docbook.rng work.xml
Failed to load Main-Class manifest attribute from
/usr/share/msv/lib/msv.jar

Here's a comparison of the sizes:

$ ls -l lib/msv-20050627/msv.jar /usr/share/msv/lib/msv.jar
-rw-r--r-- 1 mike mike 667496 2005-06-27 22:11 lib/msv-20050627/msv.jar
-rw-r--r-- 1 root root 533422 2010-09-03 21:09 /usr/share/msv/lib/msv.jar

I ran the ebuild on a computer with more than 300MB of free memory and 200GB of free disk space.

I'm not a big Java person, so I did not go into trying to diagnose the problem.

Maybe all you wanted to get out of this package is a library, not a command-line tool (which the product itself advertises it has.)  I'd be quite willing to make my own Bash script invoke the thing, but the broken jar from the ebuild won't let me do even that.  In the meantime I'm using Sun's jar, but it sure would be great for the ebuild to work right!

Reproducible: Always

Steps to Reproduce:
1. USE="doc -source" emerge dev-java/msv
2. java -jar /ur/share/msv/lib/msv.jar
3.

Actual Results:  
Failed to load Main-Class manifest attribute from
/usr/share/msv/lib/msv.jar

Expected Results:  
usage: java -jar msv.jar <opts> <grammar> <instance1> [<instance2> ...]

options:
  -standalone: do not read external DTD specified in grammar/instances.
  -strict    : perform extra check to schema and report error.
  -dump      : dump grammar rather than perform validation.
  -debug     : generate debug messages.
  -verbose   : be verbose.
  -maxerror  : try to report more errors even if they may be false.
  -warning   : display all warning messages
  -catalog <catalogfile>
             : use a catalog file (TR9401) to resolve external entities
               for detail, see http://www.sun.com/xml/developers/resolver/
  -version   : display version number.
  -classpath <jar>/<dir>
             : use this option to specify additional datatype library
               jar files for RELAX NG validation. Can be specified multiple times
  -locale <code>
             : set the language of messages (i.e., "en","ja")
  -xerces    : use Xerces-J parser for parsing grammar and instances.
  -crimson   : use Crimson parser  for parsing grammar and instances.
  -oraclev2  : use OracleV2 parser for parsing grammar and instances.


I tried emerging the same package on a different computer, a Lenovo Thinkpad T400 also running amd64 stable.  I got the same results there.

This is the emerge --info output from that first computer:
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.3.2, glibc-2.10.1-r1, 2.6.29-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6750_@_2.66GHz-with-gentoo-1.12.13
Timestamp of tree: Sat, 21 Aug 2010 14:00:18 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.1.10
dev-lang/python:     2.4.6, 2.5.4-r4, 2.6.4
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc:       4.1.2, 4.3.2-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
sys-devel/make:      3.81
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=nocona -pipe -msse3 -fomit-frame-pointer -momit-leaf-frame-pointer         -mpreferred-stack-boundary=4 -maccumulate-outgoing-args -mieee-fp -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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 /etc/udev/rules.d"
CXXFLAGS="-O3 -march=nocona -pipe -msse3 -fomit-frame-pointer -momit-leaf-frame-pointer         -mpreferred-stack-boundary=4 -maccumulate-outgoing-args -mieee-fp -ftree-vectorize"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
FFLAGS="{-O3 -march=nocona -pipe -msse3 -fomit-frame-pointer -momit-leaf-frame-pointer         -mpreferred-stack-boundary=4 -maccumulate-outgoing-args -mieee-fp -ftree-vectorize] -funroll-all-loops"
GENTOO_MIRRORS="http://www.gtlib.gatech.edu/pub/gentoo http://mirrors.kernel.org/gentoo http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.utf-8"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--as-needed -s"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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/kde-sunset"
SYNC="rsync://gateway/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 apache2 arts bash-completion bcmath berkdb bluetooth branding bzip2 cairo cdda cddb cdr cjk cli consolekit cpudetection cracklib crypt ctype cups curl cxx dbus doc dri dts dvd dvdr emacs emboss encode examples exif expat fam ffmpeg firefox flac foomaticdb fortran ftp gcj gd gdbm gif gmp gnome gnutls gphoto2 gpm graphviz gstreamer gtk guile hal iconv ieee1394 imagemagick imap inifile ipv6 jack jadetex java jpeg jpeg2k kde kolab kpathsea lcms ldap libedit libnotify live lm_sensors mad matroska md5sum midi mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib musepack musicbrainz mysql nas ncurses nls nptl nptlonly nsplugin ntpl odbc offensive ogg openal openexr opengl openmp pam pango pcre pdf perl php png povray ppds pppd python qt qt3support qt4 rdesktop readline reflection rtsp ruby samba scanner sdl session slang sndfile snmp speex spell spl sqlite sse sse2 ssl startup-notification svg sysfs tcl tcpd tetex theora threads tidy tiff tk truetype unicode urandom usb v4l v4l2 vcd vim-syntax vorbis wmf wordperfect x264 xcb xine xml xorg xpm xscreensaver xsl xulrunner xv xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="i810" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Miroslav Šulc gentoo-dev 2011-01-18 15:23:02 UTC
launcher added in msv-20050627-r3. with this version, you can simply run 'msv' from command line.