Forums de discussion

IllegalStateException on Liferay 6.1

thumbnail
Mihail Zheludev, modifié il y a 10 années.

IllegalStateException on Liferay 6.1

Junior Member Publications: 43 Date d'inscription: 08/01/13 Publications récentes
Hi! I trying create jsf portlet with

jsf-api 2.2.0
liferay-faces-3.1.2-ga3
primefaces 3.3

but when add this portlet on page get exception:

[2013-07-12 10:59:02,889] ERROR: render_portlet_jsp                      :: java.lang.IllegalStateException: Could not find backup for factory javax.faces.lifecycle.LifecycleFactory.
        at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1135)
        at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:379)
        at com.liferay.faces.bridge.BridgePhaseBaseImpl.<init>(BridgePhaseBaseImpl.java:102)
        at com.liferay.faces.bridge.BridgePhaseCompatImpl.<init>(BridgePhaseCompatImpl.java:38)
        at com.liferay.faces.bridge.BridgePhaseRenderImpl.<init>(BridgePhaseRenderImpl.java:66)
        at com.liferay.faces.bridge.BridgePhaseFactoryImpl.getBridgeRenderPhase(BridgePhaseFactoryImpl.java:49)
        at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:110)
        at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:255)
        at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
        at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:204)
        at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
        at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:100)
        at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
        at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:93)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:71)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)</init></init></init>


What is wrong?
thumbnail
Vernon Singleton, modifié il y a 10 années.

RE: IllegalStateException on Liferay 6.1

Expert Publications: 315 Date d'inscription: 14/01/13 Publications récentes
Liferay-faces-3.1.2-ga3 was released some time ago. And it was tested with mojarra 2.1.21 at that time. There have been significant changes made in mojarra 2.2, which are currently being considered in liferay-faces development. Future versions of liferay-faces will be released after testing with mojarra 2.2.x, but probably not 2.2.0.
thumbnail
Vernon Singleton, modifié il y a 10 années.

RE: IllegalStateException on Liferay 6.1

Expert Publications: 315 Date d'inscription: 14/01/13 Publications récentes
Um ... let me expand ...

If you look at the liferay faces version scheme:
http://www.liferay.com/community/wiki/-/wiki/Main/Liferay+Faces+Version+Scheme

You will notice that liferay faces version 4 is slated for use with mojarra 2.2.

So you might want to try with the latest snapshot of liferay-faces 4:
https://oss.sonatype.org/content/repositories/snapshots/com/liferay/faces/liferay-faces/4.1.0-ga1-SNAPSHOT/

Let us know what you find.
thumbnail
Vernon Singleton, modifié il y a 10 années.

RE: IllegalStateException on Liferay 6.1

Expert Publications: 315 Date d'inscription: 14/01/13 Publications récentes
One last note on this ... someone sent me this link:
http://stackoverflow.com/questions/17157261/jsf-2-2-exception-in-liferay

This is some of the latest information from the lead developer of liferay faces, Neil Griffin.

He suggests that you click "watch" on the JIRA issues FACES-1459 and FACES-1531 to get notified when the relavent version of Liferay Faces starts reaching stability for your version of Liferay and Mojarra 2.2.x.

Hope that helps.
thumbnail
Mihail Zheludev, modifié il y a 10 années.

RE: IllegalStateException on Liferay 6.1

Junior Member Publications: 43 Date d'inscription: 08/01/13 Publications récentes
I have tried next versions:

<liferay-faces.version>4.1.0-ga1-SNAPSHOT</liferay-faces.version>
<jsf-api.version>2.2.0</jsf-api.version>

and
<liferay-faces.version>3.1.2-ga3</liferay-faces.version>
<jsf-api.version>2.1.21</jsf-api.version>

Error is the same when portlet is rendering.

But! I have success! With next versions:

<liferay-faces.version>3.1.0-ga1</liferay-faces.version>
<jsf-api.version>2.1.21</jsf-api.version>


Thank you, Vernon!
thumbnail
Vernon Singleton, modifié il y a 10 années.

RE: IllegalStateException on Liferay 6.1

Expert Publications: 315 Date d'inscription: 14/01/13 Publications récentes
Mihail Zheludev:

<liferay-faces.version>3.1.2-ga3</liferay-faces.version>
<jsf-api.version>2.1.21</jsf-api.version>

Error is the same when portlet is rendering.


This combination should be working.

Mihail Zheludev:

But! I have success! With next versions:

<liferay-faces.version>3.1.0-ga1</liferay-faces.version>
<jsf-api.version>2.1.21</jsf-api.version>


Thank you, Vernon!


Glad to hear that you got it working.
It's always great to have more folks using JSF and Liferay :-)

- Vernon