sailfin
  1. sailfin
  2. SAILFIN-1379

In-memory replication not enabled for pure web-apps (clusterjsp)

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: 1.0
    • Fix Version/s: milestone 1
    • Component/s: session_replication
    • Labels:
      None
    • Environment:

      Operating System: Linux
      Platform: All

    • Issuezilla Id:
      1,379

      Description

      When deploying clusterjsp on a SailFin cluster with availabilityenabled=true ,
      in memory replication is not enabled for the app. This seems to be an issue with
      the persistence-type attribute. The value in the sample is "ha".

      If I change the value to "replicated" things work fine. As per the sun-web.xml
      DTD "ha" is the correct value for persistence-type.

        Activity

        Hide
        sonymanuel added a comment -

        Created an attachment (id=824)
        clusterjsp app

        Show
        sonymanuel added a comment - Created an attachment (id=824) clusterjsp app
        Hide
        shreedhar_ganapathy added a comment -

        This is a samples issue. There seems to be no samples subcomponent.
        Also see the GlassFish issue :
        https://glassfish.dev.java.net/issues/show_bug.cgi?id=5408

        Show
        shreedhar_ganapathy added a comment - This is a samples issue. There seems to be no samples subcomponent. Also see the GlassFish issue : https://glassfish.dev.java.net/issues/show_bug.cgi?id=5408
        Hide
        sonymanuel added a comment -

        The DTD sun-web-app_2_4-1.dtd does not document a value "replicated" for
        persistence type. If replicated is the correct value then the DTD has to be
        updated.

        Show
        sonymanuel added a comment - The DTD sun-web-app_2_4-1.dtd does not document a value "replicated" for persistence type. If replicated is the correct value then the DTD has to be updated.
        Hide
        jluehe added a comment -

        In sun-web-app_2_5-0.dtd, we relaxed persistence-type to be of type CDATA, so it
        can be set to anything (including "replicated"):

        sun-web-app_2_4-1.dtd:

        <!ENTITY % persistence-type "(memory | file | custom | ha | s1ws60 | mmap)">
        <!ATTLIST session-manager persistence-type %persistence-type; "memory">

        sun-web-app_2_5-0.dtd:

        <!ATTLIST session-manager persistence-type CDATA "memory">

        I recommend that the sun-web.xml in the clusterjsp sample be upgraded to
        sun-web-app_2_5-0.dtd.

        Where can I find the source code for this example so I can make the change?

        Show
        jluehe added a comment - In sun-web-app_2_5-0.dtd, we relaxed persistence-type to be of type CDATA, so it can be set to anything (including "replicated"): sun-web-app_2_4-1.dtd: <!ENTITY % persistence-type "(memory | file | custom | ha | s1ws60 | mmap)"> <!ATTLIST session-manager persistence-type %persistence-type; "memory"> sun-web-app_2_5-0.dtd: <!ATTLIST session-manager persistence-type CDATA "memory"> I recommend that the sun-web.xml in the clusterjsp sample be upgraded to sun-web-app_2_5-0.dtd. Where can I find the source code for this example so I can make the change?
        Hide
        jluehe added a comment -

        Reassigning, since I'm not authorized to make any changes to samples

        Show
        jluehe added a comment - Reassigning, since I'm not authorized to make any changes to samples
        Hide
        shreedhar_ganapathy added a comment -

        Sony
        Can you share where you get the clusterjsp app? Is this from Sailfin's samples
        directory?

        Show
        shreedhar_ganapathy added a comment - Sony Can you share where you get the clusterjsp app? Is this from Sailfin's samples directory?
        Hide
        msreddy added a comment -

        Can we use the one which is a part of ee quickstart sample, it'll be easy to
        update this sample.

        Show
        msreddy added a comment - Can we use the one which is a part of ee quickstart sample, it'll be easy to update this sample.
        Hide
        lwhite added a comment -

        Closing this issue in SailFin issue tracker
        because we are moving and re-filing it as
        a GlassFish issue under sample-apps.
        See: https://glassfish.dev.java.net/issues/show_bug.cgi?id=6759

        Show
        lwhite added a comment - Closing this issue in SailFin issue tracker because we are moving and re-filing it as a GlassFish issue under sample-apps. See: https://glassfish.dev.java.net/issues/show_bug.cgi?id=6759

          People

          • Assignee:
            msreddy
            Reporter:
            sonymanuel
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: