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

ClassCastException when JSTL tags used in .tag file inside WAB

    Details

      Description

      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

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            mgamulin@croz.hr Martin Gamulin
            Participants of an Issue:
            Recent user:
            Csaba Turcsan
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 40 weeks, 1 day ago

                Packages

                Version Package
                7.0.0 DXP SP2
                7.0.0 DXP FP13
                7.0.0 DXP SP3
                7.0.3 CE GA4
                7.1.X
                Master