In each filter i have System.out.println("Filter xxx") before chain.doFilter()
In java ee documentation is written: "order of the filters is the order in which they appear in the deployment descriptor."
So when i'm invoking http://localhost:9080/webTest/red/red/red/* on console should be
But on my console is :
filter THREE - /red/red/red/*
filter ONE - /red/*
filter TWO - /red/red/*
I found cause of my problem.
In administrative web page of websphere i checked my web.xml and there order of my filters is changed to THREE, ONE, TWO.
But i don't understand this.
Why websphere is changing my web.xml during deployment?
I tried few times and each time order of my filters is shuffled...