|
| I am trying to implement a portlet filter. I have completed the required steps:
- portlet filtering is enabled in PortletContainerService.properties
- filter is configured in PortalFilterService.properties as below:
# ------ File Content Filter ------ #
# filter name, required
filtername5 = FileContentFilter
# filter implementation class, required
FileContentFilter.classname = myportlet.filters.FileContentFilter
# supported methods, at least one is required
FileContentFilter.method.1 = ActionEvent
FileContentFilter.method.2 = service
# configuration parameter, optional
FileContentFilter.Trace = true
- .jar file containing filter is installed under .../shared/app
I have tried my own filter and the one from the article here http://www-128.ibm.com/developerwor...n/0404_yan.html and got the same results. What is generating the ClassCastException? Why is filter not found?
Error log is as below:
2005.06.09 13:42:29.352 E com.ibm.wps.services.portalfilter.PortalFilterServiceImpl init
EJPFD0011E: Error loading filter FileContentFilter. - StackTrace follows...
2005.06.09 13:42:29.353 E com.ibm.wps.services.portalfilter.PortalFilterServiceImpl init
java.lang.ClassCastException ...
2005.06.09 13:44:38.754 E com.ibm.wps.pe.pc.legacy.services.PortletFilterServiceImpl init
EJPPG0105E: Filter not found: FileContentFilter
Any insight much apprecaiated. Thanks in advance. I am using WPS 5.1.
|
|