Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-64084

JSPs compiled by Jasper are not re-compiled when OSGi bundles are re-deployed

    Details

    • Story Points:
      1
    • Fix Priority:
      4

      Description

      Steps to Reproduce:

      1. Start Liferay Portal 7.0.0 B8

      2. Clone the blade Git repository.

      3. Navigate to the blade.portlet.jsp Maven project:

      cd blade/maven/blade.portlet.jsp

      4. Build the OSGi bundle:

      mvn clean package

      5. Deploy the OSGi bundle:

      cp target/blade.portlet.jsp-1.0.0.jar $LIFERAY_HOME/osgi/modules

      6. Add the portlet to a portal page (note that you will find it under the "Sample" category but the name will be blank)

      7. Reload the portal page

      8. Verify that the portlet is rendered on the page

      9. Verify that the Jasper compiler created the following file:
      $LIFERAY_HOME/work/blade.portlet.jsp-1.0.0/org/apache/jsp/view_jsp.class

      10. Undeploy the OSGi bundle by deleting the following file:

      rm $LIFERAY_HOME/osgi/modules/blade.portlet.jsp-1.0.0.jar

      11. Edit the view.jsp file in the blade.portlet.jsp Maven project:

      vi src/main/resources/META-INF/resources/view.jsp

      12. Add a simple paragraph to the view.jsp file and save it:

      <p>hello updated JSP</p>

      13. Rebuild the OSGi bundle:

      mvn clean package

      14. Re-deploy the OSGi bundle:

      cp target/blade.portlet.jsp-1.0.0.jar $LIFERAY_HOME/osgi/modules

      15. Reload the portal page

      If the bug is fixed, then the updated JSP will be rendered. Otherwise if the bug still exists, then the updated JSP will not be rendered.

      The workaround is to delete the following file, undeploy, and re-deploy the OSGi module:
      $LIFERAY_HOME/work/blade.portlet.jsp-1.0.0/org/apache/jsp/view_jsp.class

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shitian.zhang Shitian "Shelton" Zhang (Inactive)
              Reporter:
              neil.griffin Neil Griffin
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 38 weeks, 5 days ago

                  Packages

                  Version Package
                  7.0.0 CE RC1