Uploaded image for project: 'GateIn Portal'
  1. GateIn Portal
  2. GTNPORTAL-2700

Interfering Resource Bundles of Sample Portal and Sample Extension

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      (1) Make sure there is no older version of sample portal or sample extension in $JBOSS_HOME/gatein/extension.

      (2) Build Sample Extension and Sample Portal

      cd /tmp
      git clone https://github.com/gatein/gatein-portal-quickstart.git
      cd gatein-portal-quickstart/gatein-portal-extension
      mvn clean package
      cp -t $JBOSS_HOME/gatein/extension ear/target/gatein-portal-extension.ear
      
      cd ../gatein-sample-portal
      mvn clean package
      cp -t $JBOSS_HOME/gatein/extension ear/target/gatein-sample-portal.ear
      

      (3) Restart JBoss

      (4)

      EDIT: The statement made in (4) can be made more precise as follows: Both /sample-portal and /portal show the same text for the given run of GateIn. However, the text differs between the individual runs of GateIn. Sometimes it is (a) ""This is the Home Page of the "sample-portal""" and sometimes it is (b) "Congratulation, you just installed a new portal extension". (a) is more frequent. Occurence of (a) vs. (b) seems to be random. Esp. it does not depend on the order of the first invocation of /sample-portal and /portal as I conjectured originally.

      Show
      (1) Make sure there is no older version of sample portal or sample extension in $JBOSS_HOME/gatein/extension. (2) Build Sample Extension and Sample Portal cd /tmp git clone https: //github.com/gatein/gatein-portal-quickstart.git cd gatein-portal-quickstart/gatein-portal-extension mvn clean package cp -t $JBOSS_HOME/gatein/extension ear/target/gatein-portal-extension.ear cd ../gatein-sample-portal mvn clean package cp -t $JBOSS_HOME/gatein/extension ear/target/gatein-sample-portal.ear (3) Restart JBoss (4) Visit http://127.0.0.1:8080/sample-portal OK: Home Portlet is showing: "This is the Home Page of the "sample-portal"" Visit http://127.0.0.1:8080/portal NOT OK: Home Portlet is showing: "This is the Home Page of the "sample-portal"" EXPECTED: "Congratulation, you just installed a new portal extension" EDIT: The statement made in (4) can be made more precise as follows: Both /sample-portal and /portal show the same text for the given run of GateIn. However, the text differs between the individual runs of GateIn. Sometimes it is (a) ""This is the Home Page of the "sample-portal""" and sometimes it is (b) "Congratulation, you just installed a new portal extension". (a) is more frequent. Occurence of (a) vs. (b) seems to be random. Esp. it does not depend on the order of the first invocation of /sample-portal and /portal as I conjectured originally.

      Description

      When I deploy both Sample Extension and Sample Portal, only bundles from the sample portal EAR are used. Both sample portal and extension home portlet are showing "This is the Home Page of the "sample-portal"". The extension at /portal should show "Congratulation, you just installed a new portal extension".

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ppalaga Peter Palaga
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: