Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60180 - Tomcat doesn't create the jk2.socket file on startup
Summary: Tomcat doesn't create the jk2.socket file on startup
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-12 15:39 UTC by Nicolas Laplante
Modified: 2004-12-18 12:15 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 Nicolas Laplante 2004-08-12 15:39:13 UTC
I upgraded to tomcat-5.0.27-r3 and when I startup the server, it doesn't create the socket needed to communicate with apache via mod_jk2.

According to my jk2.properties file, the socket should be created as /opt/tomcat5/work/jk2.socket:

telvanni conf # cat jk2.properties
## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Set the desired handler list
handler.list=channelSocket,channelUnix,request

#
# Override the default port for the socketChannel
# channelSocket.port=8019
# Default:

channelUnix.file=${jkHome}/work/jk2.socket

# Just to check if the the config  is working
#shm.file=${jkHome}/work/jk2.shm

# In order to enable jni use any channelJni directive
channelJni.disabled = 0

# And one of the following directives:
# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess


Reproducible: Always
Steps to Reproduce:
1. Install Tomcat 5.0.27-r3
2. Edit conf/jk2.properties as above
3. Start the daemon

Actual Results:  
The server started without errors, but the socket didn't get created. 

Expected Results:  
It should have created the socket /opt/tomcat5/work/jk2.socket. 

telvanni conf # emerge info 
Portage 2.0.50-r9 (telvanni-x86-2004.1, gcc-3.3.3, glibc-2.3.3.20040420-r1, 
2.6.7-ck5) 
================================================================= 
System uname: 2.6.7-ck5 i686 AMD Athlon(tm) XP 2100+ 
Gentoo Base System version 1.4.16 
Autoconf: sys-devel/autoconf-2.59-r4 
Automake: sys-devel/automake-1.8.3 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -fstack-protector -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -fstack-protector -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs buildpkg ccache sandbox usepkg" 
GENTOO_MIRRORS="ftp://mirrors.tds.net/gentoo http://mirrors.tds.net/gentoo 
ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.seren.com/gentoo 
http://open-systems.ufl.edu/mirrors/gentoo" 
MAKEOPTS="-j4" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage/" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="3dnow X alsa apache2 apm arts avi berkdb cdr crypt cups dvd encode flash 
foomaticdb gd gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde libg++ libwww 
mad mcal mhash mikmod mmx motif mpeg mysql ncurses nls nptl oav oggvorbis 
opengl oss pam perl png python qt quicktime readline samba sdl slang spell sse 
ssl svga tcpd tiff truetype wmf x86 xml xml2 xmms xv zlib" 
 
telvanni conf # qpkg -v -I apache 
net-www/apache-2.0.50 * 
telvanni conf # qpkg -v -I tomcat 
www-servers/tomcat-5.0.27-r3 *
Comment 1 Segedunum 2004-10-30 08:01:29 UTC
I would try re-emerging or re-installing mod_jk and see what happens.
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-12-18 12:15:30 UTC
Try installing www-apache/mod_jk2-2.0.4 and reopen if the problem persists.