Issues with Filters in Liferay 4.3Issues with Filters in Liferay 4.3https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=487365032024-03-29T00:12:22Z2024-03-29T00:12:22ZRE: Issues with Filters in Liferay 4.3Jaya Sharmahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1029443852018-01-19T05:35:39Z2018-01-19T05:35:39ZHello,<br /><br />I am using liferay 4.4.2 with jdk 1.6 and weblogic 10.3.5.<br /><br />I want to create one custom filter by implementing ActionFilter, is it possible in the mentioned liferay version??. Where should i provide filter configurations in web.xml or portlet.xml?<br /><br />Kindly help us to know.<br /><br />Thanks,<br />JayaJaya Sharma2018-01-19T05:35:39ZRE: Issues with Filters in Liferay 4.3David H Nebingerhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=487390842015-02-06T14:54:30Z2015-02-06T14:54:30Z<div class="quote-title">G R Rajesh Babu:</div><blockquote>Can somebody please tell me the possible mistakes for the below Issues with Filters in Liferay 4.3</blockquote><br /><br />Probably not, GR. You're on such an old version of Liferay I'm not sure there's anyone here in the forums that remembers the version.<br /><br />NoSuchMethodErrors indicate something is calling a method on a class that doesn't exist, so it's almost like you have a mix of Liferay versions in play (one that knows about the method and the implementation that doesn't have it).<br /><br />NoClassDefFoundErrors are pointing at initialization failures on the class, but without further details it would be hard to point to what the initialization failure is.<br /><br />Make sure you're using a period-okay JDK (sun JDK 1.5 would be my guess) and that you don't have versions mixed up in there.David H Nebinger2015-02-06T14:54:30ZIssues with Filters in Liferay 4.3Rajesh GRhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=487365022015-02-06T13:10:32Z2015-02-06T13:10:32ZHi,<br /><br />Can somebody please tell me the possible mistakes for the below Issues with Filters in Liferay 4.3,<br /><br />SEVERE: Exception starting filter Secure MainServlet Filter<br />java.lang.NoSuchMethodError: com.liferay.portal.kernel.util.ServerDetector.isSun()Z<br /><br />SEVERE: Exception starting filter Layout Cache Filter - Layout<br />java.lang.NoClassDefFoundError: Could not initialize class com.liferay.portal.util.PropsUtil<br /><br />SEVERE: Exception starting filter Compression Filter<br />java.lang.NoSuchMethodError: com.liferay.portal.kernel.util.ServerDetector.isOrion()Z<br /><br />SEVERE: Exception starting filter Layout Cache Filter - Friendly<br />java.lang.NoClassDefFoundError: Could not initialize class com.liferay.portal.servlet.filters.layoutcache.LayoutCacheFilter<br /><br />SEVERE: Exception starting filter Layout Cache Filter - Resource<br />java.lang.NoClassDefFoundError: Could not initialize class com.liferay.portal.servlet.filters.layoutcache.LayoutCacheFilter<br /><br />Portal-ext:<br /><br />theme.css.fast.load=false<br />theme.images.fast.load=false<br />javascript.fast.load=false<br />javascript.log.enabled=true #this is not for caching<br />layout.template.cache.enabled=false<br />last.modified.check=false<br />velocity.engine.resource.manager.cache.enabled=false<br />com.liferay.portal.servlet.filters.cache.CacheFilter=false<br />com.liferay.portal.servlet.filters.layoutcache.LayoutCacheFilter=false<br /><br /><br />In xml:<br /><br /> <filter> <br /> <filter-name>Secure MainServlet Filter</filter-name> <br /> <filter-class>com.liferay.filters.secure.SecureFilter</filter-class> <br /> <init-param> <br /> <param-name>portal_property_prefix</param-name> <br /> <param-value>main.servlet.</param-value> <br /> </init-param> <br /> </filter><br /> <filter> <br /> <filter-name>Layout Cache Filter - Friendly</filter-name> <br /> <filter-class>com.liferay.portal.servlet.filters.layoutcache.LayoutCacheFilter</filter-class> <br /> <init-param> <br /> <param-name>pattern</param-name> <br /> <param-value>1</param-value> <br /> </init-param> <br /> </filter> <br /> <filter> <br /> <filter-name>Layout Cache Filter - Layout</filter-name> <br /> <filter-class>com.liferay.portal.servlet.filters.layoutcache.LayoutCacheFilter</filter-class> <br /> <init-param> <br /> <param-name>pattern</param-name> <br /> <param-value>2</param-value> <br /> </init-param> <br /> </filter> <br /> <filter> <br /> <filter-name>Layout Cache Filter - Resource</filter-name> <br /> <filter-class>com.liferay.portal.servlet.filters.layoutcache.LayoutCacheFilter</filter-class> <br /> <init-param> <br /> <param-name>pattern</param-name> <br /> <param-value>3</param-value> <br /> </init-param> <br /> </filter><br /><br /> <filter> <br /> <filter-name>Compression Filter</filter-name> <br /> &