liferay « Filter « JSP-Servlet Q&A





1. java.lang.ClassNotFoundException: com.liferay.portal.servlet.filters.compre    liferay.com

Hi, I'm new to Liferay. I'm using source version 4.4.2 & JBoss 4.2 When I deployed ext into JBoss I'm getting following Exceptions. Though JBoss is working fine. I thought these errors may create problem in the future can anyone can through some light -------------------------------------------------------------------------------------------------------------------------------------------------------------------- 09:11:16,593 ERROR [PortalClassLoaderFilter] java.lang.ClassNotFoundException: com.liferay.portal.servlet.filters.compression.CompressionFilter java.lang.ClassNotFoundException: com.liferay.portal.servlet.filters.compression.CompressionFilter at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204) at com.liferay.portal.kernel.servlet.PortalClassLoaderFilter.portalInit(PortalClassLoaderFilter.java:54) at com.liferay.portal.kernel.util.PortalInitableUtil.init(PortalInitableUtil.java:39) at ...

2. Bug: PortletRequestDispatcher.include doesn't invoke servlet filter.    liferay.com

PortletRequestDispatcher doesn't invoke servlet filter when using include or forward. In LF 5.2.2, when delegating to a servlet from "serveResource" in a portlet using PortletRequestDispatcher. No servlet filters assocated to the servlet are executed. myportlet.java public void serveResource(ResourceRequest request, ResourceResponse response) throws PortletException, IOException{ PortletRequestDispatcher dispatcher = getPortletContext() .getRequestDispatcher("/myservlet"); //dispatcher.forward(request, response); dispatcher.include(request, response); } web.xml ...... MyServletFilter org.MyServletFilter ...

3. Adding a Servlet Filter    liferay.com