Bug 1074211
| Summary: | javax.el.PropertyNotFoundException: /index.xhtml @19,82 action="#{prueba.crearAnimales()}": Target Unreachable, identifier 'prueba' resolved to null | ||||||
|---|---|---|---|---|---|---|---|
| Product: | OpenShift Online | Reporter: | servidor | ||||
| Component: | Image | Assignee: | Ben Parees <bparees> | ||||
| Status: | CLOSED WORKSFORME | QA Contact: | libra bugs <libra-bugs> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 2.x | CC: | dmcphers, servidor | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-03-18 23:05:34 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
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. |
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: