Foros de discusión

Struts Portlet in Liferay 6.0.5

thumbnail
Gnaniyar Zubair, modificado hace 13 años.

Struts Portlet in Liferay 6.0.5

Liferay Master Mensajes: 722 Fecha de incorporación: 19/12/07 Mensajes recientes
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 hace 13 años.

RE: Struts Portlet in Liferay 6.0.5

Liferay Master Mensajes: 535 Fecha de incorporación: 16/05/08 Mensajes recientes
what container/application server are you using?
thumbnail
Gnaniyar Zubair, modificado hace 13 años.

RE: Struts Portlet in Liferay 6.0.5

Liferay Master Mensajes: 722 Fecha de incorporación: 19/12/07 Mensajes recientes
thanks for your immediate reply Manish.

I am using latest tomcat-6.0.26 downloaded from Liferay..
Arun Kumar S, modificado hace 13 años.

RE: Struts Portlet in Liferay 6.0.5

Regular Member Mensajes: 182 Fecha de incorporación: 23/06/08 Mensajes recientes
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 hace 13 años.

RE: Struts Portlet in Liferay 6.0.5

Liferay Master Mensajes: 535 Fecha de incorporación: 16/05/08 Mensajes recientes
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 hace 13 años.

RE: Struts Portlet in Liferay 6.0.5

Regular Member Mensajes: 182 Fecha de incorporación: 23/06/08 Mensajes recientes
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 hace 13 años.

RE: Struts Portlet in Liferay 6.0.5

Regular Member Mensajes: 145 Fecha de incorporación: 31/10/09 Mensajes recientes
is there any other solution for this problem?
stephan t, modificado hace 12 años.

RE: Struts Portlet in Liferay 6.0.5

Junior Member Mensajes: 48 Fecha de incorporación: 19/10/10 Mensajes recientes
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