4 Replies Latest reply: May 1, 2011 8:22 PM by handat RSS

    iPlanet Web Server & Glassfish not takeover session from stoped instance?

    MadoatZ
      I have 3 Physical Machine

      1> server hostname is 'linuxgf175'(192.168.1.175) main cluster control (DAS) and Install iPlanet Webserver with gflb-configurator
      2> server hostname is 'linuxgf170'(192.168.1.170) server for node1(n1) has Instance1 (i1)
      3> server hostname is 'linuxgf180'(192.168.1.180) server for node2(n2) has Instance2 (i2)

      1. I was install iPlanet Web Server to same DAS machine. (192.168.1.175)

      2. And create Server Certificates request.
      Certificate Details
      Nickname cert-linuxgf175
      Subject CN=linuxgf175
      Issuer Self Signed
      Key Type RSA
      Key Size (bits) 1024
      Valid From April 18, 2011 7:30:09 PM ICT
      Valid Till April 18, 2012 7:30:09 PM ICT
      Fingerprint CE:D8:5E:97:DB:56:89:00:56:A7:0F:EB:0D:D4:4A:06
      Serial Number 00:94:26:11:AB
      Server Name linuxgf175
      (Picture : http://s138.photobucket.com/albums/q262/madoatz/?action=view&current=iPl... )
      3. And create new http-listenser (SSL for communicate with DAS port 8082 )
      (Picture : http://s138.photobucket.com/albums/q262/madoatz/?action=view&current=iPl... )

      4. And import cert file(s1as.rfc) to glassfish-lbconfigurator wizard. (run lb-configure command #java -jar glassfish-lbconfigulator.jar )
      I was exported that file like this command :
      keytool -export -rfc -alias s1as -keystore /usr/glassfish3/glassfish/domains/domain1/config/keystore.jks -file ./s1as.rfc

      5. Create and Apply http-lb to DAS domain success !! :)
      asadmin> create-http-lb devicehost linuxgf175 deviceport 8082 --target c1 cluster_lb
      Enter admin user name> admin
      Enter admin password for user "admin">
      Command create-http-lb executed successfully.
      asadmin>
      asadmin> apply-http-lb-changes cluster_lb
      Enter admin user name> admin
      Enter admin password for user "admin">
      Command apply-http-lb-changes executed successfully.
      6. Deploy "clusterjsp.ear" Application to Cluster c1 with avalibilityenable=true
      deploy success
      (Picture : http://s138.photobucket.com/albums/q262/madoatz/?action=view&current=iPl... )
      7.try to open application , use browser open to iPlanet webserver success
      http://192.168.1.175:80/clusterjsp

      ## But, It can not handle session between instance (i1) and Instance 2 (i2)
      i input some data session into instance (i1)
      HttpSession Information:

      Served From Server: 192.168.1.175
      Server Port Number: 80
      Executed From Server: linuxgf170
      Executed Server IP Address: 127.0.0.1
      Session ID: 3ed17253ef55fb5d37203a738e2b
      Session Created: Thu Apr 21 00:20:08 ICT 2011
      Last Accessed: Thu Apr 21 00:20:08 ICT 2011
      Session will go inactive in 1800 seconds

      INPUT : test1 = test1
      INPUT : test2 = test2

      after that try to stop Instance (i1) linuxgf170

      come back to browser and refesh button. It's change route display to instance i2 (linuxgf180)
      HttpSession Information:

      Served From Server: 192.168.1.175
      Server Port Number: 80
      Executed From Server: linuxgf180
      Executed Server IP Address: 127.0.0.1
      Session ID: 3ee66ddd60498d68660a55fadcc5
      Session Created: Thu Apr 21 00:21:34 ICT 2011
      Last Accessed: Thu Apr 21 00:21:34 ICT 2011
      Session will go inactive in 1800 seconds

      BUT INPUT DATA is not display ?? I loss...session.

      Please sir.... please see image url and help clarify T_T
      Can direct contect to me for more help Thank you very much for best support.

      mr_lalit@hotmail.com
      skype : mr_lalit
        • 1. Re: iPlanet Web Server & Glassfish not takeover session from stoped instance?
          MadoatZ
          More iPlanet startup log....

          [root@linuxgf175 webserver7]# cd admin-server/
          [root@linuxgf175 admin-server]# cd bin/
          [root@linuxgf175 bin]# ./startserv
          Oracle iPlanet Web Server 7.0.9 B07/04/2010 01:31
          info: CORE3016: daemon is running as super-user
          info: CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.6.0_20] from [Sun Microsystems Inc.]
          info: WEB0100: Loading web module in virtual server [admin-server] at [admingui]
          info: WEB0100: Loading web module in virtual server [admin-server] at [jmxconnector]
          info: HTTP3072: admin-ssl-port: https://linuxgf175:8989 ready to accept requests
          info: CORE3274: successful server startup
          [root@linuxgf175 bin]# cd ../../
          [root@linuxgf175 webserver7]# pwd
          /usr/glassfish3/webserver7
          [root@linuxgf175 webserver7]# cd https-linuxgf175/
          [root@linuxgf175 https-linuxgf175]# cd bin/
          [root@linuxgf175 bin]# ./startserv
          Oracle iPlanet Web Server 7.0.9 B07/04/2010 01:31
          info: reports: Initializing lbplugin BuildId: GlassFish 3.1 load-balancer plugin b05
          info: CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.6.0_20] from [Sun Microsystems Inc.]
          config: , name-trans-passthrough reports: init-passthrough has not been called
          config: , name-trans-passthrough reports: init-passthrough has not been called
          config: , name-trans-passthrough reports: init-passthrough has not been called
          warning: reports: lb.configurator: XML_VALIDATOR_WARNING: Cookies will not be rewritten by web server. All cookie updates will be handled by application server. If you are using older version of application server, then failover will not work.
          warning: reports: lb.configurator: Preferred failover instance feature is enabled.
          warning: reports: lb.runtime: RNTM2019: Daemon http://linuxgf170:28080 has been intialized.
          warning: reports: lb.runtime: RNTM2019: Daemon https://linuxgf170:28181 has been intialized.
          warning: reports: lb.runtime: RNTM2019: Daemon http://linuxgf180:28080 has been intialized.
          warning: reports: lb.runtime: RNTM2019: Daemon https://linuxgf180:28181 has been intialized.
          warning: reports: lb.runtime: RNTM2019: Daemon http://linuxgf170:28081 has been intialized.
          warning: reports: lb.runtime: RNTM2019: Daemon https://linuxgf170:28182 has been intialized.
          info: HTTP3072: http-listener-1: http://linuxgf175:80 ready to accept requests
          info: HTTP3072: http-listener-ssl: https://linuxgf175:8090 ready to accept requests
          info: CORE3274: successful server startup
          [root@linuxgf175 bin]#
          • 2. Re: iPlanet Web Server & Glassfish not takeover session from stoped instance?
            MadoatZ
            More Glasssfish Cluster Information

            asadmin>
            asadmin> get "configs.config.c1-config.group-management-service.*"
            Enter admin user name> admin
            Enter admin password for user "admin">
            configs.config.c1-config.group-management-service.group-discovery-timeout-in-mi
            configs.config.c1-config.group-management-service.failure-detection.heartbeat-f
            configs.config.c1-config.group-management-service.failure-detection.max-missed-
            configs.config.c1-config.group-management-service.failure-detection.verify-fail
            configs.config.c1-config.group-management-service.failure-detection.verify-fail
            Command get executed successfully.
            asadmin>
            asadmin>
            asadmin> get clusters.cluster.c1
            Enter admin user name> admin
            Enter admin password for user "admin">
            clusters.cluster.c1.config-ref=c1-config
            clusters.cluster.c1.gms-bind-interface-address=${GMS-BIND-INTERFACE-ADDRESS-c1}
            clusters.cluster.c1.gms-enabled=true
            clusters.cluster.c1.gms-multicast-address=228.9.147.180
            clusters.cluster.c1.gms-multicast-port=23342
            clusters.cluster.c1.name=c1
            Command get executed successfully.
            asadmin>
            asadmin>
            asadmin>
            asadmin>
            asadmin> get "clusters.cluster.c1.property.*"
            Enter admin user name> admin
            Enter admin password for user "admin">
            clusters.cluster.c1.property.GMS_LISTENER_PORT=${GMS_LISTENER_PORT-c1}
            Command get executed successfully.
            asadmin>
            asadmin>
            • 3. Re: iPlanet Web Server & Glassfish not takeover session from stoped instance?
              MadoatZ
              Why instance in cluster not takeover session data from stoped instance.. ?
              Please suggest..
              • 4. Re: iPlanet Web Server & Glassfish not takeover session from stoped instance?
                handat
                You need GF2.1 Enterprise Edition with HADB. You are missing the HADB setup which provides the features for session failover.