File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JSF 2 - Problem with ManagedBean
 
Similar Threads
Maven dependencies
Maven web project dependencies
Could not resolve dependencies for maven project
Funny exception with StringBuffer with jsf
Error: ERROR initServletBean, Context initialization failed