If you setup Karaf 4.0.3 with OpenWebBeans and try to run the pax-cdi-sample4-jsf it deploys and runs without any error, but as soon as you hit the Vote Button of the poll.xhtml nothing happens, you should see "Your choice: whatever you have chossen" and in the console you should see the System.out.println (form submitted) from the submit method of the FrameworkBean, but neither of both happens, if you add a command button like:
inside the form and hit that button you'll get a javax.el.PropertyNotFoundException:
Apache Karaf 4.0.3
PAX-CDI 0.13.0-SNAPSHOT including patch from (waiting for pull request)
CDI Features / Bundles for Karaf:
I've pushed my changes to clean / fix pax-cdi / pax-web integration with
This doesn't provide CDI / JSF support though.
I've fixed the wrong annotation for SessionScoped in the sample. @javax.enterprise.context.SessionScoped should be used.
Any update on this issue? Do we need to do something on Pax-Web side?
On pax-web side, I added some important improvements, so pax-cdi + jsf works. There's even dedicated integration test. The change is here.
Summarizing the change, I ensured that the listeners declared in faces-config.xml fragments are NOT registered too early (during web app parsing), but rather by org.ops4j.pax.web.jsp.JasperInitializer.
There's canonical example created here.
And changes in pax-cdi itself are pending in this branch. I hope to have them merged soon.