tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From keita elhadji <keita_elha...@yahoo.fr>
Subject mod-jk2 problems
Date Mon, 10 May 2004 08:40:04 GMT

Hi,

Excuse me to wrote you in your own e-mail address but
i have a problem with mod_jk2 .
I have two PC  with tomcat5.019
1st PC name is : www.avisdunet.biz
2nd PC name is : www1.avisdunet.biz

In the first i install apache2.0.49 with mod_jk2 and i
want to work with clustering the two server.
and when i start apache it works correctly :

[Mon May 10 10:28:22 2004] [notice] config.update():
done logger
[Mon May 10 10:28:22 2004] [notice]
config.setAttribute() Error setting config: debigEnv 0
[Mon May 10 10:28:22 2004] [notice] config.update():
done config:
[Mon May 10 10:28:22 2004] [notice] config.update():
done uriMap:
[Mon May 10 10:28:22 2004] ( info ) [jk_logger_file.c
(176)]  Level DEBUG 0 
[Mon May 10 10:28:22 2004] [notice] config.update():
done logger.file:0
[Mon May 10 10:28:22 2004] [notice] config.update():
done shm
[Mon May 10 10:28:22 2004] [notice] config.update():
done workerEnv:
[Mon May 10 10:28:22 2004] [notice] config.update():
done lb:lb
[Mon May 10 10:28:22 2004] [notice] config.update():
done channel.socket:localhost:8009
[Mon May 10 10:28:22 2004] [notice] config.update():
done channel.socket:192.168.0.68:8009
[Mon May 10 10:28:22 2004] [notice] config.update():
done ajp13:localhost:8009
[Mon May 10 10:28:22 2004] [notice] config.update():
done ajp13:192.168.0.68.biz:8009
[Mon May 10 10:28:22 2004] [notice] config.update():
done uri:/jsp-examples/*
[Mon May 10 10:28:22 2004] [notice] config.update():
done uri:/pro/*.jsp
[Mon May 10 10:28:22 2004] [notice] config.update():
done uri:/balancer
[Mon May 10 10:28:22 2004] [notice] config.update():
done status:

when i start tomcat it works correctly.
But apache is not load balancing.

my conf files are:

httpd.conf :
------------

LoadModule jk2_module modules/mod_jk2.so
# Some configuration for JOnAS
#Include conf/JOnas.conf

# 

<IfModule mod_jk2.c>
  JKSet config:file
/usr/local/apache2/conf/workers2.properties
</IfModule>

workers2.properties : 
---------------------

[logger]
level=DEBUG
[config:]
debug=0
debigEnv=0

[uriMap:]
info=Maps the requests, Options: debug
debug=0

# Alternate file logger
[logger.file:0]
level=DEBUG
file=/usr/local/apache2/logs/jk2.log

[shm]
info=Scoreboard. Requried for reconfiguration and
status with multiprocess
servers.
file=anon
#size=104856
#debug=1

[workerEnv:]
info=Global server options
debug=0
logger=logger.file:0

# Defines a load balancer named lb. Use even if you
only have one machine.
[lb:lb]
info=Default Load Balancer
debug=10

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
lb_factor=1
tomcatId=tomcat

# Second Scoket Channel
[channel.socket:192.168.0.68:8009]
port=8009
host=192.168.0.68
lb_factor=1
tomcatId=tomcat
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
group=lb

# define the second worker
[ajp13:192.168.0.68.biz:8009]
channel=channel.socket:192.168.0.68:8009
group=lb


# Map the Tomcat examples webapp to the Web server uri
space
[uri:/jsp-examples/*]
info=JSP Examples
group=lb


[uri:/pro/*.jsp]
info=Test JSP Page
group=lb

[uri:/balancer]
group=lb
[status:]

server.xml:
-----------

 <!-- Define a non-SSL Coyote HTTP/1.1 Connector on
port 8080 -->
    <Connector port="8080"
               maxThreads="150" minSpareThreads="25"
maxSpareThreads="75"
               enableLookups="false"
redirectPort="8443" acceptCount="100"
               debug="0" connectionTimeout="20000"
               disableUploadTimeout="true" />


 <!-- Define a Coyote/JK2 AJP 1.3 Connector on port
8009 -->
    <Connector port="8009"
               enableLookups="false"
redirectPort="8443" debug="0"
               protocol="AJP/1.3" />

 <Engine jvmRoute="tomcat" name="Standalone"
defaultHost="localhost" debug="0">

Thank you for your answer.
                               KEITA


	

	
		
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! 
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo! Messenger
sur http://fr.messenger.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message