There’s a bug in JSF loading mechanism for managed beans annotated with annotation @ManagedBean. The mechanism is not activated when running the app via mvn jetty:run. The bug is reported here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=288243
This is a very nasty thing, because jetty:run have great advantages when debugging:
- it is fast
- it works directly with the jsf files from workspace, without need to use FileSync plugin
However, not supporting the annotation would require downgrading to XML configuration.
Is there any work-a-round for this bug?
source : the link you provided in your question , read Tomaz Lipinsi comments
Suggest you to read all the comments there.