Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 290665 - www-servers/tomcat-6.0.20 starts with errors
Summary: www-servers/tomcat-6.0.20 starts with errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-26 23:22 UTC by Paul McDermott
Modified: 2011-01-19 04:08 UTC (History)
1 user (show)

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 Paul McDermott 2009-10-26 23:22:58 UTC
Tomcat-6.0.20 complains in /var/log/tomcat-6/catalina.out about:

SEVERE: Error initializing endpoint
org.apache.tomcat.jni.Error: Address family not supported by protocol

SEVERE: Catalina.start
LifecycleException:  Protocol handler initialization failed: org.apache.tomcat.jni.Error: Address family not supported by protocol

SEVERE: Error starting endpoint
org.apache.tomcat.jni.Error: Address family not supported by protocol

SEVERE: Catalina.start: 
LifecycleException:  service.getName(): "Catalina";  Protocol handler start failed: org.apache.tomcat.jni.Error: Address family not supported by protocol



Reproducible: Always

Steps to Reproduce:
1.emerge -auv =www-servers/tomcat-6.0.18
2./etc/init.d/tomcat-6 start
3.tail -f /var/log/tomcat-6/catalina.out

Actual Results:  
Tomcat starts with SEVERE errors in log file

Expected Results:  
Tomcat starts without errors

System worked successfully with www-servers/tomcat-6.0.18
Comment 1 Paul McDermott 2009-10-26 23:30:56 UTC
Tomcat log file from /var/log/tomcat-6/catalina.out showing SEVERE errors


