掲示板

Struts Portlet in Liferay 6.0.5

thumbnail
13年前 に Gnaniyar Zubair によって更新されました。

Struts Portlet in Liferay 6.0.5

Liferay Master 投稿: 722 参加年月日: 07/12/19 最新の投稿
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
13年前 に Manish Kumar Gupta によって更新されました。

RE: Struts Portlet in Liferay 6.0.5

Liferay Master 投稿: 535 参加年月日: 08/05/16 最新の投稿
what container/application server are you using?
thumbnail
13年前 に Gnaniyar Zubair によって更新されました。

RE: Struts Portlet in Liferay 6.0.5

Liferay Master 投稿: 722 参加年月日: 07/12/19 最新の投稿
thanks for your immediate reply Manish.

I am using latest tomcat-6.0.26 downloaded from Liferay..
13年前 に Arun Kumar S によって更新されました。

RE: Struts Portlet in Liferay 6.0.5

Regular Member 投稿: 182 参加年月日: 08/06/23 最新の投稿
Hi Zubair,

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

HTH.
Arun
thumbnail
13年前 に Manish Kumar Gupta によって更新されました。

RE: Struts Portlet in Liferay 6.0.5

Liferay Master 投稿: 535 参加年月日: 08/05/16 最新の投稿
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.
13年前 に Arun Kumar S によって更新されました。

RE: Struts Portlet in Liferay 6.0.5

Regular Member 投稿: 182 参加年月日: 08/06/23 最新の投稿
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.
13年前 に Sultee khan によって更新されました。

RE: Struts Portlet in Liferay 6.0.5

Regular Member 投稿: 145 参加年月日: 09/10/31 最新の投稿
is there any other solution for this problem?
12年前 に stephan t によって更新されました。

RE: Struts Portlet in Liferay 6.0.5

Junior Member 投稿: 48 参加年月日: 10/10/19 最新の投稿
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