Forums de discussion
Strange cast exception when portlet's page is shown
PortletFaces Community Member, modifié il y a 12 années.
Strange cast exception when portlet's page is shown
Regular Member Publications: 199 Date d'inscription: 03/04/12 Publications récentes
Hello,
The deploy goes well but when I open the portlet's page the following exception is thrown:
ERROR [LiferayPortletRequest] com.liferay.util.servlet.SharedSessionServletRequest cannot be cast to javax.servlet.http.HttpServletRequest
java.lang.ClassCastException: com.liferay.util.servlet.SharedSessionServletRequest cannot be cast to javax.servlet.http.HttpServletRequest
at org.portletfaces.bridge.container.liferay.LiferayPortletRequest.<init>(LiferayPortletRequest.java:52)
at org.portletfaces.bridge.container.liferay.PortletContainerLiferayImpl.<init>(PortletContainerLiferayImpl.java:84)
at org.portletfaces.bridge.container.PortletContainerFactoryImpl.getPortletContainer(PortletContainerFactoryImpl.java:82)
at org.portletfaces.bridge.context.ExternalContextImpl.preInitializeObjects(ExternalContextImpl.java:543)
at org.portletfaces.bridge.context.ExternalContextImpl.<init>(ExternalContextImpl.java:147)
at org.portletfaces.bridge.context.ExternalContextFactoryImpl.getExternalContext(ExternalContextFactoryImpl.java:52)
at com.sun.faces.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:93)
at BridgeImpl.java.getFacesContext(BridgeImpl.java:605)
at BridgeImpl.java.doFacesRequest(BridgeImpl.java:316)
I'm using the following configuration:
JBoss 5.1.0
Liferay ee sp1
IceFaces 2.0.2
PortletFacesBridge 2.0.0
Any idea about what is going wrong?
Thanks
The deploy goes well but when I open the portlet's page the following exception is thrown:
ERROR [LiferayPortletRequest] com.liferay.util.servlet.SharedSessionServletRequest cannot be cast to javax.servlet.http.HttpServletRequest
java.lang.ClassCastException: com.liferay.util.servlet.SharedSessionServletRequest cannot be cast to javax.servlet.http.HttpServletRequest
at org.portletfaces.bridge.container.liferay.LiferayPortletRequest.<init>(LiferayPortletRequest.java:52)
at org.portletfaces.bridge.container.liferay.PortletContainerLiferayImpl.<init>(PortletContainerLiferayImpl.java:84)
at org.portletfaces.bridge.container.PortletContainerFactoryImpl.getPortletContainer(PortletContainerFactoryImpl.java:82)
at org.portletfaces.bridge.context.ExternalContextImpl.preInitializeObjects(ExternalContextImpl.java:543)
at org.portletfaces.bridge.context.ExternalContextImpl.<init>(ExternalContextImpl.java:147)
at org.portletfaces.bridge.context.ExternalContextFactoryImpl.getExternalContext(ExternalContextFactoryImpl.java:52)
at com.sun.faces.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:93)
at BridgeImpl.java.getFacesContext(BridgeImpl.java:605)
at BridgeImpl.java.doFacesRequest(BridgeImpl.java:316)
I'm using the following configuration:
JBoss 5.1.0
Liferay ee sp1
IceFaces 2.0.2
PortletFacesBridge 2.0.0
Any idea about what is going wrong?
Thanks
Neil Griffin, modifié il y a 12 années.
RE: Strange cast exception when portlet's page is shown
Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
Does this happen when you deploy the Example ICEfaces 2 portlet? You can download the WAR for it here:
http://www.liferay.com/community/liferay-projects/liferay-faces/demos#icefaces3-portlet
Also, you might want to check if there is a servlet-api.jar inside of your deployed WEB-INF/lib folder. If so, that shouldn't be there.
http://www.liferay.com/community/liferay-projects/liferay-faces/demos#icefaces3-portlet
Also, you might want to check if there is a servlet-api.jar inside of your deployed WEB-INF/lib folder. If so, that shouldn't be there.