I'm trying to create custom error page for my application to 500 errors, so I
added these lines to my application web.xml file:
500
/pages/error.html
I tested it by throwing custom exception from my ejb code (I'm using
jsf+ejb)This does not do anything and I still see jboss error page.
I
Just wanted to add that when mapping 404 errors to custom disaply page it works
just fine:
404
/pages/error.html
so it looks like there is some special problem with 500 errors...
any ideas?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4257728#4257728
Still no answers so I will add more information:
1. I'm using jboss 5.0.1 and 5.1 and see the same problem
2. I'm throwing RuntimeException from the application
3. even when using exception-type instead of error-type and setting it to
Exception I still can not reach to my custom error page.
Agai
Well 404 is working for me, I just enter none exist URL and I do see my custom
error page,
But when I try to create 500 error to see my custom error page I still see
Jboss default error page and not my custom page.
I'm doing it by throwing runtimexception from my EJB tier.
Just wanted to add
Hi,
I have an abstract entity bean class that have a string member named user:
private String user;
public String getUser(){
return user;
}
In one of the subclasses I want to override the getUser method to do the
following:
public String getUser(){
if (user == null){
return
I changed t he code a little (wanted to create a workaround) and moved the
getUser method to the father class.
I'm still having the following problem:
I dont want that the "nullUser" will be persist to the database, I just want it
to be virtually returned to the user when the real user is null