Foren
java.lang.ClassCastException ERROR
sathyaprakash A, geändert vor 8 Jahren.
java.lang.ClassCastException ERROR
Junior Member Beiträge: 67 Beitrittsdatum: 12.06.12 Neueste Beiträge
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
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
Olaf Kock, geändert vor 8 Jahren.
RE: java.lang.ClassCastException ERROR
Liferay Legend Beiträge: 6403 Beitrittsdatum: 23.09.08 Neueste Beiträge
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.
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.
sathyaprakash A, geändert vor 8 Jahren.
RE: java.lang.ClassCastException ERROR
Junior Member Beiträge: 67 Beitrittsdatum: 12.06.12 Neueste Beiträge
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
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
Olaf Kock, geändert vor 8 Jahren.
RE: java.lang.ClassCastException ERROR
Liferay Legend Beiträge: 6403 Beitrittsdatum: 23.09.08 Neueste Beiträge
and the answer to the other questions? Inheritance hierarchy?