Re: Using mod_jk in cluster environment responds HTTP 500

2010-11-16 Thread rikslovein

Chris  all,

Thanks for your help and your responses once again. I now solved the
problem. The problem was with the jkmanager URL I was using in the code. 

I think there is a change in URL attributes from older version. The current
version uses vwa, vwr and vwf (which was coded as wa, wr  wf respectively).
I'm not sure on this but i saw them working on Unix where we have quite
older version of Apache and Tomcat installed. Please confirm on this if you
have any info.

The jkmanager URL i was using previously and the changed URL is given below:

Older URL (Works in Unix): -
http://localhost/jkmanager/?cmd=updatew=loadbal_hub_prodsw=hub1wf=1wr=hub0wa=2mime=txt

Changed URL (Working fine now on Linux): -
http://localhost/jkmanager/?cmd=updatew=loadbal_hub_prodsw=hub1vwf=1vwr=hub0vwa=2mime=txt

Thanks a lot again.

Regards.

Christopher Schultz-2 wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Rikslovein,
 
 On 11/15/2010 5:33 AM, rikslovein wrote:
 None of my tomcat is configured with HTTP connector. They are configured
 only for AJP. Does the jkmanager requires this HTTP port?
 
 Do you mean the manager webapp that comes with Tomcat? No, it doesn't
 require any HTTP connector.
 
 Any relation between the non-SSL HTTP connector and jkmanager?
 
 There is no relationship between any webapp and any connector that I
 know of.
 
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iEYEARECAAYFAkzi+AEACgkQ9CaO5/Lv0PAr1gCeI4fY5f0RyBSjGjxprzXlzGul
 /0sAn2EOuqT6qNR6lcD4YKNs0d0/mLCC
 =IyKY
 -END PGP SIGNATURE-
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Using-mod_jk-in-cluster-environment-responds-HTTP-500-tp30198809p30235421.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Using mod_jk in cluster environment responds HTTP 500

2010-11-15 Thread rikslovein

Chris,

Also one more information:

None of my tomcat is configured with HTTP connector. They are configured
only for AJP. Does the jkmanager requires this HTTP port? Any relation
between the non-SSL HTTP connector and jkmanager?

Regards.


rikslovein wrote:
 
 Thanks for the quick response Chris. 
 
 Please find the details given below:
 
 Let me know if you need more information.
 
 Thanks  regards...
 
 Server.xml
 Connector port=8009 address=localhost 
 enableLookups=false redirectPort=8443 protocol=AJP/1.3 /
 
 workers.properties:
 workers.tomcat_home=/opt/webhost/DWH-Tomcat-Inst/tomcat5.5.23
 workers.java_home=/usr/lib/jvm/java-1.5.0
 ps=/
 
 worker.list=loadbal_hub_prod,jkstatus,hub0,hub1
 
 worker.hub0.port=8009
 worker.hub0.host=localhost
 worker.hub0.type=ajp13
 worker.hub0.lbfactor=1
 worker.hub0.redirect=hub1
 
 worker.hub1.port=9009
 worker.hub1.host=localhost
 worker.hub1.type=ajp13
 worker.hub1.lbfactor=1
 worker.hub1.redirect=hub0
 
 worker.jkstatus.type=status
 
 worker.loadbal_hub_prod.type=lb
 worker.loadbal_hub_prod.balanced_workers=hub0,hub1
 worker.loadbal_hub_prod.sticky_session=false
 
 
 
 Christopher Schultz-2 wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Rikslovein,
 
 On 11/12/2010 7:19 AM, rikslovein wrote:
 I've one apache and two tomcat installed in my server. The communication
 happens using AJP 1.3. I'm using the jkmanager URL to
 activate/deactivate
 the tomcat instances. Also, I'm making sure atleast one of the two
 tomcat
 instance is up when other one is down.
 
 The problem is sometimes the client request does go to deactivated
 tomcat
 instance resulting in HTTP 500 error. I want the request to be
 redirected
 only to the active tomcat instance and not the deactivated one.
 
 Please suggest how can I do this. 
 
 Can you post your workers.properties file (minus any secrets) and also
 your Connector configuration from Tomcat's server.xml file?
 
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iEYEARECAAYFAkzdY9oACgkQ9CaO5/Lv0PAt9ACeMGF7xMjQl3oM+qz66LP0cENS
 mEQAmwZ2pRzawrlcBaOlqOD3tXyES9ap
 =zsLx
 -END PGP SIGNATURE-
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Using-mod_jk-in-cluster-environment-responds-HTTP-500-tp30198809p30215578.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Using mod_jk in cluster environment responds HTTP 500

2010-11-15 Thread rikslovein

awarnier,

Thanks for your response. I changed this and still it didn't solve my
problem. The request are still reaching to the server which I made down
using jkmanager.

Here's the updated workers.proeprties:
worker.list=loadbal_hub_prod,jkstatus
worker.loadbal_hub_prod.type=lb
worker.loadbal_hub_prod.balance_workers=hub0,hub1
worker.loadbal_hub_prod.sticky_session=false

worker.jkstatus.type=status

worker.list=hub0
worker.hub0.port=8009
worker.hub0.host=localhost
worker.hub0.type=ajp13
worker.hub0.lbfactor=1
#worker.hub0.redirect=hub1

worker.list=hub1
worker.hub1.port=9009
worker.hub1.host=localhost
worker.hub1.type=ajp13
worker.hub1.lbfactor=1
#worker.hub1.redirect=hub0


Regards...


