Bug 1074211 - javax.el.PropertyNotFoundException: /index.xhtml @19,82 action="#{prueba.crearAnimales()}": Target Unreachable, identifier 'prueba' resolved to null
Summary: javax.el.PropertyNotFoundException: /index.xhtml @19,82 action="#{prueba.crea...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Image
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Ben Parees
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-08 23:16 UTC by servidor
Modified: 2015-05-15 00:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-18 23:05:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Maven project from openshift jbossews 2 (112.71 KB, application/x-gzip)
2014-03-08 23:16 UTC, servidor
no flags Details

Description servidor 2014-03-08 23:16:10 UTC
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:

Comment 1 Ben Parees 2014-03-18 21:07:03 UTC
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.

Comment 2 servidor 2014-03-18 23:05:34 UTC
You are right Ben, this change fix the issue.


Note You need to log in before you can comment on or make changes to this bug.