Hello,
I extended the JsfUnit 2.0.0 Beta1 example to use JSF 2.0 annotations, i.e. added a new JSF Bean using @ManagedBean but ran into this exception. Running on Jetty 7
javax.el.PropertyNotFoundException: /hello.xhtml @14,56 value="#{helloBean.name}": Target Unreachable, identifier 'helloBean' resolved to null
at com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:100)
at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:95)
Putting <managed-bean> section in faces-config.xml instead of pure annotations solved this issue.
My question is: Are JSF 2.0 annotations supported with JSFunit 2.0/Arquillian/Jetty? How to get them work?
JSF2 annotations should work. Have you tried running the app against JBoss 6? I'm guessing that there is something in the configuration that keeps this from working on Jetty.
Stan