awarnier wrote:
 
 rikslovein wrote:
 Thanks for the quick response Chris. 
 
 Please find the details given below:
 
 Let me know if you need more information.
 
 Thanks  regards...
 
 Server.xml
 Connector port=8009 address=localhost 
 enableLookups=false redirectPort=8443 protocol=AJP/1.3 /
 
 workers.properties:
 workers.tomcat_home=/opt/webhost/DWH-Tomcat-Inst/tomcat5.5.23
 workers.java_home=/usr/lib/jvm/java-1.5.0
 
 The above 2 properties are obsolete (since a long time).  Remove them.
 
 ps=/
 
 I think this one too (not sure).
 
 
 worker.list=loadbal_hub_prod,jkstatus,hub0,hub1
 
 
 This is wrong.  If the workers are already balanced (by the
 loadbal_hub_prod balancer), 
 then they should not be separately listed in worker.list.
 Correct :
 worker.list=loadbal_hub_prod,jkstatus
 
 worker.hub0.port=8009
 worker.hub0.host=localhost
 worker.hub0.type=ajp13
 worker.hub0.lbfactor=1
 worker.hub0.redirect=hub1
 
 worker.hub1.port=9009
 worker.hub1.host=localhost
 worker.hub1.type=ajp13
 worker.hub1.lbfactor=1
 worker.hub1.redirect=hub0
 
 worker.jkstatus.type=status
 
 worker.loadbal_hub_prod.type=lb
 worker.loadbal_hub_prod.balanced_workers=hub0,hub1
 
 The property is balance_workers, not balanced_workers.
   worker.loadbal_hub_prod.balance_workers=hub0,hub1
 
 (http://tomcat.apache.org/connectors-doc/generic_howto/loadbalancers.html)
 
 worker.loadbal_hub_prod.sticky_session=false
 
 
 
 Christopher Schultz-2 wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Rikslovein,

 On 11/12/2010 7:19 AM, rikslovein wrote:
 I've one apache and two tomcat installed in my server. The
 communication
 happens using AJP 1.3. I'm using the jkmanager URL to
 activate/deactivate
 the tomcat instances. Also, I'm making sure atleast one of the two
 tomcat
 instance is up when other one is down.

 The problem is sometimes the client request does go to deactivated
 tomcat
 instance resulting in HTTP 500 error. I want the request to be
 redirected
 only to the active tomcat instance and not the deactivated one.

 Please suggest how can I do this. 
 Can you post your workers.properties file (minus any secrets) and also
 your Connector configuration from Tomcat's server.xml file?

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkzdY9oACgkQ9CaO5/Lv0PAt9ACeMGF7xMjQl3oM+qz66LP0cENS
 mEQAmwZ2pRzawrlcBaOlqOD3tXyES9ap
 =zsLx
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Using-mod_jk-in-cluster-environment-responds-HTTP-500-tp30198809p30218786.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Using mod_jk in cluster environment responds HTTP 500

2010-11-14 Thread rikslovein

Thanks for the quick response Chris. 

Please find the details given below:

Let me know if you need more information.

Thanks  regards...

Server.xml
Connector port=8009 address=localhost 
enableLookups=false redirectPort=8443 protocol=AJP/1.3 /

workers.properties:
workers.tomcat_home=/opt/webhost/DWH-Tomcat-Inst/tomcat5.5.23
workers.java_home=/usr/lib/jvm/java-1.5.0
ps=/

worker.list=loadbal_hub_prod,jkstatus,hub0,hub1

worker.hub0.port=8009
worker.hub0.host=localhost
worker.hub0.type=ajp13
worker.hub0.lbfactor=1
worker.hub0.redirect=hub1

worker.hub1.port=9009
worker.hub1.host=localhost
worker.hub1.type=ajp13
worker.hub1.lbfactor=1
worker.hub1.redirect=hub0

worker.jkstatus.type=status

worker.loadbal_hub_prod.type=lb
worker.loadbal_hub_prod.balanced_workers=hub0,hub1
worker.loadbal_hub_prod.sticky_session=false



Christopher Schultz-2 wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Rikslovein,
 
 On 11/12/2010 7:19 AM, rikslovein wrote:
 I've one apache and two tomcat installed in my server. The communication
 happens using AJP 1.3. I'm using the jkmanager URL to activate/deactivate
 the tomcat instances. Also, I'm making sure atleast one of the two tomcat
 instance is up when other one is down.
 
 The problem is sometimes the client request does go to deactivated tomcat
 instance resulting in HTTP 500 error. I want the request to be redirected
 only to the active tomcat instance and not the deactivated one.
 
 Please suggest how can I do this. 
 
 Can you post your workers.properties file (minus any secrets) and also
 your Connector configuration from Tomcat's server.xml file?
 
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iEYEARECAAYFAkzdY9oACgkQ9CaO5/Lv0PAt9ACeMGF7xMjQl3oM+qz66LP0cENS
 mEQAmwZ2pRzawrlcBaOlqOD3tXyES9ap
 =zsLx
 -END PGP SIGNATURE-
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Using-mod_jk-in-cluster-environment-responds-HTTP-500-tp30198809p30215524.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Using mod_jk in cluster environment responds HTTP 500

2010-11-12 Thread rikslovein

Greeting,
I've one apache and two tomcat installed in my server. The communication
happens using AJP 1.3. I'm using the jkmanager URL to activate/deactivate
the tomcat instances. Also, I'm making sure atleast one of the two tomcat
instance is up when other one is down.

The problem is sometimes the client request does go to deactivated tomcat
instance resulting in HTTP 500 error. I want the request to be redirected
only to the active tomcat instance and not the deactivated one.

Please suggest how can I do this. 

Regards,
rikslovein
-- 
View this message in context: 
http://old.nabble.com/Using-mod_jk-in-cluster-environment-responds-HTTP-500-tp30198809p30198809.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org