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


    • 1
    • 4


      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:

      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:


        Issue Links



              shitian.zhang Shitian "Shelton" Zhang (Inactive)
              neil.griffin Neil Griffin
              Kiyoshi Lee Kiyoshi Lee
              0 Vote for this issue
              4 Start watching this issue


                7 years, 13 weeks, 3 days ago


                  Version Package
                  7.0.0 CE RC1