Fórum

Struts Portlet in Liferay 6.0.5

thumbnail
Gnaniyar Zubair, modificado 13 Anos atrás.

Struts Portlet in Liferay 6.0.5

Liferay Master Postagens: 722 Data de Entrada: 19/12/07 Postagens Recentes
Hi all,

I have created Plugin Struts portlet using "Liferay's Struts Bridge" ( extending StrutsPortlet) in liferay-6.0.5. I have followed the steps as "sample-struts-liferay-portlet" in liferay svn.

But I am getting error on console: "java.lang.NoClassDefFoundError: com/liferay/portlet/StrutsPortlet". Even I copied "portal-impl.jar" file globally into "tomcat/lib/ext", But i am getting parse url error and some other errors.

Moreover, I have checked-in the "sample-struts-liferay-portlet" from liferay SVN , It is also throwing the same error

(Note: But struts portlet using "Apache Struts Bridge with Liferay." is working fine.)

It would be great if liferay team shed some light on this to resolve this liferay struts portlet issue as many developers are facing this same issue. .


- Gnaniyar Zubair
thumbnail
Manish Kumar Gupta, modificado 13 Anos atrás.

RE: Struts Portlet in Liferay 6.0.5

Liferay Master Postagens: 535 Data de Entrada: 16/05/08 Postagens Recentes
what container/application server are you using?
thumbnail
Gnaniyar Zubair, modificado 13 Anos atrás.

RE: Struts Portlet in Liferay 6.0.5

Liferay Master Postagens: 722 Data de Entrada: 19/12/07 Postagens Recentes
thanks for your immediate reply Manish.

I am using latest tomcat-6.0.26 downloaded from Liferay..
Arun Kumar S, modificado 13 Anos atrás.

RE: Struts Portlet in Liferay 6.0.5

Regular Member Postagens: 182 Data de Entrada: 23/06/08 Postagens Recentes
Hi Zubair,

Remove the deployXML which is set in the server.xml. It stops reading of the context.xml

HTH.
Arun
thumbnail
Manish Kumar Gupta, modificado 13 Anos atrás.

RE: Struts Portlet in Liferay 6.0.5

Liferay Master Postagens: 535 Data de Entrada: 16/05/08 Postagens Recentes
Hi Arun,

Are you suggesting to remove deployXML="false" attribute from server.xml?

If yes, this will lead to other problem and that's why it has been added explicitly for tomcat version above 6.0.

MAnish.
Arun Kumar S, modificado 13 Anos atrás.

RE: Struts Portlet in Liferay 6.0.5

Regular Member Postagens: 182 Data de Entrada: 23/06/08 Postagens Recentes
Hi Manish,

deployXML="false" attribute disable parsing the context XML descriptor embedded inside the application/portlet (located at /META-INF/context.xml).

Any how i agree with your point. I don't know other alternative solution to make it work. If you have any other suggestion please let us know.

Thanks,
Arun.
Sultee khan, modificado 13 Anos atrás.

RE: Struts Portlet in Liferay 6.0.5

Regular Member Postagens: 145 Data de Entrada: 31/10/09 Postagens Recentes
is there any other solution for this problem?
stephan t, modificado 12 Anos atrás.

RE: Struts Portlet in Liferay 6.0.5

Junior Member Postagens: 48 Data de Entrada: 19/10/10 Postagens Recentes
to everybody who's reading this thread, maybe my answer on this thread helps: http://www.liferay.com/de/community/forums/-/message_boards/message/8791743

cheers
Stephan