If there is a way, the global web.xml is not it. Think of it this way - the 
configuration for a web app is the combination of the contents of the global 
web.xml and the web.xml specific to that app. Thus to get the 404 page for 
app1, you would have to place a copy of 404.html into app1.war (though you do 
not need to add anything to the web.xml for app1 - the global web.xml 
declaration is sufficient.) But this still would not work if the user entered a 
bad context name (for example http://hostname:8080/nosuchapp/aaa) - that would 
still give the app server's built in error message.

There is probably a way of using a filter, or some other mechanism, to do this, 
however. Perhaps someone knows off-hand.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258988#4258988

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258988
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to