Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Deploying JSF 2.2 Portlets On Jboss 7.1.1-Liferay 6.2 javax.el.Propert
Arkaprovo Bhattacharjee, modified 9 Years ago.
Junior Member
Posts: 31
Join Date: 2/7/16
Recent Posts
I have downloaded liferay-portal-jboss-6.2-ce-ga6 from here and Upgraded Mojarra to 2.2.12 . For testing purpose, I have deployed this Liferay sample portlet. After placing the portlet on page it is detect everything like
checked everything ,totally confused why this problem is happening.
2.2.12-jbossorg-2but when I am clicking on SUbmit (or in any action on portlet That has an action assiociated with managed Bean) I am getting this error
Liferay Faces Alloy 4.2.5-ga6 (Philippi / Aug 11, 2015 AD)
Liferay Faces Bridge 4.2.5-ga6 (Philippi / Aug 11, 2015 AD)
07:08:53,566 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) WFLYSRV0010: Deployed "jsf2-portlet.war" (runtime-name : "jsf2-portlet.war")
07:14:36,899 WARNING [javax.enterprise.resource.webcontainer.jsf.lifecycle] (default task-39) javax.el.PropertyNotFoundException: /WEB-INF/views/applicant.xhtml @19,93 value="#{applicantModelBean.firstName}": Target Unreachable, identifier 'applicantModelBean' resolved to null: javax.faces.FacesException: javax.el.PropertyNotFoundException: /WEB-INF/views/applicant.xhtml @19,93 value="#{applicantModelBean.firstName}": Target Unreachable, identifier 'applicantModelBean' resolved to nullchecked everything ,totally confused why this problem is happening.
Kyle Joseph Stiemann, modified 9 Years ago.
Liferay Master
Posts: 760
Join Date: 1/14/13
Recent Posts
Hi Arkaprovo,
I've answered this question already in your other thread:
See the other thread for more details.
- Kyle
I've answered this question already in your other thread:
Your problems with JBoss/Wildfly are probably due to Mojarra being included twice on the classpath: once from the portlet's WEB-INF/lib and once from the servlet container. The sample JSF2 portlet you mentioned is designed to be used in Tomcat, not JBoss, so it includes Mojarra in its WEB-INF/lib. If you want things to run correctly, you should ensure that Mojarra is not included in your portlet's WEB-INF/lib...
See the other thread for more details.
- Kyle
Arkaprovo Bhattacharjee, modified 9 Years ago.
Junior Member
Posts: 31
Join Date: 2/7/16
Recent Posts
Kyle Joseph Stiemann:
Hi Arkaprovo,
I've answered this question already in your other thread:Your problems with JBoss/Wildfly are probably due to Mojarra being included twice on the classpath: once from the portlet's WEB-INF/lib and once from the servlet container. The sample JSF2 portlet you mentioned is designed to be used in Tomcat, not JBoss, so it includes Mojarra in its WEB-INF/lib. If you want things to run correctly, you should ensure that Mojarra is not included in your portlet's WEB-INF/lib...
See the other thread for more details.
- Kyle
I did exactly what you said excluded jsf-api and jsf-impl from WEB-INF/lib but same problem persist.
Kyle Joseph Stiemann, modified 9 Years ago.
Liferay Master
Posts: 760
Join Date: 1/14/13
Recent Posts
As I mentioned in your other thread:
Let's continue the discussion on your original thread. I'll lock this one.
- Kyle
The issue you are running into is FACES-2621. It was fixed in our new liferay-faces-bridge-impl repo, so you can try the snapshot from the 4.x version to see if things work better.
Let's continue the discussion on your original thread. I'll lock this one.
- Kyle