Hello ,
I am currently running tomcat 5.0.19 , apache 2.0.49 on a redhat 9 box. I have been succesful in geting mod_jk to work for a single instance of tomcat but as soon as I add a second instance in my workers2.properties I get a very interesting problem. I can get to both tomcat instance but I am unable to maintain a session . The way I know this is because I go to the jsp-examples and I test out the Carts app. Everytime I add a video to the shopping cart only one item appears instead of a second item added. I have tried to keep my config as vanilla a possible to keep it simple. The only thing that I have done to my server.xml is what is described in the "session replication how to" from the tomcat website:


http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html

If you check out that web page you will see a link for load balancing . Once you click on it you see that if you want to do
load balancing with mod_jk2 then it refers you to the "JK Documentation" instead of providing a link. I have been unable to find any load balancing documentation in here :


http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html

maybe I am just missing something. I noticed that in my server.xml there is a portion that is commented out and is specific to JK2 load balancing .

<!-- You should set jvmRoute to support load-balancing via JK/JK2 ie :
<Engine name="Standalone" defaultHost="localhost:8009" debug="0" jvmRoute="jvm1">
-->


Everytime I make an attempt to uncomment this tomcat will not start.
Regardless this is what my workers2.properties looks like.



#INSTANCE 1 #Socket Channel, explicity set port and host [channel.socket:localhost:8009] info=Ajp13 forwarding over socket debug=0 tomcatId=localhost:8009 lb_factor=1

#define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009


######################################## #INSTANCE 2 #Socket Channel, explicity set port and host [channel.socket:localhost:8019] info=Ajp13 forwarding over socket debug=0 tomcatId=localhost:8019 lb_factor=1

#define the worker
[ajp13:localhost:8019]
channel=channel.socket:tomcat2:8019

########################################
[logger]
level=DEBUG

[config:]
file=/usr/local/apache2.0.49/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=/usr/local/apache2.0.49/logs/jk2.log
#Share memory handling. Needs To be set.
[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess servers
file=/usr/local/apache2.0.49/logs/jk2.shm
size=1048576
debug=0
disabled=0


[workerEnv:]
info=Global server options
timing=1
debug=0


[status:status] info=Status worker, displays runtime informations


############################## [uri:/jkstatus/*] info=Display status information and checks the config file for changes group=status: worker=status:status ############################## [uri:/jsp-examples] info=Example webapp in the default context. context=/examples debug=0

[uri:/jsp-examples/servlet/*]
info=Prefix mapping
[uri:/jsp-examples/*.jsp]
info=Extension mapping

[uri:/jsp-examples/*]
info=Map the whole webapp
##############################



any help would be greatly appreciated.

-Pablo




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to