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

PortalUtil.renderPortlet throws exception "javax.servlet.ServletException: File "/html/common/themes/portlet.jsp" not found" after switching to Liferay CE 6.1.1 GA2

    Details

      Description

      As described in my forum post http://www.liferay.com/community/forums/-/message_boards/message/17542732 i'm facing a problem with rendering one custom portlet in another custom portlet after switching from Liferay CE 6.1.0 GA1 to Liferay CE 6.1.2 GA2. The initial idea is to use administration toolbar implemented as Vaadin portlet in a generic portlet that displays content adapted for front-end. The administration toolbar is dislayed only for those who are permitted to edit content.

      My solution is based on this post http://www.devatwork.nl/2011/07/liferay-embedding-portlets-in-your-portlet/ with only difference that i'm not using PortletBag to get portal's ServletContext. The reason is that PortletBagPool returns null when i try to get it by PortletBagPool.get(PortletKeys.JOURNAL)

      To get portal's ServletContext i'm running PortalUtil.getOriginalServletRequest(PortalUtil.getHttpServletRequest(portletRequest))
      As a result getContextPath and getRealPath methods of received servletContext are pointing to portal's paths correctly (for 6.0.5, 6.1.1, 6.1.2).

      However Liferay Portal 6.1.2 GA2 throws "javax.servlet.ServletException: File "/html/common/themes/portlet.jsp" not found"
      It means that JSP Dispatcher is using Plugin's context path, but not the Portal's one.

      PS i've tried to use <liferay-portlet:runtime> tag and the same exception is thrown

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  7 years, 8 weeks, 4 days ago

                  Packages

                  Version Package
                  6.1.30 EE GA3
                  6.2.0 CE M6