Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77912 - The script to run jing looks for the xerces and saxon jar libraries, and they now seem to be called xerces-2 and saxon-bin, respectively.
Summary: The script to run jing looks for the xerces and saxon jar libraries, and they...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-13 16:40 UTC by John L. Clark
Modified: 2005-01-14 07:49 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 John L. Clark 2005-01-13 16:40:31 UTC
The shell script that runs the jing package uses java-config to build the classpath.  It looks for the java packages xerces and saxon, but (at least on my system) these packages seem not to exist.  Thus, the script gives the following error:

<screen>
$ jing
Could not find package xerces
Could not find package saxon
Exception in thread "main" java.lang.NoClassDefFoundError: /usr/share/jing/lib/jing/jar
</screen>

Instead, there exist packages called xerces-2 and saxon-bin, and rewriting the command to reference these package names works.  The old 'jing' script is as follows:

<script filename="/usr/bin/jing">
#!/bin/sh
exec `java-config --java` -classpath `java-config -p xerces,saxon` -jar `java-config -p jing` "$@"
</script>

The following script runs correctly:

<script>
#!/bin/sh
exec `java-config --java` -classpath `java-config -p xerces-2,saxon-bin` -jar `java-config -p jing` "$@"
</script>


Reproducible: Always
Steps to Reproduce:
1. emerge jing and any dependencies
2. run `jing`

Actual Results:  
The above steps produce the following failure output: 
 
Could not find package xerces 
Could not find package saxon 
Exception in thread "main" 
java.lang.NoClassDefFoundError: /usr/share/jing/lib/jing/jar 

Expected Results:  
The software should have instead referenced the correct package names and run 
jing. 

Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.5, 
glibc-2.3.4.20040808-r1, 2.6.7-gentoo-r7 i686) 
================================================================= 
System uname: 2.6.7-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 3.40GHz 
Gentoo Base System version 1.4.16 
Autoconf: sys-devel/autoconf-2.59-r5 
Automake: sys-devel/automake-1.8.5-r1 
Binutils: sys-devel/binutils-2.15.92.0.2-r1 
Headers:  sys-kernel/linux-headers-2.4.21-r1 
Libtools: sys-devel/libtool-1.5.2-r7 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer" 
CHOST="i686-pc-linux-gnu" 
COMPILER="" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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/terminfo /etc/env.d" 
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" 
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ 
http://gentoo.binarycompass.org http://mirror.datapipe.net/gentoo 
http://128.213.5.34/gentoo/" 
MAKEOPTS="-j3" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X aim apm arts avi berkdb bitmap-fonts cdr crypt cups dvd dvdr encode 
f77fam flac font-server foomaticdb fortran gdbm gif gpm gtk gtk2 icq 
imagemagick imap imlib ipv6 jabber java jpeg junit kde ldap libg++ libwww mad 
maildir mikmod motif mozilla mpeg msn ncurses nls oggvorbis opengl oscar oss 
pam pcre pdflibperl png ppds python qt quicktime readline samba sdl slang slp 
spell ssl svg svga tcpd tetex tiff truetype truetype-fonts type1-fonts unicode 
usb x86 xinerama xml2 xmms xv xvid yahoo zlib"
Comment 1 Jan Brinkmann (RETIRED) gentoo-dev 2005-01-14 07:49:37 UTC
fixes version commited. thanks for the report. the only exception