-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.0.0 DXP SP2, Master
-
Fix Version/s: 7.0.0 DXP SP2, 7.0.0 DXP FP13, 7.0.0 DXP SP3, 7.0.3 CE GA4, 7.1.X, Master
-
Branch Version/s:7.0.x
-
Backported to Branch:Committed
-
Story Points:1
-
JDK:Oracle Sun JDK 8
-
Application Servers:Apache Tomcat 8.0.x
-
Git Pull Request:
In WAB application ClassCastException (com.liferay.taglib.servlet.PageContextWrapper cannot be cast to org.apache.jasper.runtime.PageContextImpl) is raised when jstl tags (if, choose ...) are used in .tag file or if tag file has declared attribute.
There is no such problem when jstl functions are used directly in jsp or if tag has no attributes.
Steps to reproduce
- build bug-jstl-in-custom-tag or continue to next step (if deploying attached bug-jstl-in-custom-tag.war)
- deploy bug-jstl-in-custom-tag.war
- add deployed portlet to page
- click on link "Reproduce bug, JSTL tags (c:xxx) are used in .tag file"
Please see attached files
- bug-jstl-in-custom-tag.zip
project source
- bug-jstl-in-custom-tag.war
portlet application
- exception.log
relevant log part