I want to use "global" HTTP filters.
Therefor, I edited deploy/jboss-web.deployer/conf/web.xml
and added:
<filter>
<filter-name>StatisticsFilterHitCount</filter-name>
<filter-class>myapp.StatisticsFilterHitCount</filter-class>
</filter>
<filter-mapping>
<filter-name>StatisticsFilterHitCount</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Now, when I start the server, not a single artifact can be deployed. A huge exception is logged on each deployment attempt. Sorry, can't paste it here. I suppose, at the time of deployment, the filter class is not present yet.
So, where (and how) do I have to deploy such filter globally?
Currently, it's in applications/5apps
, the packaging is .war
.