Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FilterDispatcher is deprecated! - What is the replacement for FilterDispatcher?

Tags:

struts2

How to avoid the following error? I am implementing Spring-Security on Struts2, the application runs perfectly but the following message will be shown on server log.

 WARNING!!!                            
 FilterDispatcher <<< is deprecated! Please use the new filters!                                                                      
      This can be a source of unpredictable problems!                                                                  
         Please refer to the docs for more details!                           
         http://struts.apache.org/2.x/docs/webxml.html            
like image 202
J888 Avatar asked Apr 25 '13 23:04

J888


1 Answers

I'd recommend following the link and doing what it says:

<filter>
    <filter-name>struts2</filter-name>

    <filter-class>
        org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
    </filter-class>
</filter>
like image 103
Dave Newton Avatar answered Nov 20 '22 17:11

Dave Newton