File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes JSF 2 - Problem with ManagedBean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF 2 - Problem with ManagedBean" Watch "JSF 2 - Problem with ManagedBean" New topic

JSF 2 - Problem with ManagedBean

Marcos Vidolin

Joined: May 10, 2011
Posts: 28
Hi guys

Does anyone know how to solve the following problem?
I am developing a simple project built on Maven and Eclipse. Using basically JSF 2 and RichFaces running in Jetty 6.

The project runs, the problem is when I try to access any ManagedBean. Where the following error appears in terminal:

It turns out that the ManagedBean is not initialized when the class is annotated with @ ManagedBean. If I map it using the faces-config.xml, the method is executed.

The following configuration files:




Thanks for help me.
[] 's
Alexander Mitenko

Joined: Mar 11, 2009
Posts: 8
It seems like Jetty6 is not compliant with @ManagedBean annotation - they does not work correctly.
Try latest glassfish, jboss, weblogic containers.
I agree. Here's the link:
subject: JSF 2 - Problem with ManagedBean
It's not a secret anymore!