掲示板
[RESOLVED] com.liferay.portal.NoSuchResourceActionException
14年前 に Gnaniyar Zubair によって更新されました。
[RESOLVED] com.liferay.portal.NoSuchResourceActionException
Liferay Master 投稿: 722 参加年月日: 07/12/19 最新の投稿
Hi all,
I created one jsp portlet in plugin. I got the error in the console like:
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
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
14年前 に Shagul Khaja によって更新されました。
RE: com.liferay.portal.NoSuchResourceActionException
Liferay Master 投稿: 758 参加年月日: 07/09/27 最新の投稿
Did you add that portlet to any page? When do you get the error?
14年前 に Gnaniyar Zubair によって更新されました。
RE: com.liferay.portal.NoSuchResourceActionException
Liferay Master 投稿: 722 参加年月日: 07/12/19 最新の投稿
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.
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.
14年前 に Shagul Khaja によって更新されました。
RE: com.liferay.portal.NoSuchResourceActionException
Liferay Master 投稿: 758 参加年月日: 07/09/27 最新の投稿
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
-Shagul
14年前 に Gnaniyar Zubair によって更新されました。
RE: com.liferay.portal.NoSuchResourceActionException
Liferay Master 投稿: 722 参加年月日: 07/12/19 最新の投稿
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
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
14年前 に Archi Madhu によって更新されました。
RE: com.liferay.portal.NoSuchResourceActionException
Regular Member 投稿: 237 参加年月日: 08/03/25 最新の投稿
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
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
14年前 に Gnaniyar Zubair によって更新されました。
[RESOLVED]: com.liferay.portal.NoSuchResourceActionException
Liferay Master 投稿: 722 参加年月日: 07/12/19 最新の投稿
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:
Step 2:
Step 3:
Modify that java file as mentioned below:
a) import this class
b) At line no 765 add this code ( blue colored line):
Role role = roleLocalService.getRole(companyId, RoleConstants.OWNER);
resourcePermissionLocalService.setResourcePermissions(
resource.getCompanyId(), resource.getName(), resource.getScope(),
resource.getPrimKey(), role.getRoleId(),
actionIds.toArray(new String[actionIds.size()]));
- Gnaniyar Zubair
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:
Liferay portal source >>>>>>>
Go to /portal-impl/src/com/liferay/portal/service/impl/
copy this java file : ResourceLocalServiceImpl.java
Step 2:
Paste the [b]ResourceLocalServiceImpl.java[/b] file here:
inside ext-impl>src>com>liferay>portal>service>impl>
Step 3:
Modify that java file as mentioned below:
a) import this class
[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);
[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
4年前 に Abdollah Esmaeilpour によって更新されました。
RE: [RESOLVED] com.liferay.portal.NoSuchResourceActionException
Junior Member 投稿: 60 参加年月日: 09/08/22 最新の投稿Archi Madhu:
Great. I had this problem and this solution worked for me too.
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
12年前 に Nitu Saksena によって更新されました。
RE: [RESOLVED] com.liferay.portal.NoSuchResourceActionException
New Member 投稿: 11 参加年月日: 11/02/02 最新の投稿
Droping the Liferay database resolved the problem for me.
12年前 に amit doshi によって更新されました。
RE: [RESOLVED] com.liferay.portal.NoSuchResourceActionException
Liferay Master 投稿: 550 参加年月日: 10/12/29 最新の投稿
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
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
11年前 に Vishal Panchal によって更新されました。
RE: [RESOLVED] com.liferay.portal.NoSuchResourceActionException
Expert 投稿: 289 参加年月日: 12/05/20 最新の投稿
Hi All,
I have also solved my problem by dropping all the rows of resourceAction table.
Thank you for your contribution..
Regards,
Vishal
I have also solved my problem by dropping all the rows of resourceAction table.
Thank you for your contribution..
Regards,
Vishal
10年前 に Udaya Kumar Velayudam によって更新されました。
RE: [RESOLVED] com.liferay.portal.NoSuchResourceActionException
New Member 投稿: 1 参加年月日: 13/01/22 最新の投稿
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?