I assume that you changed < context-root > in boss-web.xml to be "p5admin".
I think that in the web.xml the < url-pattern > should be simply "/*". The context-root is assumed.
Thank you so much for the response. However there is no <context-root/> element in jboss-web.xml
And we want < url-pattern > to be "/p5admin/*" instead of "/*" url pattern.
Note that I the war file is inside ear file. and the application.xml has context root,
<application> <display-name>Enterprise Server</display-name> <description>Enterprise Server</description> <module> <web> <web-uri>p5web.war</web-uri> <context-root>p5admin</context-root> </web> </module> <module> <ejb>p5ejb.jar</ejb> </module> </application>
Your solution did work, the authentication was failing as I had wrongly configured login-config.xml , after enabling log4j for security I was able to fing the root cause.
Thank you all!