oh no I tried and tried, and with glassfish and modifying faces-config in a lot of ways,- still doesn't work and it drives me crazy.
I just did put it in com.beans.UserBean and changed faces-config accordingly
javax.servlet.ServletException: Unable to create managed bean user. The following problems were found:
- Bean or property class com.beans.UserBean for managed bean user cannot be found. javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)
The fact that you got a JSF message means that you did almost everything right. Most people don't get that far on the first try.
I did notice one strange thing:
I don't think that that can even compile considering you didn't list any interface names after "implements". And since JSF backing beans are POJOs, there's no requirement to implement any interfaces anyway.
It doesn't hurt to include a no-argument public constructor on your bean, since "proper" POJOs should. But JSF doesn't require it, especially if you don't have any construction-time code to execute.
Bjoke: A "Bully Joke". A Statement or action made with malicious intent - unless challenged. At which point it magically transforms into "I was just funnin'" or "What's the matter, can't take a joke?"