Uploaded image for project: 'JBoss Enterprise Portal Platform'
  1. JBoss Enterprise Portal Platform
  2. JBEPP-1467

The Portlet view in Application Registry does not refreshes when a Newer Version of a Portlet is deployed.

    Details

    • Steps to Reproduce:
      Hide

      Steps to reproduce.

      1) Start JBoss Portal server .

      2) Copy attached "hello1-portlet-0.0.1-SNAPSHOT.war" to the /deploy directory of JBoss Portal installation.
      Following can be seen in server console or the server.log -
      INFO [TomcatDeployment] deploy, ctxPath=/hello1-portlet-0.0.1-SNAPSHOT

      3) Go to Application Registry -> import applications
      Following log trace can be seen -
      INFO [ApplicationRegistryServiceImpl] Importing portlet (hello1-portlet-0.0.1-SNAPSHOT,local._hello1-portlet-0.0.1-SNAPSHOT.hello1-portlet) in categories [hello1-portlet-0.0.1-SNAPSHOT]

      4) Create a Test Page and add the above portlet to the page.

      5) Undeploy the above portlet from server(hello1-portlet-0.0.1-SNAPSHOT.war)
      From logs we can see -
      INFO [TomcatDeployment] undeploy, ctxPath=/hello1-portlet-0.0.1-SNAPSHOT
      WARN [MainResourceResolver] Cannot find servlet context module

      6) Deploy new portlet version (hello1-portlet-0.0.1-SNAPSHOT.war). JBoss console shows -
      INFO [TomcatDeployment] deploy, ctxPath=/hello1-portlet

      7) Go to Application Registry -> import applications
      INFO [ApplicationRegistryServiceImpl] Importing portlet (hello1-portlet,local._hello1-portlet.hello1-portlet) in categories [hello1-portlet]

      8) Go to Application Registry -> Category View . Newer portlet can be seen under Category "Hello1-Portlet"

      9) Go to Application Registry -> Portlet View . The new portlet cannot be seen. The older version of portlet can be found under "hello1-portlet-0.0.1-SNAPSHOT"

      10) Log out and Log back in. Now check the Portlet view. The newer version of the portlet can be seen and can now be added to any category and/or page.

      Show
      Steps to reproduce. 1) Start JBoss Portal server . 2) Copy attached "hello1-portlet-0.0.1-SNAPSHOT.war" to the /deploy directory of JBoss Portal installation. Following can be seen in server console or the server.log - INFO [TomcatDeployment] deploy, ctxPath=/hello1-portlet-0.0.1-SNAPSHOT 3) Go to Application Registry -> import applications Following log trace can be seen - INFO [ApplicationRegistryServiceImpl] Importing portlet (hello1-portlet-0.0.1-SNAPSHOT,local._hello1-portlet-0.0.1-SNAPSHOT.hello1-portlet) in categories [hello1-portlet-0.0.1-SNAPSHOT] 4) Create a Test Page and add the above portlet to the page. 5) Undeploy the above portlet from server(hello1-portlet-0.0.1-SNAPSHOT.war) From logs we can see - INFO [TomcatDeployment] undeploy, ctxPath=/hello1-portlet-0.0.1-SNAPSHOT WARN [MainResourceResolver] Cannot find servlet context module 6) Deploy new portlet version (hello1-portlet-0.0.1-SNAPSHOT.war). JBoss console shows - INFO [TomcatDeployment] deploy, ctxPath=/hello1-portlet 7) Go to Application Registry -> import applications INFO [ApplicationRegistryServiceImpl] Importing portlet (hello1-portlet,local._hello1-portlet.hello1-portlet) in categories [hello1-portlet] 8) Go to Application Registry -> Category View . Newer portlet can be seen under Category "Hello1-Portlet" 9) Go to Application Registry -> Portlet View . The new portlet cannot be seen. The older version of portlet can be found under "hello1-portlet-0.0.1-SNAPSHOT" 10) Log out and Log back in. Now check the Portlet view. The newer version of the portlet can be seen and can now be added to any category and/or page.
    • Workaround Description:
      Hide

      For now logging out and login back refreshes the Portlet view and then can be added to any desired category/page.

      Show
      For now logging out and login back refreshes the Portlet view and then can be added to any desired category/page.
    • Estimated Difficulty:
      Medium
    • NEEDINFO:
      Nobody

      Description

      There are two versions of the same Portlet application. They have different context root.
      I deploy the first portlet application, add it to a page. I then un-deploy the application and deploy newer version of its with a different context root (jboss-web.xml).

      The Portlet View under the Application Registry does not shows the updated portlets when a newer version of a porltet is deployed.
      The newer version of portlet application deploys properly. After doing an Import Application, new portlet can be see in the categories view, however, the Portlet view shows the older version of the portlet app.

      When trying to add the new portlet from Portlet view ,to a category throws the error -

      ERROR [portal:UIPortalApplication] Error during the processAction phase
      java.lang.IllegalArgumentException: Cannot create a content with a content id hello1-portlet/hello1-portlet with an existing different content id hello1-portlet-0.0.1-SNAPSHOT/hello1-portlet

      Mentioning the steps to reproduce.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  anuragdebnath Anurag Debnath
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: