Fórum
java.lang.ClassCastException ERROR
sathyaprakash A, modificado 8 Anos atrás.
java.lang.ClassCastException ERROR
Junior Member Postagens: 67 Data de Entrada: 12/06/12 Postagens Recentes
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, modificado 8 Anos atrás.
RE: java.lang.ClassCastException ERROR
Liferay Legend Postagens: 6403 Data de Entrada: 23/09/08 Postagens Recentes
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, modificado 8 Anos atrás.
RE: java.lang.ClassCastException ERROR
Junior Member Postagens: 67 Data de Entrada: 12/06/12 Postagens Recentes
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, modificado 8 Anos atrás.
RE: java.lang.ClassCastException ERROR
Liferay Legend Postagens: 6403 Data de Entrada: 23/09/08 Postagens Recentes
and the answer to the other questions? Inheritance hierarchy?