Forums de discussion

Error in portlet

thumbnail
Jose Miguel Loor, modifié il y a 7 années.

Error in portlet

New Member Publications: 2 Date d'inscription: 13/12/11 Publications récentes
Hi

I have a customized login portlet that uses liferay-faces-bridge-impl-3.2.5-ga6.jar:3.2.5-ga6

I have found that, randomly, the portlet throws this exception

04:40:36,261 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/mupi-ebanking-login-portlet].[mupiebankingloginportlet Servlet]] (http-/0.0.0.0:8080-60) JBWEB000236: Servlet.service() for servlet mupiebankingloginportlet Servlet threw exception: java.lang.ClassCastException: com.liferay.faces.bridge.context.flash.internal.FlashHttpServletResponse cannot be cast to javax.portlet.PortletResponse
at com.liferay.faces.bridge.scope.internal.BridgeRequestScopeImpl.saveState(BridgeRequestScopeImpl.java:388) [liferay-faces-bridge-impl-3.2.5-ga6.jar:3.2.5-ga6 (Ephesus / Aug 11, 2015 AD)]
at com.liferay.faces.bridge.internal.BridgePhaseActionImpl.execute(BridgePhaseActionImpl.java:120) [liferay-faces-bridge-impl-3.2.5-ga6.jar:3.2.5-ga6 (Ephesus / Aug 11, 2015 AD)]
...
I am using a portlet with jsf 2, over a liferay 6.2 deployed in a jboss eap 6 server

any ideas ?

thanks a lot
thumbnail
Neil Griffin, modifié il y a 7 années.

RE: Error in portlet

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
Hi Jose,

We have a demo jsf-login-portlet that shows how to create a login portlet. However, it only works on Tomcat.

Please check to make sure that your sign-in backing bean is doing the same type of thing.

Also, please try switching over to our new -SNAPSHOT dependencies for Liferay Portal 6.2 -- here is an example pom.xml that lists them.

Kind Regards,

Neil