Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58004 - Tomcat 5.0.19 Fails to Start log4j Error
Summary: Tomcat 5.0.19 Fails to Start log4j Error
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-22 19:39 UTC by Derek Berube
Modified: 2004-07-27 06:20 UTC (History)
0 users

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


Attachments
catalina.log File Containing Error Information (catalina.log.gz,645 bytes, application/octet-stream)
2004-07-22 19:43 UTC, Derek Berube
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Derek Berube 2004-07-22 19:39:44 UTC
After emerging the 5.0.19 version of tomcat, the server fails to start because of the following error:

Caused by: java.lang.NoClassDefFoundError: org/apache/commons/collections/FastHashMap

This, I believe, causes log4j to throw the following error:

log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.Embedded)
log4j:WARN Please initialize the log4j system properly

Reproducible: Always
Steps to Reproduce:
1. Execute the /etc/init.d/tomcat start command.
2. Review the /var/log/tomcat/catalina.log file.


Actual Results:  
The log contains the error described in the 'Details' field.

Expected Results:  
Tomcat should startup and listen for connections on port 8080.

Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040619-r0,
2.6.7-gentoo-r11)
=================================================================
System uname: 2.6.7-gentoo-r11 i686 Intel(R) Pentium(R) 4 Mobile CPU 2.00GHz
Gentoo Base System version 1.5.1
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /etc/tomcat /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mcpu=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache sandbox"
GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com/
http://www.gtlib.cc.gatech.edu/pub/gentoo
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.mirrors.pair.com/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-main
/usr/local/bmg-gnome-current"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bonobo cdr crypt cups dvd encode esd foomaticdb
gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib java jpeg kerberos krb4 libg++
libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam
pcmcia pdflib perl png python quicktime readline scanner sdl slang spell ssl
svga tcpd truetype x86 xml2 xmms xv zlib"
Comment 1 Derek Berube 2004-07-22 19:43:29 UTC
Created attachment 35982 [details]
catalina.log File Containing Error Information

The attached file contains the log file generated by tomcat when I attempt to
start it.
Comment 2 Derek Berube 2004-07-22 19:46:43 UTC
I presently have the 3.1 release of the dev-java/commons-collections package loaded on my system.  When I look at the /usr/share/commons-collections/lib/commons-collections.jar file, the org.apache.commons.collections.FastHashMap.class file is located in the .jar file.
Comment 3 Derek Berube 2004-07-22 19:47:14 UTC
wildstar lib # emerge search commons-collections
Searching...
[ Results for search key : commons-collections ]
[ Applications found : 1 ]

*  dev-java/commons-collections
      Latest version available: 3.1
      Latest version installed: 3.1
      Size of downloaded files: 1,110 kB
      Homepage:    http://jakarta.apache.org/commons/collections.html
      Description: Jakarta-Commons Collections Component
      License:     Apache-1.1


wildstar lib #
Comment 4 Thomas Matthijs (RETIRED) gentoo-dev 2004-07-27 06:20:30 UTC
Just commited ebuilds for newer version, can you check if you still have this problem with those?

if so reopen the bug and i'll look into it