I'm using Resin Server & Apache 2.2 with virtual hosting. Here I'm facing a big challenge in calling a concrete filter. I'm having a generic Filter class to process all the incoming request.
Ex: www.example.com/hello this hello is not calling the below filter instead it throwing file not found error(404).
If "hello" is having a proper servlet mapping then the below filter is working.
Web.xml :
<filter>
<filter-name>CorpFilter</filter-name>
<filter-class>com.filter.CorpFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>CorpFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Apache Log :
[Fri Jan 04 22:05:07 2013] [error] [client xxx.xxx.xxx.xxx] File does not exist: /home/xxxx/public_html/hello
Why the servlet filter is not being called and throwing 404 error? Servlet filter is initializing properly.
Thanks,