Tomcat 5.5.17-r1. I updated world on my server yesterday and now Tomcat won't start. I have no idea why. When I start it I just get [!!]. I removed all the extra spaces from all the parameters and put an echo around the start-stop-daemon line and when I run the command that gets echoed it starts fine! I can't find anything in the logs to report, but if I put --verbose instead of --quite on the start-stop-daemon line I get this: blackadder ~ # /etc/init.d/tomcat-5.5 start * Caching service dependencies ... [ ok ] * Starting Tomcat ... Starting /opt/sun-jdk-1.5.0.08/bin/java... Detaching to start /opt/sun-jdk-1.5.0.08/bin/java...done. [ !! ] Here's the command that gets echoed and runs fine: start-stop-daemon --start --quiet --background --chuid tomcat:tomcat --make-pidfile --pidfile /var/run/tomcat.pid --exec /opt/sun-jdk-1.5.0.08/bin/java -- -server -Xmx1024m -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/etc/tomcat-5.5/logging.properties -Djava.endorsed.dirs=/usr/share/tomcat-5.5/common/endorsed -classpath /usr/share/tomcat-5.5/server/lib:/opt/sun-jdk-1.5.0.08/lib/tools.jar:/usr/share/tomcat-5.5/bin/bootstrap.jar:/usr/share/tomcat-5.5/bin/commons-logging-api.jar -Dcatalina.base=/var/lib/tomcat-5.5 -Dcatalina.home=/usr/share/tomcat-5.5 -Djava.io.tmpdir=/var/tmp/tomcat-5.5 org.apache.catalina.startup.Bootstrap start blackadder ~ # emerge --info Portage 2.1.1_rc1-r2 (default-linux/amd64/2005.1, gcc-3.4.6, glibc-2.3.6-r4, 2.6.17-gentoo-r7 x86_64) ================================================================= System uname: 2.6.17-gentoo-r7 x86_64 Intel(R) Xeon(TM) CPU 3.00GHz Gentoo Base System version 1.12.4 Last Sync: Thu, 31 Aug 2006 16:20:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.3.5-r2, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O3 -march=nocona -pipe" 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 /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O3 -march=nocona -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.osuosl.org/" LINGUAS="" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/myth-svn /usr/local/portage/gentoo-java-experimental /usr/local/portage/local" SYNC="rsync://rsync.au.gentoo.org/gentoo-portage" USE="amd64 X a52 aac alsa apache2 audiofile avi bash-completion berkdb bind-mysql bindist bitmap-fonts cdb cdparanoia cdr cli crypt cups dba dbus dlloader dri dts dv dvb dvb-eit dvd dvdread elibc_glibc encode exif ffmpeg flac foomaticdb ftp gd gif gphoto2 gpm gstreamer gtk gtk2 iee1394 imagemagick imap imlib innodb input_devices_keyboard input_devices_mouse isdnlog java javamail javascript jce jmx jpeg kde kerberos kernel_linux ldap libwww lm_sensors lzw lzw-tiff mad milter mjpeg mng mp3 mpeg mysql mysqli nas ncurses nls nptl oav odbc offensive ogg oggvorbis openal opengl pam pcre pdflib perl php png portaudio ppds pppd python qt3 qt4 quicktime readline reflection reiserfs samba sasl sdl session sndfile sox spell spl ssl svg tcpd theora threads tiff truetype truetype-fonts type1-fonts usb userland_GNU v4l vcd vhosts video_cards_none video_cards_radeon vorbis wmf xfs xine xml xml2 xorg xpm xv xvid zaptel zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Well it seems a bit to much useless info was provided. Missing useful info like; What version of Tomcat were you upgrading from? Custom webapp you developed and are deploying, or third party? Did you migrate config files? Or update them at least? What does Tomcat's log files say? Provide that info and we can go from there.
Sorry, you've missed my point. I didn't upgrade Tomcat. I have been running Tomcat 5.5.17-r1 for sometime but after a world update it now no longer starts up. These are the packages I upgraded from and to that have now stopped Tomcat from starting: [ebuild U ] dev-java/java-config-wrapper-0.11 [0.10-r3] [ebuild U ] dev-java/java-config-2.0.27-r1 [2.0.26-r6] [ebuild U ] dev-java/java-config-1.3.3 [1.3.0-r3] [ebuild U ] app-admin/perl-cleaner-1.04.3 [1.04.1] [ebuild U ] sys-apps/portage-2.1.1_rc1-r2 [2.1.1_pre5-r3] *** Portage will stop merging at this point and reload itself, then resume the merge. [ebuild U ] sys-apps/baselayout-1.12.4-r7 [1.12.4-r6] [ebuild U ] sys-libs/timezone-data-2006g [2006a] [ebuild NS ] sys-kernel/gentoo-sources-2.6.17-r7 USE="-build -symlink (-ultra1)" [ebuild U ] media-libs/alsa-lib-1.0.11-r1 [1.0.11] [ebuild U ] x11-libs/libXfont-1.2.0-r1 [1.1.0-r1] [ebuild U ] sys-apps/util-linux-2.12r-r4 [2.12r-r3] [ebuild U ] dev-libs/atk-1.12.1 [1.11.4] [ebuild R ] media-video/mjpegtools-1.8.0-r1 USE="png%" [ebuild NS ] x11-libs/qt-4.1.4 USE="cups gif jpeg mng mysql nas odbc opengl png zlib -accessibility -debug -doc -examples (-firebird) -nis -postgres -sqlite -xinerama" [ebuild U ] app-admin/webapp-config-1.50.15 [1.50.13] [ebuild N ] perl-core/Time-Local-1.12 [ebuild U ] virtual/perl-Time-Local-1.12 [1.11] [ebuild U ] sys-auth/nss_ldap-252 [250-r1] [ebuild U ] dev-perl/DateTime-TimeZone-0.47 [0.46] [ebuild U ] net-p2p/bittorrent-4.4.0 [4.2.2] [ebuild U ] sys-process/lsof-4.77 [4.76] [ebuild U ] sys-boot/grub-0.97-r2 [0.96-r2] I'm guessing its either the java-config* or baselayout that have caused the problem.
I found some errors in my syslog about authentication with ldap. Removed my invalid ldap configuration and it now works! Strange how only Tomcat was affected!?!?