Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

Tanmoy Biswas

Greenhorn
+ Follow
since Feb 04, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Tanmoy Biswas

Hello everybody,

I have configured two Tomcat 5.5.9 server and an Apache HTTP server 2.2.10 for tomcat clustering. It is working fine. I need to configure SSL so that I can access my application on Tomcat using https. I have configured SSL separately for Apache HTTP server 2.2.10 and Tomcat 5.5.9. Both are working fine separately. For Apache server I entered http://localhost and https://localhost, it is working. For Tomcat I entered http://localhost:8080/myApp and https://localhost:8443/myApp, it is working. In clustered mode I entered http://localhost/myApp, it is working. But when I entered https://localhost/myApp, 404 error is showing.

In which area I should concentrate on?

What should I do?

Please help me.............

Thanks in advance..........................

Tanmoy
13 years ago
Hello everybody,

I have configured two Tomcat 5.5.9 server and an Apache HTTP server 2.2.10 for tomcat clustering. It is working fine. I need to configure SSL.
My questions are:-

1) Should I need to configure SSL only on Apache HTTP server or only on Tomcat server or Apache HTTP server and Tomcat server both?

2) How to configure?

3) Is clustering can be done without Apache HTTP server and only with Tomcat?

Please give some idea.............

Thanks in advance..........................

Tanmoy
13 years ago
Thanks Javid Jamae,

Thank you for your reply. I think I have done a silly mistake. I have solved that and it is working fine.

The mistake was in workers.properties file. It should be worker.worker1.type=ajp13 and worker.worker2.type=ajp13, not that I have given worker.worker1.port=ajp13 and worker.worker2.port=ajp13. I have changed it and it is working fine.





13 years ago
Hello everybody,

I am new to this forum. I am trying to cluster two Tomcat 5.5.9 with Apache HTTP server 2.2.4 and Connector mod_jk.so for Apache HTTP server 2.2.4 in Windows XP PC of mine.

I have installed all in c:/ drive like c:/tomcat, c:/tomcat2 and c:/Apache2.2.
I placed the mod_jk.so file into the modules folder of Apache HTTP server 2.2.4.

1) I have configured two Tomcat in the way mentioned below:-

1st Tomcat's server.xml:-
a) <Server port="8005" shutdown="SHUTDOWN">
b) <Connector port="8088" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
c) <Connector port="8009" redirectPort="8443" protocol="AJP/1.3" />


2nd Tomcat's server.xml:-
a) <Server port="8025" shutdown="SHUTDOWN">
b) <Connector port="8018" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
c) <Connector port="8019" redirectPort="8443" protocol="AJP/1.3" />


2) I have created workers.properties file in Apache HTTP server's conf folder.

workers.properties:-
workers.tomcat_home=C:/tomcat

workers.java_home=C:/jdk1.5.0_07

worker.list=worker1,worker2

worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.port=ajp13

worker.worker2.port=8019
worker.worker2.host=localhost
worker.worker2.port=ajp13


3) I have written below mentioned lines into Apache HTTP server's httpd.conf file just after LoadModule declaration the in conf folder.

LoadModule jk_module modules/mod_jk.so

#Path to workers.properties
JkWorkersFile C:/Apache2.2/conf/workers.properties

#Path to jk logs
JkLogFile C:/Apache2.2/mod_jk.log

#Jk log level[debug/error/info]
JkLogLevel info

#Jk log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"

#JkOptions for forwarding
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

#JkRequestLogFormat set the request format
JkRequestLogFormat "%w %V %T"

