Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Gnaniyar Zubair
[RESOLVED] com.liferay.portal.NoSuchResourceActionException
February 21, 2010 10:29 PM
Answer

Gnaniyar Zubair

Rank: Liferay Master

Posts: 622

Join Date: December 19, 2007

Recent Posts

Hi all,

I created one jsp portlet in plugin. I got the error in the console like:


com.liferay.portal.NoSuchResourceActionException: <portletName>#CONFIGURATION



even i deleted that particular portlet from plugin and server , as well as I have deleted that portlet entry manually from the database(Preference).

But I am getting that error.

How to resolve it?

Thanks in advance

-Gnaniyar Zubair
Shagul Khajamohideen
RE: com.liferay.portal.NoSuchResourceActionException
February 21, 2010 3:36 AM
Answer

Shagul Khajamohideen

Rank: Liferay Master

Posts: 759

Join Date: September 27, 2007

Recent Posts

Did you add that portlet to any page? When do you get the error?
Gnaniyar Zubair
RE: com.liferay.portal.NoSuchResourceActionException
February 21, 2010 7:01 AM
Answer

Gnaniyar Zubair

Rank: Liferay Master

Posts: 622

Join Date: December 19, 2007

Recent Posts

Hi Khaja,

Thanks for your swift reply.

I have added that portlet in one page. It is working successfully at first time. If i refresh next time, i got that error what i mentioned.

- Gnaniyar Zubair.
Shagul Khajamohideen
RE: com.liferay.portal.NoSuchResourceActionException
February 21, 2010 12:53 PM
Answer

Shagul Khajamohideen

Rank: Liferay Master

Posts: 759

Join Date: September 27, 2007

Recent Posts

Did you remove the portlet from the page or just deleted the war? Also which version of Liferay are you using. Do you see the exceptions when you access the page where you added the portlet or other pages too? It is recommended not to work with the database directly to make any changes.

-Shagul
Gnaniyar Zubair
RE: com.liferay.portal.NoSuchResourceActionException
February 21, 2010 8:17 PM
Answer

Gnaniyar Zubair

Rank: Liferay Master

Posts: 622

Join Date: December 19, 2007

Recent Posts

Hi,

I removed the portlet from the page and i got the same error. then, I have removed war file from all the places and that portlet bundle from server also. Still I am getting the error.

Error is appearing in console when i visit that page but In UI, i got "Internal serve Error" .

My last trial was, changes in database entry.


- Gnaniyar Zubair
Archi Madhu
RE: com.liferay.portal.NoSuchResourceActionException
February 21, 2010 9:32 PM
Answer

Archi Madhu

Rank: Regular Member

Posts: 240

Join Date: March 24, 2008

Recent Posts

Hi there,

May be you can make server down , make resourcecode/resourceaction table empty,and restart server, it will again generate entries in.

let me know if it helps.

-Archi
Gnaniyar Zubair
[RESOLVED]: com.liferay.portal.NoSuchResourceActionException
February 21, 2010 10:14 PM
Answer

Gnaniyar Zubair

Rank: Liferay Master

Posts: 622

Join Date: December 19, 2007

Recent Posts

Hi Archi,

Thanks for your reply. I have fixed this issue successfully. Actually, that is liferay 5.2.3 bug. I have done these modification:


Step 1:

1Liferay portal source >>>>>>>
2    Go to  /portal-impl/src/com/liferay/portal/service/impl/
3    copy this java file :  ResourceLocalServiceImpl.java


Step 2:
1
2Paste the [b]ResourceLocalServiceImpl.java[/b] file here:
3        inside ext-impl>src>com>liferay>portal>service>impl>


Step 3:

Modify that java file as mentioned below:

a) import this class

1  [color=#200EC5]import com.liferay.portal.service.ResourceActionLocalServiceUtil;[/color]


b) At line no 765 add this code ( blue colored line):

Role role = roleLocalService.getRole(companyId, RoleConstants.OWNER);

1[color=#200EC5]765.   ResourceActionLocalServiceUtil.checkResourceActions(resource.getName(), actionIds);[/color]


resourcePermissionLocalService.setResourcePermissions(
resource.getCompanyId(), resource.getName(), resource.getScope(),
resource.getPrimKey(), role.getRoleId(),
actionIds.toArray(new String[actionIds.size()]));


- Gnaniyar Zubair
Nitu Saksena
RE: [RESOLVED] com.liferay.portal.NoSuchResourceActionException
July 20, 2011 1:03 AM
Answer

Nitu Saksena

Rank: New Member

Posts: 11

Join Date: February 1, 2011

Recent Posts

Droping the Liferay database resolved the problem for me.
Amit Doshi
RE: [RESOLVED] com.liferay.portal.NoSuchResourceActionException
April 18, 2012 6:44 AM
Answer

Amit Doshi

Rank: Liferay Master

Posts: 549

Join Date: December 29, 2010

Recent Posts

Hi All,

To be more specific on the Archi's Comment, it solved my issue on deleting the entry from the resourceaction table of that particular portlet rather than deleting full table.

Remove that particular portlet from the webapps and once again deploy that portlet.

Your problem will get solved.

Thanks & Regards,
Amit Doshi
Vishal Panchal
RE: [RESOLVED] com.liferay.portal.NoSuchResourceActionException
March 9, 2013 5:57 AM
Answer

Vishal Panchal

Rank: Expert

Posts: 287

Join Date: May 20, 2012

Recent Posts

Hi All,

I have also solved my problem by dropping all the rows of resourceAction table.

Thank you for your contribution..emoticon

Regards,
Vishal
Udaya Kumar Velayudam
RE: [RESOLVED] com.liferay.portal.NoSuchResourceActionException
April 9, 2014 3:57 AM
Answer

Udaya Kumar Velayudam

Rank: New Member

Posts: 1

Join Date: January 21, 2013

Recent Posts

I also having the same problem. When I deleted the entry from ResourceAction it worked but wanted to know how Liferay generate the entries in the table? Are there any foreign key constraint that would affect this table?