Foren

Problem in Strut portlet plugin creation

thumbnail
Jigna p Joshi, geändert vor 15 Jahren.

Problem in Strut portlet plugin creation

Junior Member Beiträge: 41 Beitrittsdatum: 09.12.08 Neueste Beiträge
HI,

i have created one StrutPortlet.war..and it is getting deployed successfully in liferay portal..
I have used PortletAction class in my porlet java file.. and that's why added portal-impl.jar in liferay-plugin-packagae.properties file..

but then it is giving this exception..

2008-12-09 11:23:34,986 ERROR [com.liferay.portal.deploy.hot.PortletHotDeployListener] java.lang.ClassCastException: com.liferay.portlet.PortletConfigImpl cannot be cast to com.liferay.portlet.PortletConfigImpl
java.lang.ClassCastException: com.liferay.portlet.PortletConfigImpl cannot be cast to com.liferay.portlet.PortletConfigImpl
at com.liferay.portlet.StrutsPortlet.init(StrutsPortlet.java:175)
at com.liferay.portlet.InvokerPortletImpl.init(InvokerPortletImpl.java:250)
at com.liferay.portlet.PortletInstanceFactory._init(PortletInstanceFactory.java:253)

i have read in some posts that this is bcoz of ClassLoader problem due to portal-impl.jar..

even, in my portlet how can i use jsps which are in root\html\common\ folder...bcoz this are used in init.jsp and portlet.jsp of root file which i need in my portlet war file..

i want individual war file for my all portlets...which method would be more convenient for me..

i am using liferay-portal-jboss-tomcat-4.2-5.1.2 version of Liferay...and in my plugin's build.<machine-name>.properties file i have set following properties..

app.server.dir=C:/liferay-portal-jboss-tomcat-4.2-5.1.2
app.server.portal.dir=${app.server.dir}/server/Liferay/deploy/ROOT.war
app.server.classes.portal.dir=${app.server.portal.dir}/WEB-INF/classes
app.server.lib.global.dir=${app.server.dir}/server/Liferay/lib/ext
app.server.lib.portal.dir=${app.server.portal.dir}/WEB-INF/lib

i have also attached my war file with this post..please help me to solve out this..
thanx in advance