8 Replies Latest reply on Apr 6, 2009 6:26 PM by jmalkan

    Problem with Apache loadbalancer, j_security_check and JBos

    sudeepthi

      Hi,
      I am using Apache load balancer using mod_jk and Jboss as a application server. Currently in my cluster i configured two Jboss servers which are running on different machines. I am using round-robin load balancer algorithm.

      In my application i am using JAAS as a form based authentication. In my clustered configuration the request will be go to the server in round-robin way. I mean that if the first request goes to the first server then the second request goes to the second server and the third request goes to again first server and so on.This configuration is done without sticky session.

      Now the problem is if i request for login page, the request is going to first server and the login page is displayed successfully. After entering user name and password if i submit the page, the request is going to the second server and its displaying "HTTP Status 400 - Invalid direct reference to form login page" instead of displaying the home page of my application.

      I am using Apache web server 2.2.4, mod_jk 1.2.50 and JBoss 4.0.2 Application server.

      Can anybody help me how to solve this issue? I am waiting for your valuable response.

      Thanks & Regards,
      Sudeepthi