Fórum

Inter portlet service call giving classcast exception

thumbnail
Nitin Yeola, modificado 10 Anos atrás.

Inter portlet service call giving classcast exception

Junior Member Postagens: 64 Data de Entrada: 16/01/14 Postagens Recentes
I called service method of one custom portlet in another custom portlet.

But on calling this method, it is giving class cast exception.

anybody have idea on this?

thanks in advanced.
thumbnail
Hitesh Methani, modificado 10 Anos atrás.

RE: Inter portlet service call giving classcast exception

Regular Member Postagens: 171 Data de Entrada: 24/06/10 Postagens Recentes
Hello Nitin,

This happens if your service-jar in consumer portlet reference is not the latest one deployed in producer portlet.

You can use "required-deployment-contexts=Producer-portlet-name" in liferay-plugin-package.properties of your consumer portlet, if you are using liferay-version-6.0+ to achieve this if not doing so.

Regards,
Hitesh Methani.