Security Liferay-自定义权限-NoSuchResourceActionException

Security Liferay-自定义权限-NoSuchResourceActionException,security,service,liferay,action,Security,Service,Liferay,Action,我使用自定义服务和对用户管理portlet的公共部分的自定义访问权限实现了自己的服务生成器扩展 直到昨天,一切都很顺利。角色系统中显示的自定义操作以及我可以授予的自定义操作 现在,由于我对default.xml文件进行了较小的更改(例如重命名操作),因此出现了以下异常: javax.portlet.PortletException: com.liferay.portal.kernel.exception.NoSuchResourceActionException: 90#REMOVE_ROLE

我使用自定义服务和对用户管理portlet的公共部分的自定义访问权限实现了自己的服务生成器扩展

直到昨天,一切都很顺利。角色系统中显示的自定义操作以及我可以授予的自定义操作

现在,由于我对default.xml文件进行了较小的更改(例如重命名操作),因此出现了以下异常:

javax.portlet.PortletException: com.liferay.portal.kernel.exception.NoSuchResourceActionException: 90#REMOVE_ROLE
    at com.liferay.portal.kernel.portlet.LiferayPortlet.callActionMethod(LiferayPortlet.java:202)
    at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.callActionMethod(MVCPortlet.java:392)
    at com.liferay.portal.kernel.portlet.LiferayPortlet.processAction(LiferayPortlet.java:93)
    at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.processAction(MVCPortlet.java:249)
    at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:71)
    at com.liferay.portlet.CheckboxParametersPortletFilter.doFilter(CheckboxParametersPortletFilter.java:57)
    at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:68)
    at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
    at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:105) ...
现在每个自定义操作都会发生这种情况。我试图重新安装扩展,并重新启动服务器本身,但没有改变这种行为

我无法再选择我自己的自定义操作

我的default.xml文件如下所示

<resource-action-mapping>
<portlet-resource>
    <portlet-name>90</portlet-name>
    <permissions>
        <supports>
            <action-key>REMOVE_ROLE</action-key>
            <action-key>REMOVE_USER_GROUP</action-key>
            <action-key>REMOVE_ORGANIZATION</action-key>
            <action-key>ADD_SITE_MEMBER</action-key>
            <action-key>REMOVE_SITE_MEMBER</action-key>
        </supports>
        <site-member-defaults>
        </site-member-defaults>
        <guest-defaults>
        </guest-defaults>
        <guest-unsupported>
            <action-key>REMOVE_ROLE</action-key>
            <action-key>REMOVE_USER_GROUP</action-key>
            <action-key>REMOVE_ORGANIZATION</action-key>
            <action-key>ADD_SITE_MEMBER</action-key>
            <action-key>REMOVE_SITE_MEMBER</action-key>
        </guest-unsupported>
    </permissions>
</portlet-resource> 
...
... 
action.REMOVE_MEMBERS=Remove members
action.REMOVE_ROLE=Remove role
action.REMOVE_USER_GROUP=Remove user group
action.REMOVE_ORGANIZATION=Remove organization
action.ADD_SITE_MEMBER=Add member to site
action.REMOVE_SITE_MEMBER=Remove member from site 
...
是否有人知道遗漏了什么,以及为什么昨天使用相同的方法,而今天抛出异常


我尝试了任何方法来解决这个问题,也清除了缓存,但无论我做什么,错误仍然存在。

您是否指向portlet.properties文件中的正确XML文件?你能贴出来吗?嗨,米罗斯拉夫,是的,配置还可以。此外,昨天我再次启动了应用程序,现在它可以工作了。在我看来,这像是一个缓存问题。当我对我的开发进行热部署时,我也面临同样的问题。无论出于何种原因,似乎default.xml未正确处理,或者缓存中仍有某些内容。