You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Cary Conover <tc...@yahoo.com> on 2004/09/05 02:26:19 UTC
Configuration Assistance Request - Apache 2.0.5 - Tomcat 4.1.3 - Tomcat 4.1.3 Connector - JK2
Hello Folks,
It has been a long week. I finally got the Apache 2.0.50 to compile on AIX 5.2. I had to use gcc to get it done. Too many issues with C for AIX 6.
Have moved on. Got Jakarta 4.1.3 installed from fresh copy that I got from the jakarta site. I also used the Jakarta 4.1.3 connectors to compile the mod_jk.so.
I have gotten Tomcat to start on 8080 and 49080 and change control for ajp13 from 8009 to 49009. No problems getting the Tomcat working as long as I worked in the CATALINA_HOME. Ever since I started making the CATALINA_BASE the configuration has been amiss.
Have found some notes on the internet yet it is very vague.
Have
http://starbase:49080 working.
http://starbase:49080/examples works and all subdirectories
http://starbase:49080/tomcat-docs works as well.
http://starbase/jkstatus is working as well.
Here is the out from it.
ajp13 runtime info
ajp13 information, using getAttribute()
id name lb_factor lb_value debug channel level route routeRedirect errorState graceful groups disabled epCount errorTime connectTimeout replyTimeout prepostTimeout
0 localhost:49009 1 1 0 channel.socket:localhost:49009 0 localhost:49009 null 0 0 0 0 0 0 0 0
channel.socket runtime info
channel.socket information, using getAttribute()
id name host port keepalive timeout nodelay graceful debug disabled
0 localhost:49009 127.0.0.1 8009 0 0 0 0 0 0
uri runtime info
uri information, using getAttribute()
id name host uri group context inheritGlobals match_type servlet timing aliases path
0 null null null 1 host null 0 null null
0 /jkstatus/* * /jkstatus/* status:status / 1 prefix null 0 null /jkstatus/*
0 /examples/* * /examples/* ajp13:localhost:49009 / 1 prefix null 0 null /examples/*
0 /tomcat-docs/* * /tomcat-docs/* ajp13:localhost:49009 / 1 prefix null 0 null /tomcat-docs/*
0 /servlet/* * /servlet/* ajp13:localhost:49009 / 1 prefix null 0 null /servlet/*
0 * * null null null 1 host null 0 null null
0 */ * / lb:lb / 1 context null 0 null /
Here is the workers2.properties:
# only at beginnin. In production uncomment it out
[logger.apache2]
level=DEBUG
[shm]
info=Scoreboard. Required for reconfiguration and status with multiprocess servers
file=/usr/local/apache2/logs/jk2.shm
size=1048576
debug=0
disabled=0
#UNIX domain socket
#[channel.un:/usr/local/tomcat413/803/work/jk2.socket]
#tomcatId=localhost:49009
#debug=0
# Example socket channel, override port and host.
[channel.socket:localhost:49009]
port=49009
host=127.0.0.1
# define the worker
[ajp13:localhost:49009]
channel=channel.socket:localhost:49009
# Announce a "status" worker
[status:status]
info=Status worker. Displays runtime information.
[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:status
# Uri mapping
[uri:/examples/*]
Info=map the entire "examples" webapp
group=ajp13:localhost:49009
[uri:/tomcat-docs/*]
group=ajp13:localhost:49009
[uri:/servlet/*]
group=ajp13:localhost:49009
Here is the 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=apr,request,channelJni
#
# 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
handler.list=channelSocket,request
channelSocket.port=49009
channelSocket.address=127.0.0.1
request.tomcatAuthentication=false
# jk2.properties
# Configured for channel UNIX
# Set the desired handler list
#handler.list=apr,request,channelUnix
# UNIX Domain socket location
#channelUnix.file=/usr/local/tomcat413/803/work/jk2.socket
# Dynamic library
#serverRoot=/law/web
#apr.NativeSo=/usr/local/apache2/modules/jkjni.so
Looking for ideas and suggestions. Will send log selections if it would help.
Cary
---------------------------------
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
AW: Configuration Assistance Request - Apache 2.0.5 - Tomcat 4.1.3 - Tomcat 4.1.3 Connector - JK2
Posted by SH Solutions <sh...@gmx.net>.
HI
> Got Jakarta 4.1.3 installed from fresh copy that I got from the jakarta
site.
You are joking?
4.1.30 is current. I hope, you ment 4.1.30 and not 4.1.3...
Regards,
steffen
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org