Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.0.0 Beta 8
-
None
-
1
-
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
- is fixed by
-
LPS-63948 Regression when re-deploying DS portlets
- Closed