Forums de discussion
ResourceResponseImpl cannot be cast to ActionResponse
Travis De Silva, modifié il y a 12 années.
ResourceResponseImpl cannot be cast to ActionResponse
New Member Publications: 11 Date d'inscription: 21/03/10 Publications récentes
Hi,
I am getting the following error when I try to use a similar feature as you get in the jsf2-ipc.events-portlet example
ClassCastException: com.liferay.portlet.ResourceResponseImpl cannot be cast to javax.portlet.ActionResponse
The error is coming from the following
ActionResponse actionResponse = (ActionResponse) externalContext.getResponse();
Not sure if this is similar to the error reported here but I guess my error is when trying to do IPC and not related to window state.
I am running Liferay 6.0.6 on JBoss 5.1.
I suspect it is to do with some jar file / class loading issue as is the case with these type of issues in Java.
Has anyone else had this issue and was able to fix it?
Cheers
Travis
I am getting the following error when I try to use a similar feature as you get in the jsf2-ipc.events-portlet example
ClassCastException: com.liferay.portlet.ResourceResponseImpl cannot be cast to javax.portlet.ActionResponse
The error is coming from the following
ActionResponse actionResponse = (ActionResponse) externalContext.getResponse();
Not sure if this is similar to the error reported here but I guess my error is when trying to do IPC and not related to window state.
I am running Liferay 6.0.6 on JBoss 5.1.
I suspect it is to do with some jar file / class loading issue as is the case with these type of issues in Java.
Has anyone else had this issue and was able to fix it?
Cheers
Travis
Achraf BEN AISSI, modifié il y a 12 années.
RE: ResourceResponseImpl cannot be cast to ActionResponse
New Member Publications: 14 Date d'inscription: 30/12/10 Publications récentes
Hello Travis,
The problem may com from jar provided by liferay-plugins-sdk-6.1.0-SNAPSHOT.
So If you are using this one, try in your project, to remove /docroot/WEB-INF/lib/*.jar and replace them by
jboss-el-2.0.0.GA.jar
jsf-api-2.1.1-b03.jar
jsf-impl-2.1.1-b03.jar
portletfaces-bridge-2.0.0.jar
You con find these files in the source of JSF2 IPC (Events):
http://repository.portletfaces.org/content/repositories/portletfaces-releases/org/portletfaces/examples/jsf2-ipc-events-portlet/1.0.0/jsf2-ipc-events-portlet-1.0.0-sources.jar
I working with Liferay 6.0.5 and tomcat, i had exactly the same and i fixed this issue like that.
i hope it helps
Achraf
The problem may com from jar provided by liferay-plugins-sdk-6.1.0-SNAPSHOT.
So If you are using this one, try in your project, to remove /docroot/WEB-INF/lib/*.jar and replace them by
jboss-el-2.0.0.GA.jar
jsf-api-2.1.1-b03.jar
jsf-impl-2.1.1-b03.jar
portletfaces-bridge-2.0.0.jar
You con find these files in the source of JSF2 IPC (Events):
http://repository.portletfaces.org/content/repositories/portletfaces-releases/org/portletfaces/examples/jsf2-ipc-events-portlet/1.0.0/jsf2-ipc-events-portlet-1.0.0-sources.jar
I working with Liferay 6.0.5 and tomcat, i had exactly the same and i fixed this issue like that.
i hope it helps
Achraf