Which version of JBoss AS7 are you using?
I tested the same on Jboss As7.1.2 and it worked fine
<jsp-configuration display-source-fragment="false" x-powered-by="false"/>
Also if you want to even prevent displaying the actual server name as "Server:Apache" then run your JBoss with the following System property:
Ah, we're on 7.1.1.Final, I wonder if this is something that's been fixed recently. I'll have a poke through the AS7 bug tracker and see what's changed - good to know my configuration is ok though, thanks!
Is there any news we are also facing same issue on JBoss AS 7.1.1?
There is a known issue in 7.1.1 that jsp-configuration element is not properly processed by the server and as such none of the settings configured are applied.
It was fixed few days after the 7.1.1, just compile yourself 7.1.2 or 7.1.3 and you will be fine, or even better upgrade to WildFly 8
Thx for the reply, in fact we use custom jsf implementation that's why above mention property is not able to remove even on Jboss 7.1.2.
We use Mojarra jsf implementation so it required following context parameter in web.xml to remove X-Powered-By:JSF/1.2.