This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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
Author

JSF 2 - Problem with ManagedBean

Marcos Vidolin
Greenhorn

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:

pom.xml:



web.xml


bean



Thanks for help me.
[] 's
Alexander Mitenko
Greenhorn

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: http://aspose.com/file-tools
 
subject: JSF 2 - Problem with ManagedBean