I have a problem with Tomcat 7, where all my requests are going twice through our filters. This results in a web-page where static text is displayed twice and all our ajax requests are also displayed twice. This started happening when we implemented the security filter shown below:
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/system/*</url-pattern>
<url-pattern>/admin/*</url-pattern>
</filter-mapping>
When I deploy the same war-file on jetty 9 or tomcat 6 it works just fine! Does anyone know how to solve this issue?!
Setup:
- Tomcat: 7.0.52
- Spring: 3.2.8.RELEASE
- Spring-security: 3.2.1.RELEASE
- Apache Tiles: 3.0.3
We have tried the following with no luck:
- reimplementing apache tiles
- added this to /conf/context.xml:
<Context resourceOnlyServlets="">
- changed the order of our filters