This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes  Unable to create managed bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark " Unable to create managed bean" Watch " Unable to create managed bean" New topic

Unable to create managed bean

Avik Mazunder
Ranch Hand

Joined: Jun 27, 2012
Posts: 39

My project was working fine..But suddenly it started to give this error

checked my managed beans..they are as same as they were in previous...Please help...!
Brendan Healey
Ranch Hand

Joined: May 12, 2009
Posts: 218

You need to post up some code, there's too much left to the imagination here. Are you using @ManagedProperty? and if so
has the property got a setter method?

Avik Mazunder
Ranch Hand

Joined: Jun 27, 2012
Posts: 39

i am using faces-config.xml

my code



Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15951

You have violated a whole raft of JSF constraints and conventions, not to mention my own personal rule that unless you want your webapp to be hacked and pwned, you should never write login code at all (use the appserver's security system, instead).

I do not see a package name on your bean source code. You are referring to an instance of the bean using a name that begins with an upper-case letter (Classnames begin with upper-case, instance names begin with lower-case). And you are referring to transient JSF constructs in a context as though they had long-term existence (Note: the more references you make to javax.faces objects in your code, the more likely you're doing in wrong, except for model objects). Also you need to study on how backing bean action methods and navigation work.

Customer surveys are for companies who didn't pay proper attention to begin with.
jQuery in Action, 2nd edition
subject: Unable to create managed bean
Similar Threads
Injecting Beans as Parameters (Injected Bean reference is null)
JSF Accessing Bean Data
unable to process injections in jboss EJB
Unable to create managed bean. Hello world app.
Injecting spring bean in jsf controller, ibm jre 1.6.0