当我在 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>
关于java - 无法将 portlet [portletname] 的角色与角色名称 [rolename] liferay 6.1 链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61381212/