簡體   English   中英

無法將 portlet [portletname] 的角色與角色名稱 [rolename] liferay 6.1 鏈接

[英]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>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM