https://issues.apache.org/bugzilla/show_bug.cgi?id=52677

             Bug #: 52677
           Summary: embedded SetCharacterEncodingFilter in
                    org.apache.catalina.filters is not usable as it does
                    not implement javax.servlet.Filter
           Product: Tomcat 5
           Version: 5.5.35
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: djhighm...@gmail.com
    Classification: Unclassified


Version 5.5.35 added SetCharacterEncodingFilter to the
org.apache.catalina.filters package so it is available for all web
applications. It is documented at
http://tomcat.apache.org/tomcat-5.5-doc/config/filter.html#Set_Character_Encoding_Filter

Use of
<filter-class>org.apache.catalina.filters.SetCharacterEncodingFilter</filter-class>
however will fail with CastClassException in
ApplicationFilterConfig.getFilter:209 as it does not implement
javax.servlet.Filter

This problem is not present in the 6.0 branch as SetCharacterEncodingFilter 
implements Filter there

This problem is not present in the 7.0 branch as SetCharacterEncodingFilter
extends FilterBase there

Workaround: continue to use your own SetCharacterEncodingFilter that is based
on the example in
./servletapi/jsr154/examples/WEB-INF/classes/filters/SetCharacterEncodingFilter.java
instead of using the embedded one.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to