掲示板

java.lang.ClassCastException ERROR

8年前 に sathyaprakash A によって更新されました。

java.lang.ClassCastException ERROR

Junior Member 投稿: 67 参加年月日: 12/06/12 最新の投稿
Dear Friends,

I am getting the below error while deploying webservices portlet into portal.

Caused by: java.lang.ClassCastException: com.test.web Services.Weather Report cannot be cast to javax.portlet.Portlet

Please help..

Regards,
Sathyaprakash A
thumbnail
8年前 に Olaf Kock によって更新されました。

RE: java.lang.ClassCastException ERROR

Liferay Legend 投稿: 6403 参加年月日: 08/09/23 最新の投稿
What's the superclass of your class, what are the interfaces that your class implements and why do the class- and packagenames have spaces?

If you want to use something as a portlet, at least it has to have Portlet somewhere in its inheritance structure and your classname doesn't hint this to me.
8年前 に sathyaprakash A によって更新されました。

RE: java.lang.ClassCastException ERROR

Junior Member 投稿: 67 参加年月日: 12/06/12 最新の投稿
Dear olaf,

Sorry ... it was my mistake(Typo Error).. please see the below error.

com.test.webServices.WeatherReport cannot be cast to javax.portlet.Portlet

PORTLET.XML

<portlet-class>com.test.webServices.WeatherReport</portlet-class>

Class Name : WeatherReport
thumbnail
8年前 に Olaf Kock によって更新されました。

RE: java.lang.ClassCastException ERROR

Liferay Legend 投稿: 6403 参加年月日: 08/09/23 最新の投稿
and the answer to the other questions? Inheritance hierarchy?