Created attachment 872300 [details] Maven project from openshift jbossews 2 Description of problem: JSF 2, CDI Weld App not working in Openshift Jbossews 2 (Tomcat 7), and it's work in normal Tomcat 7. Version-Release number of selected component (if applicable): Cartridge Openshift Jbossews 2 (Tomcat 7) How reproducible: Compile and deploy attached file. Steps to Reproduce: 1.Enter to /index.xhtml 2.Click in button "probar" 3. Actual results: javax.el.PropertyNotFoundException: /index.xhtml @19,82 action="#{prueba.crearAnimales()}": Target Unreachable, identifier 'prueba' resolved to null Expected results: Hello from Facelets 1 Luxj 2 Luxj 3 Luxj ... Additional info:
It appears that weld requires unpackWARs=true in the tomcat server.xml configuration: https://docs.jboss.org/author/display/ARQ/Tomcat+7.0+-+Embedded that is not the default setting on openshift (you can change it in your <repo>/.openshift/config/server.xml). With that setting I was able to deploy a trivial CDI sample successfully. Please let me know if that fixes your issue.
You are right Ben, this change fix the issue.