无法 link 具有角色名称 [rolename] liferay 6.1 的 portlet [portletname] 的角色
Unable to link role for portlet [portletname] with role-name [rolename] liferay 6.1
当我在 liferay 6.1.2 上部署我的 portlet 时,出现以下错误:
01:57:10,382 ERROR [pool-2-thread-1][PortletImpl:2253] Unable to link role for portlet [numberauctionmenu_WAR_numberauctionportlet] with role-name [power-user] because role-link is null
01:57:10,382 ERROR [pool-2-thread-1][PortletImpl:2253] Unable to link role for portlet [numberauctionmenu_WAR_numberauctionportlet] with role-name [administrator] because role-link is null
01:57:10,382 ERROR [pool-2-thread-1][PortletImpl:2253] Unable to link role for portlet [numberauctionmenu_WAR_numberauctionportlet] with role-name [guest] because role-link is null
01:57:10,382 ERROR [pool-2-thread-1][PortletImpl:2253] Unable to link role for portlet [numberauctionmenu_WAR_numberauctionportlet] with role-name [user] because role-link is null
但我的 portlet 没有错误...
解决方法是什么?
在我的 liferay-portlet.xml 我有:
<role-mapper>
<role-name>administrator</role-name>
<role-link>Administrator</role-link>
</role-mapper>
<role-mapper>
<role-name>guest</role-name>
<role-link>Guest</role-link>
</role-mapper>
<role-mapper>
<role-name>power-user</role-name>
<role-link>Power User</role-link>
</role-mapper>
<role-mapper>
<role-name>user</role-name>
<role-link>User</role-link>
</role-mapper>
当我在 liferay 6.1.2 上部署我的 portlet 时,出现以下错误:
01:57:10,382 ERROR [pool-2-thread-1][PortletImpl:2253] Unable to link role for portlet [numberauctionmenu_WAR_numberauctionportlet] with role-name [power-user] because role-link is null
01:57:10,382 ERROR [pool-2-thread-1][PortletImpl:2253] Unable to link role for portlet [numberauctionmenu_WAR_numberauctionportlet] with role-name [administrator] because role-link is null
01:57:10,382 ERROR [pool-2-thread-1][PortletImpl:2253] Unable to link role for portlet [numberauctionmenu_WAR_numberauctionportlet] with role-name [guest] because role-link is null
01:57:10,382 ERROR [pool-2-thread-1][PortletImpl:2253] Unable to link role for portlet [numberauctionmenu_WAR_numberauctionportlet] with role-name [user] because role-link is null
但我的 portlet 没有错误... 解决方法是什么?
在我的 liferay-portlet.xml 我有:
<role-mapper>
<role-name>administrator</role-name>
<role-link>Administrator</role-link>
</role-mapper>
<role-mapper>
<role-name>guest</role-name>
<role-link>Guest</role-link>
</role-mapper>
<role-mapper>
<role-name>power-user</role-name>
<role-link>Power User</role-link>
</role-mapper>
<role-mapper>
<role-name>user</role-name>
<role-link>User</role-link>
</role-mapper>