Hello! I am using Apache 2.40 built in RedHat Linux 9.0 with tomcat 2.1.24 and mod_jk2 Here are configuration see below after error message. I use 2 tomcats with 2 load balancer. I think I have also sticky sessions. Where Can I configure session length in uPortal? I think it does not wok, here are errors see: [Wed Dec 03 19:58:10 2003] [error] jk2_init() Can't find child 614 in scoreboard [Wed Dec 03 19:58:11 2003] [error] mod_jk child init 1 -2 [Wed Dec 03 19:58:11 2003] [error] jk2_init() Can't find child 616 in scoreboard [Wed Dec 03 19:58:11 2003] [error] mod_jk child init 1 -2 [Wed Dec 03 19:58:11 2003] [error] jk2_init() Can't find child 617 in scoreboard [Wed Dec 03 19:58:11 2003] [error] mod_jk child init 1 -2 [Wed Dec 03 19:58:11 2003] [error] jk2_init() Can't find child 618 in scoreboard [Wed Dec 03 19:58:11 2003] [error] mod_jk child init 1 -2 [Wed Dec 03 19:58:11 2003] [error] jk2_init() Can't find child 619 in scoreboard [Wed Dec 03 19:58:11 2003] [error] mod_jk child init 1 -2 [Wed Dec 03 19:58:11 2003] [error] jk2_init() Can't find child 620 in scoreboard [Wed Dec 03 19:58:11 2003] [error] mod_jk child init 1 -2 [Wed Dec 03 19:58:11 2003] [error] jk2_init() Can't find child 621 in scoreboard [Wed Dec 03 19:58:11 2003] [error] mod_jk child init 1 -2 [Wed Dec 03 19:58:11 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations
plus: [Wed Dec 03 19:44:46 2003] [error] ajp13.service() Error forwarding ajp13:localhost:8010 1 1 [Wed Dec 03 19:44:46 2003] [error] lb.service() worker failed 21000 for ajp13:localhost:8010 [Wed Dec 03 19:44:56 2003] [error] lb.getWorker() reenable ajp13:localhost:8019 [Wed Dec 03 19:44:56 2003] [error] channelSocket.receive(): Error receiving message body -1 11 [Wed Dec 03 19:44:56 2003] [error] workerEnv.processCallbacks() Error reading reply [Wed Dec 03 19:44:56 2003] [error] ajp13.service() ajpGetReply recoverable error 21000 [Wed Dec 03 19:44:58 2003] [error] lb.getWorker() reenable ajp13:localhost:8019 [Wed Dec 03 19:44:58 2003] [error] channelSocket.receive(): Error receiving message body -1 11 [Wed Dec 03 19:44:58 2003] [error] workerEnv.processCallbacks() Error reading reply [Wed Dec 03 19:44:58 2003] [error] ajp13.service() ajpGetReply recoverable error 21000 [Wed Dec 03 19:45:03 2003] [error] lb.getWorker() reenable ajp13:localhost:8019 Here are configuration files: mod_jk2.conf <Location /uPortal/*> JkUriSet /usr/local/tomcat4/work/jk2.socket ajp13 </Location> <Location /uPortal/*> JkUriSet /usr/local/tomcat41/work/jk2.socket ajp13 </Location> Alias /uPortal "/usr/local/tomcat4/webapps/uPortal" <Directory "/usr/local/tomcat4/webapps/uPortal"> Options Indexes FollowSymLinks </Directory> Alias /uPortal "/usr/local/tomcat41/webapps/uPortal" <Directory "/usr/local/tomcat41/webapps/uPortal"> Options Indexes FollowSymLinks </Directory> # workers2.properties #[logger] #level=DEBUG [shm:] #info=Scoreboard. Required for reconfiguration and displaying status information about servers #file=/var/run/jk2.shm file=/etc/httpd/logs/jk2.shm size=1048576 debug=0 disabled=0 #[workerEnv:] #info=Global server options #timing=1 #debug=0 # Example socket channel, explicitly set port and host. #[channel.socket:localhost:8010] #port=8010 #host=127.0.0.1 # Define the UNIX channel #[channel.un:/usr/local/tomcat4/work/jk2.socket] #info=Channel connecting to localhost:8010 via UNIX socket #tomcatId=localhost:8010 #debug=0 # Define the worker #[ajp13:/usr/local/tomcat4/work/jk2.socket] #channel=channel.un:/usr/local/tomcat4/work/jk2.socket #[ajp13:socket:localhost:8010] #channel=channel.socket:localhost:8010 #[status:status] #info=Status worker, displays runtime information #[uri:/jkstatus/*] #info=Display status information about mod_jk2, and check config for changes #worker=status:status #[uri:/examples/*] #info=Map the URI to the servlet and JSP examples #worker=ajp13:/usr/local/tomcat4/work/jk2.socket #worker=ajp13:socket:localhost:8010 #[logger] #level=DEBUG [config:] file=/etc/httpd/conf/workers2.properties debug=0 debugEnv=0 [uriMap:] info=Maps the requests. Options: debug debug=0 # Alternate file logger #[logger.file:0] #level=DEBUG #file=/etc/httpd/logs/jk2.log [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=/var/run/jk2.shm size=1000000 debug=0 disabled=0 #[lb:lb] #info=Default load balancer. #debug=0 #[lb:lb_1] #info=A second load balancer. #debug=0 #[workerEnv:] #info=Global server options #timing=1 #debug=0 # Default Native Logger (apache2 or win32 ) # can be overriden to a file logger, useful # when tracing win32 related issues #logger=logger.file:0 [channel.socket:localhost:8010] info=Ajp13 forwarding over socket debug=0 tomcatId=tomcat4 lb_factor=100 group=lb [channel.socket:localhost:8019] info=A second tomcat instance. debug=0 tomcatId=tomcat41 lb_factor=100 #group=lb group=lb1 disabled=0 #[channel.socket:localhost:8019] #info=A second tomcat instance. #debug=0 #tomcatId=tomcat41:8019 #lb_factor=1 #group=lb #disabled=0 # eksperiments #[channel.socket:localhost:8010] #info=Ajp13 forwarding over socket #debug=0 #tomcatId=tomcat4:8010 [ajp13:localhost:8010] channel=channel.socket:localhost:8010 [ajp13:localhost:8019] channel=channel.socket:localhost:8019 #[channel.unix:/usr/local/tomcat/work/jk2.socket] #info=A second channel connecting to localhost:8019 via unix socket #tomcatId=localhost:8019 #lb_factor=1 #group=lb_1 #group=lb #debug=0 [lb:lb1] worker=ajp13:localhost:8010 worker=ajp13:localhost:8019 [status:status] info=Status worker, displays runtime informations #[vm:] #info=Parameters used to load a JVM in the server process #JVM=C:\jdk\jre\bin\hotspot\jvm.dll #OPT=-Djava.class.path=${TOMCAT_HOME}/server/lib/tomcat-jni.jar;${TOMCAT_HOME}/server/lib/commons-logging.jar #OPT=-Dtomcat.home=${TOMCAT_HOME} #OPT=-Dcatalina.home=${TOMCAT_HOME} #OPT=-Xmx128M #OPT=-Djava.compiler=NONE #disabled=1 [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status: worker=status:status [uri:/examples/*] info=Example webapp in the default context. #context=/examples group=lb:lb1 #group=lb_1 debug=0 [uri:/uPortal/*] info=Example webapp in the default context. context=/uPortal group=lb:lb1 debug=0 #[uri:/uPortal/*.uP] #info=Example webapp in the default context. #context=/uPortal #group=lb:lb1 #debug=0 [uri:/uPortal/*.jsp] info=Example webapp in the default context. context=/uPortal group=lb:lb1 debug=0 [uri:/uPortal/Logout] info=Example webapp in the default context. context=/uPortal group=lb:lb1 debug=0 #[uri:/examples/servlet/*] #info=Prefix mapping #group=lb #group=lb_1 #[uri:/examples/*.jsp] #info=Extension mapping #[uri:/examples/*] #info=Map the whole webapp #[uri:/uPortal/*] #info=Map the whole uPortal # jk2.properties # Set the desired handler list handler.list=request,container,channelSocket # # socket configuration # channelSocket.port=8010 #channelSocket.address=127.0.0.1 #channelSocket.maxPort=port+10 #channelSocket.port=8089 #Information about a UNIX domain socket - we don't have this. Supposedly, the #UNIX domain socket is used for speed only #if this is used, add "channelUnix" to the handler.list above #channel.Unix.file=/home/gmh2441/uPortal/Tomcat_4-0-4/work/jk2.socket #Dynamic library serverRoot=/etc/httpd # This will enable the starting of the Tomcat from mod_jk2 apr.jniModeSo=/etc/httpd/modules/mod_jk2.so Best Wishes Ingmars Rubenis LU University of Latvia Developer IT department (371) 9227133