1 Reply Latest reply on Jan 26, 2011 11:04 PM by Saurabh Valsangkar

    Strange issue related to clustering

    Saurabh Valsangkar Newbie

      Hi All,

      Background: We are facing issues with JBOSS 5 clustering. Recently we have migrated our app server from Jboss version 4 to Jboss 5.

      We have two web application deployed in app server one in server/all/deploy and other in server/all/modules/

      Description: When both nodes of the clustered setup are up, and user send a request which is specifically intercontext(between the 2 we appls on the same server), the request is getting redirected to login page.

      We suspect it to be related to connector somehow but not sure what configuration is wrong.


            <!-- A HTTP/1.1 Connector on port 8080 -->

            <Connector protocol="HTTP/1.1" port="9378" address="${jboss.bind.address}" connectionTimeout="20000" redirectPort="9388" URIEncoding="UTF-8" maxThreads="250"  emptySessionPath="true" enableLookups="false"/>

       

            <!-- Add this option to the connector to avoid problems with
                .NET clients that don't implement HTTP/1.1 correctly
               restrictedUserAgents="^.*MS Web Services Client Protocol 1.1.4322.*$"
            -->

       

            <!-- A AJP 1.3 Connector on port 8009 -->

            <Connector protocol="AJP/1.3" connectionTimeout="600000" port="9375" address="${jboss.bind.address}" redirectPort="9388" URIEncoding="UTF-8" maxThreads="250" emptySessionPath="true" enableLookups="false"/>

       

       

      Apache version: Apache 2.2.17

      modjk version: 1.2.20

      Please let me know if you need any more inputs.

      Awaiting for the replies.

       

      Thanks,

      Saurabh Valsangkar

        • 1. Strange issue related to clustering
          Saurabh Valsangkar Newbie

          We found the issue causing above behavior. Recently we upgraded from Jboss 4 to Jboss 5. We have 2 webapps in the app server. We use cookies to maintain the session level information.

          - In Jboss 5 cookies are bound to context with specific app. and hence are not accessible or behave differerntly across web app. Solution to this problem is modify deploy/jbossweb.sar/context.xml and add following line:

          <SessionCookie path="/"/>

          This will make sure that cookies are bound to / and being shared between 2 apps.

          Hope this helps someone.

           

          THanks,

          Saurabh V.