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

<liferay-ui:input-editor /> broken, cast exception

    Details

      Description

      I have built a spring mvc portlet.

      The portlet deploys fine and everything works until i add <liferay-ui:input-editor /> to the view.
      This cast an error in the logs and the portlet doesn't show.

      I have used the latest tlds from the sdk 6.1.1. and this works fine in liferay 6.1 GA1 but not in GA2
      The error :

      Nov 12, 2012 3:39:54 PM org.apache.catalina.core.ApplicationDispatcher invoke
      SEVERE: Servlet.service() for servlet jsp threw exception
      java.lang.ClassNotFoundException: com.liferay.portal.kernel.servlet.DirectServletContext
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
      at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:307)
      at com.liferay.taglib.util.IncludeTag._doInclude(IncludeTag.java:418)
      at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:92)
      at org.apache.jsp.jsp.mail.view_jsp._jspx_meth_liferay_002dui_005finput_002deditor_005f0(view_jsp.java:384)
      at org.apache.jsp.jsp.mail.view_jsp._jspService(view_jsp.java:173)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
      at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:229)
      at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
      at org.springframework.web.servlet.ViewRendererServlet.renderView(ViewRendererServlet.java:114)
      at org.springframework.web.servlet.ViewRendererServlet.processRequest(ViewRendererServlet.java:86)
      at org.springframework.web.servlet.ViewRendererServlet.doGet(ViewRendererServlet.java:66)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
      at com.liferay.portlet.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:323)
      at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:105)
      at org.springframework.web.portlet.DispatcherPortlet.doRender(DispatcherPortlet.java:1137)
      at org.springframework.web.portlet.DispatcherPortlet.render(DispatcherPortlet.java:1092)
      at org.springframework.web.portlet.DispatcherPortlet.doRenderService(DispatcherPortlet.java:755)
      at org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:522)
      at org.springframework.web.portlet.FrameworkPortlet.doDispatch(FrameworkPortlet.java:470)

      Nov 12, 2012 3:39:54 PM org.apache.catalina.core.ApplicationDispatcher invoke
      SEVERE: Servlet.service() for servlet view-servlet threw exception
      java.lang.ClassNotFoundException: com.liferay.portal.kernel.servlet.DirectServletContext

      Caused by: javax.servlet.ServletException: java.lang.NoClassDefFoundError: com/liferay/portal/kernel/servlet/DirectServletContext
      at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:911)
      at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:840)
      at com.liferay.portal.kernel.servlet.PageContextWrapper.handlePageException(PageContextWrapper.java:161)
      at org.apache.jsp.jsp.mail.view_jsp._jspService(view_jsp.java:275)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
      ... 210 more

        Attachments

          Activity

            People

            Assignee:
            shinn.lok Shinn Lok
            Reporter:
            tom mahy tom mahy
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              7 years, 47 weeks ago

                Packages

                Version Package
                6.2.0 CE M4