JkMount /jsp-examples worker1
JkMount /jsp-examples/* worker1

JkMount /tomcat-docs worker2
JkMount /tomcat-docs/* worker2


Now the problem is when I start the Apache HTTP server 2.2.4 I can see errors in the mod_jk.log file given below.

[Wed Feb 04 11:24:23 2009][4004:2960] [warn] jk_map.c (404): Duplicate key 'worker.worker1.port' detected - previous value '8009' will be overwritten with 'ajp13'.
[Wed Feb 04 11:24:23 2009][4004:2960] [warn] jk_map.c (404): Duplicate key 'worker.worker2.port' detected - previous value '8019' will be overwritten with 'ajp13'.
[Wed Feb 04 11:24:23 2009][4004:2960] [error] jk_ajp_common.c (1997): invalid host and port localhost 0
[Wed Feb 04 11:24:23 2009][4004:2960] [error] jk_worker.c (161): validate failed for worker1
[Wed Feb 04 11:24:23 2009][4004:2960] [error] jk_worker.c (259): failed to create worker worker1
[Wed Feb 04 11:24:23 2009][4004:2960] [warn] jk_map.c (404): Duplicate key 'worker.worker1.port' detected - previous value '8009' will be overwritten with 'ajp13'.
[Wed Feb 04 11:24:23 2009][4004:2960] [warn] jk_map.c (404): Duplicate key 'worker.worker2.port' detected - previous value '8019' will be overwritten with 'ajp13'.
[Wed Feb 04 11:24:23 2009][4004:2960] [error] jk_ajp_common.c (1997): invalid host and port localhost 0
[Wed Feb 04 11:24:23 2009][4004:2960] [error] jk_worker.c (161): validate failed for worker1
[Wed Feb 04 11:24:23 2009][4004:2960] [error] jk_worker.c (259): failed to create worker worker1
[Wed Feb 04 11:24:23 2009][3248:1844] [warn] jk_map.c (404): Duplicate key 'worker.worker1.port' detected - previous value '8009' will be overwritten with 'ajp13'.
[Wed Feb 04 11:24:23 2009][3248:1844] [warn] jk_map.c (404): Duplicate key 'worker.worker2.port' detected - previous value '8019' will be overwritten with 'ajp13'.
[Wed Feb 04 11:24:23 2009][3248:1844] [error] jk_ajp_common.c (1997): invalid host and port localhost 0
[Wed Feb 04 11:24:23 2009][3248:1844] [error] jk_worker.c (161): validate failed for worker1
[Wed Feb 04 11:24:23 2009][3248:1844] [error] jk_worker.c (259): failed to create worker worker1
[Wed Feb 04 11:24:23 2009][3248:1844] [warn] jk_map.c (404): Duplicate key 'worker.worker1.port' detected - previous value '8009' will be overwritten with 'ajp13'.
[Wed Feb 04 11:24:23 2009][3248:1844] [warn] jk_map.c (404): Duplicate key 'worker.worker2.port' detected - previous value '8019' will be overwritten with 'ajp13'.
[Wed Feb 04 11:24:23 2009][3248:1844] [error] jk_ajp_common.c (1997): invalid host and port localhost 0
[Wed Feb 04 11:24:23 2009][3248:1844] [error] jk_worker.c (161): validate failed for worker1
[Wed Feb 04 11:24:23 2009][3248:1844] [error] jk_worker.c (259): failed to create worker worker1


But the server starts successfully. After that I start two Tomcat web servers and they also starts successfully.

Now I open two browser and give a link like:- http://localhost/jsp-examples and http://localhost/tomcat-docs but it shows 500 internal server error in both the browser. I checked the access.log file in logs folder of Apache HTTP server 2.2.4 and I found this:-

127.0.0.1 - - [04/Feb/2009:11:32:50 +0530] "GET / HTTP/1.1" 200 44
127.0.0.1 - - [04/Feb/2009:11:33:47 +0530] "GET /jsp-examples HTTP/1.1" 500 536
127.0.0.1 - - [04/Feb/2009:11:34:02 +0530] "GET /tomcat-docs HTTP/1.1" 500 536


Please correct me if anything is wrong here. Help needed.

Thanks in advance........
Tanmoy

13 years ago