Foros de discusión

Problem on 'Add Permission' not showing in roles (control panel) [SOLVED]

thumbnail
kailash b, modificado hace 10 años.

Problem on 'Add Permission' not showing in roles (control panel) [SOLVED]

New Member Mensajes: 14 Fecha de incorporación: 12/11/12 Mensajes recientes
Dear All,

I have developed portlet 'CFS-portlet' which is working well without problem, when i'm going on Control Panel > Role any roles on the list click on Action > Define Permission
when i click on Define Permission its not showing me 'Add Permission' list. and same time i'm getting error

Jul 24, 2013 6:55:18 AM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.util.MissingResourceException: Can't find resource for bundle com.liferay.portlet.PortletResourceBundle, key javax.portlet.title
at java.util.ResourceBundle.getObject(ResourceBundle.java:374)
at java.util.ResourceBundle.getString(ResourceBundle.java:334)
at com.liferay.portal.util.PortalImpl.getPortletTitle(PortalImpl.java:3498)
at com.liferay.portal.util.PortalUtil.getPortletTitle(PortalUtil.java:1065)
at com.liferay.portal.util.comparator.PortletTitleComparator.compare(PortletTitleComparator.java:52)
at com.liferay.portal.util.comparator.PortletTitleComparator.compare(PortletTitleComparator.java:1)
at java.util.Arrays.mergeSort(Arrays.java:1270)
at java.util.Arrays.mergeSort(Arrays.java:1282)
at java.util.Arrays.mergeSort(Arrays.java:1281)
at java.util.Arrays.mergeSort(Arrays.java:1282)
at java.util.Arrays.mergeSort(Arrays.java:1281)
at java.util.Arrays.mergeSort(Arrays.java:1282)
at java.util.Arrays.sort(Arrays.java:1210)
at java.util.Collections.sort(Collections.java:159)
at com.liferay.portal.kernel.util.ListUtil.sort(ListUtil.java:213)
at org.apache.jsp.html.portlet.roles_005fadmin.edit_005frole_005fpermissions_jsp._jspService(edit_005frole_005fpermissions_jsp.java:858)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
.
.
.
.

06:55:18,292 ERROR [http-bio-8080-exec-6][IncludeTag:253] Current URL /group/control_panel/manage?p_p_id=128&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&doAsGroupId=10904&refererPlid=10927&_128_struts_action=%2Froles_admin%2Fedit_role_permissions&_128_cmd=view&_128_redirect=http%3A%2F%2Flocalhost%3A8080%2Fgroup%2Fcontrol_panel%2Fmanage%3Fp_p_id%3D128%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26doAsGroupId%3D10904%26refererPlid%3D10927%26_128_struts_action%3D%252Froles_admin%252Fview%26_128_cur%3D1%26_128_delta%3D20%2

19:
20: List<Portlet> portlets = PortletLocalServiceUtil.getPortlets(company.getCompanyId(), includeSystemPortlets, false);
21:
22: portlets = ListUtil.sort(portlets, new PortletTitleComparator(application, locale));
23: %>
24:
25: <aui:form action="<%= currentURL %>" name="resourceSelection">


Stacktrace:
06:55:18,307 ERROR [http-bio-8080-exec-6][IncludeTag:154] java.util.MissingResourceException: Can't find resource for bundle com.liferay.portlet.PortletResourceBundle, key javax.portlet.title
at java.util.ResourceBundle.getObject(ResourceBundle.java:374)
at java.util.ResourceBundle.getString(ResourceBundle.java:334)
at com.liferay.portal.util.PortalImpl.getPortletTitle(PortalImpl.java:3498)
at com.liferay.portal.util.PortalUtil.getPortletTitle(PortalUtil.java:1065)
at com.liferay.portal.util.comparator.PortletTitleComparator.compare(PortletTitleComparator.java:52)
at com.liferay.portal.util.comparator.PortletTitleComparator.compare(PortletTitleComparator.java:1)
at java.util.Arrays.mergeSort(Arrays.java:1270)
at java.util.Arrays.mergeSort(Arrays.java:1282)
at java.util.Arrays.mergeSort(Arrays.java:1281)
at java.util.Arrays.mergeSort(Arrays.java:1282)
at java.util.Arrays.mergeSort(Arrays.java:1281)
at java.util.Arrays.mergeSort(Arrays.java:1282)
at java.util.Arrays.sort(Arrays.java:1210)
at java.util.Collections.sort(Collections.java:159)
at com.liferay.portal.kernel.util.ListUtil.sort(ListUtil.java:213)
at org.apache.jsp.html.portlet.roles_005fadmin.edit_005frole_005fpermissions_jsp._jspService(edit_005frole_005fpermissions_jsp.java:858)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)


And when i'm removing the same portlet CFS-portlet, Roles are working fine without problem.

Please help me out for the issue.

Thanks in Advance,
Kailash B
thumbnail
Pankaj Kathiriya, modificado hace 10 años.

RE: Problem in 'Add Permission' list not showing in roles (control panel)

Liferay Master Mensajes: 722 Fecha de incorporación: 5/08/10 Mensajes recientes
This can happen when
<portlet-info>
			<title>test</title>
			<short-title>test</short-title>
			<keywords>test</keywords>
		</portlet-info>

is missing in your portlet.xml.
OR when you have defined portet title,description in language properties and do not have configured it properly.


HTH
thumbnail
kailash b, modificado hace 10 años.

RE: Problem in 'Add Permission' list not showing in roles (control panel)

New Member Mensajes: 14 Fecha de incorporación: 12/11/12 Mensajes recientes
Pankaj Kathiriya:
This can happen when
<portlet-info>
			<title>test</title>
			<short-title>test</short-title>
			<keywords>test</keywords>
		</portlet-info>

is missing in your portlet.xml.
OR when you have defined portet title,description in language properties and do not have configured it properly.


HTH



Thanks a lot Pankaj for your valuable input, now its working fine..
fouad fouad, modificado hace 9 años.

RE: Problem in 'Add Permission' list not showing in roles (control panel)

Junior Member Mensajes: 28 Fecha de incorporación: 8/08/14 Mensajes recientes
Pankaj Kathiriya:
This can happen when
<portlet-info>
			<title>test</title>
			<short-title>test</short-title>
			<keywords>test</keywords>
		</portlet-info>

is missing in your portlet.xml.
OR when you have defined portet title,description in language properties and do not have configured it properly.


HTH


i have the <portlet-info> with all the info correctly written.

and i dont have language.properties defined emoticon

what might be my problem.