26-Oct-2009 23:15:26 org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.13.
26-Oct-2009 23:15:27 org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
26-Oct-2009 23:15:29 org.apache.coyote.http11.Http11AprProtocol init
SEVERE: Error initializing endpoint
org.apache.tomcat.jni.Error: Address family not supported by protocol
	at org.apache.tomcat.jni.Socket.create(Native Method)
	at org.apache.tomcat.util.net.AprEndpoint.init(Unknown Source)
	at org.apache.coyote.http11.Http11AprProtocol.init(Unknown Source)
	at org.apache.catalina.connector.Connector.initialize(Unknown Source)
	at org.apache.catalina.core.StandardService.initialize(Unknown Source)
	at org.apache.catalina.core.StandardServer.initialize(Unknown Source)
	at org.apache.catalina.startup.Catalina.load(Unknown Source)
	at org.apache.catalina.startup.Catalina.load(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.load(Unknown Source)
	at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
26-Oct-2009 23:15:29 org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException:  Protocol handler initialization failed: org.apache.tomcat.jni.Error: Address family not supported by protocol
	at org.apache.catalina.connector.Connector.initialize(Unknown Source)
	at org.apache.catalina.core.StandardService.initialize(Unknown Source)
	at org.apache.catalina.core.StandardServer.initialize(Unknown Source)
	at org.apache.catalina.startup.Catalina.load(Unknown Source)
	at org.apache.catalina.startup.Catalina.load(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.load(Unknown Source)
	at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
26-Oct-2009 23:15:29 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 15643 ms
26-Oct-2009 23:15:30 org.apache.catalina.realm.JAASRealm setContainer
INFO: Set JAAS app name Catalina
26-Oct-2009 23:15:31 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
26-Oct-2009 23:15:31 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
26-Oct-2009 23:15:45 org.apache.coyote.http11.Http11AprProtocol start
SEVERE: Error starting endpoint
org.apache.tomcat.jni.Error: Address family not supported by protocol
	at org.apache.tomcat.jni.Socket.create(Native Method)
	at org.apache.tomcat.util.net.AprEndpoint.init(Unknown Source)
	at org.apache.tomcat.util.net.AprEndpoint.start(Unknown Source)
	at org.apache.coyote.http11.Http11AprProtocol.start(Unknown Source)
	at org.apache.catalina.connector.Connector.start(Unknown Source)
	at org.apache.catalina.core.StandardService.start(Unknown Source)
	at org.apache.catalina.core.StandardServer.start(Unknown Source)
	at org.apache.catalina.startup.Catalina.start(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.start(Unknown Source)
	at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
26-Oct-2009 23:15:45 org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start: 
LifecycleException:  service.getName(): "Catalina";  Protocol handler start failed: org.apache.tomcat.jni.Error: Address family not supported by protocol
	at org.apache.catalina.connector.Connector.start(Unknown Source)
	at org.apache.catalina.core.StandardService.start(Unknown Source)
	at org.apache.catalina.core.StandardServer.start(Unknown Source)
	at org.apache.catalina.startup.Catalina.start(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.start(Unknown Source)
	at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
26-Oct-2009 23:15:45 org.apache.catalina.startup.Catalina start
INFO: Server startup in 15698 ms
Comment 2 Paul McDermott 2009-10-26 23:32:14 UTC
emerge --info (sorry, attachments not working on Bugzilla)

server tomcat-6 # emerge --info
Portage 2.1.6.13 (default/linux/x86/10.0/server, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-hardened-r8 i686)
=================================================================
System uname: Linux-2.6.22-hardened-r8-i686-Intel-R-_Celeron-TM-_CPU_1300MHz-with-glibc2.0
Timestamp of tree: Mon, 26 Oct 2009 22:45:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.9-r1
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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/udev/rules.d"
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://www.gigaload.org/gentoo.org/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB"
MAKEOPTS="-j5"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl acpi apache2 bash-completion bzip2 bzlib cli cracklib crypt ctype dba dovecot-sasl dri evo fam fortran gpm iconv imap isdnlog java5 libwww logrotate maildir mmx modules mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl ppds pppd python readline reflection sasl session spl ssl sysfs syslog tcpd threads unicode userlocales vim vim-syntax x86 xml xmlrpc xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Paul McDermott 2009-10-26 23:55:30 UTC
Stopping tomcat results in

INFO: Stopping Coyote HTTP/1.1 on http-8080
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xa101febc, pid=18350, tid=2698255248
#
# JRE version: 6.0_15-b03
# Java VM: Java HotSpot(TM) Client VM (14.1-b02 mixed mode, sharing linux-x86 )
# Problematic frame:
# C  [libtcnative-1.so.0.1.13+0x16ebc]  Java_org_apache_tomcat_jni_Socket_close+0x2c
#
# An error report file with more information is saved as:
# /var/tmp/tomcat-6/hs_err_pid18350.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Comment 4 Paul McDermott 2009-10-26 23:58:23 UTC
emerge -auv tomcat-native appears to cure. 

If an upgrade or a re-compile of tomcat-native is required, perhaps an elog message in tomcat would help?

New log below:

26-Oct-2009 23:53:03 org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.15.
26-Oct-2009 23:53:03 org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
26-Oct-2009 23:53:07 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
26-Oct-2009 23:53:07 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8443
26-Oct-2009 23:53:07 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 21313 ms
26-Oct-2009 23:53:09 org.apache.catalina.realm.JAASRealm setContainer
INFO: Set JAAS app name Catalina
26-Oct-2009 23:53:09 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
26-Oct-2009 23:53:09 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
26-Oct-2009 23:53:25 org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
26-Oct-2009 23:53:26 org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8443
26-Oct-2009 23:53:26 org.apache.catalina.startup.Catalina start
INFO: Server startup in 18601 ms
Comment 5 Mike Weissman 2009-10-30 12:15:07 UTC
(In reply to comment #4)
> emerge -auv tomcat-native appears to cure. 
> 
> If an upgrade or a re-compile of tomcat-native is required, perhaps an elog
> message in tomcat would help?
> 
> New log below:
> 
> 26-Oct-2009 23:53:03 org.apache.catalina.core.AprLifecycleListener init
> INFO: Loaded APR based Apache Tomcat Native library 1.1.15.
> 26-Oct-2009 23:53:03 org.apache.catalina.core.AprLifecycleListener init
> INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false],
> random [true].
> 26-Oct-2009 23:53:07 org.apache.coyote.http11.Http11AprProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> 26-Oct-2009 23:53:07 org.apache.coyote.http11.Http11AprProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8443
> 26-Oct-2009 23:53:07 org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 21313 ms
> 26-Oct-2009 23:53:09 org.apache.catalina.realm.JAASRealm setContainer
> INFO: Set JAAS app name Catalina
> 26-Oct-2009 23:53:09 org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> 26-Oct-2009 23:53:09 org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
> 26-Oct-2009 23:53:25 org.apache.coyote.http11.Http11AprProtocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> 26-Oct-2009 23:53:26 org.apache.coyote.http11.Http11AprProtocol start
> INFO: Starting Coyote HTTP/1.1 on http-8443
> 26-Oct-2009 23:53:26 org.apache.catalina.startup.Catalina start
> INFO: Server startup in 18601 ms
> 

please attach /var/tmp/tomcat-6/hs_err_pid18350.log and the output of java-config -L

-weisso
Comment 6 Miroslav Šulc gentoo-dev 2011-01-19 04:08:40 UTC
this version is not in tree anymore. please reopen if the problem persists with the versions that are in tree.