[jboss-user] [Installation, Configuration & Deployment] - using error-page in web.xml for custom error page

2009-09-29 Thread asafz
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

[jboss-user] [Installation, Configuration & Deployment] - Re: using error-page in web.xml for custom error page

2009-09-29 Thread asafz
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

[jboss-user] [Installation, Configuration & Deployment] - Re: using error-page in web.xml for custom error page

2009-10-01 Thread asafz
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

[jboss-user] [Installation, Configuration & Deployment] - Re: using error-page in web.xml for custom error page

2009-10-01 Thread asafz
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

[jboss-user] [EJB 3.0] - EJB3 entity inheritance override getter in subclass

2009-06-28 Thread asafz
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

[jboss-user] [EJB 3.0] - Re: EJB3 entity inheritance override getter in subclass

2009-06-29 Thread asafz
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