glassfish
  1. glassfish
  2. GLASSFISH-13298

context-root entry appears twice in exported lb xml for a webservice apps

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1_b19
    • Component/s: load_balancer
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      13,298

      Description

      GF Build: 17

      Deploying a web-service app and then exporting the lb config into a lb xml using
      the export-http-lb-config command is generating an lb xml with a duplicate
      context-root entry.

      <web-module context-root="/rm-service" disable-timeout-in-minutes="30"
      enabled="true"/>
      <web-module context-root="/rm-service" disable-timeout-in-minutes="30"
      enabled="true"/>

      This LB xml becomes un-usable as LB reconfiguration (on the webserver) fails and
      uses the previously saved configuration.
      ******
      [07/Sep/2010:02:02:16] failure ( 6691): ClusterData.cpp@184: reports:
      lb.router: XML_VALIDATOR_ERROR: Duplicate context-root. A web module with the
      context-root rm-service has already been deployed on the cluster st-cluster.
      [07/Sep/2010:02:02:16] warning ( 6691): reports: lb.configurator: CNFG1004 :
      Error occured during refresh of Loadbalancer config Parser for :
      /space/varun/oracle-webserver7/https-ejp5363-vm1/config/loadbalancer.xml. Using
      old configuration...
      ******

      The issue can be reproduced using the attached app.

        Activity

        Hide
        varunrupela added a comment -

        Created an attachment (id=4814)
        app attached

        Show
        varunrupela added a comment - Created an attachment (id=4814) app attached
        Show
        kshitiz_saxena added a comment - Put in a hard check using hash set that context roots are not duplicated. Checkin logs: https://glassfish-svn.dev.java.net/source/browse/glassfish-svn/trunk/v3/load-balancer/admin/src/main/java/org/glassfish/loadbalancer/admin/cli/reader/impl/ClusterReaderHelper.java?view=diff&rev=40501&p1=trunk/v3/load-balancer/admin/src/main/java/org/glassfish/loadbalancer/admin/cli/reader/impl/ClusterReaderHelper.java&p2=trunk/v3/load-balancer/admin/src/main/java/org/glassfish/loadbalancer/admin/cli/reader/impl/ClusterReaderHelper.java&r1=40500&r2=40501

          People

          • Assignee:
            kshitiz_saxena
            Reporter:
            varunrupela
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: