I´m developing an application for Liferay 6.1 EE GA3.
Under the control panel, we have the section Private plugin installer where we can install / deploy new portlets. I was using the panel and the section was workng correctly.
Then i tried to install a custom portlet. For some reason the installation failed and i removed the portlet from the "deploy" folder and i even restarted the server. This portlet don´t do anything very special, it just runs some custom queries against Liferay´s Lucene search engine.
And then, after this process, the section "Server > Plugins installation > Private plugin installer" kind of "disapeared" from my screen.
Below are the screens that i see when i acess the sections "Server > Server Administration" and "Server > Plugins installation" (you can see that it appears empty, without the link for the Private Plugin installer):
Screenshot 1: Server > Server Administration (showing an empty screen)
Screenshot 2: Server > Plugins installation (showing an empty screen)
Here is the screen where you can see that my user has all the necessary administrative permissions to install plugins:
Screenshot 3: My user profile and permissions
In the screen below you can see that the Private Plugin installer Hook is installed in the webapps folder (in fact it already was installed all the time) as are some others hooks, themes and portlets:
Screenshot 4: Tomcat´s webaaps folder
Here is the content of the /html/portlet/admin/view.jsp and /html/portlet/admin/view.portal.jsp (with the initial comments removed from the code). Those files were not manually edited.
Content of /html/portlet/admin/view.jsp
<%@ include file="/html/portlet/admin/view.portal.jsp" %>
Content of /html/portlet/admin/view.portal.jsp
<%@ include file="/html/portlet/admin/init.jsp" %>
<c:choose>
<c:when test="<%= permissionChecker.isOmniadmin() %>">
<%
String tabs1 = ParamUtil.getString(request, "tabs1", "server");
boolean showTabs1 = false;
if (portletName.equals(PortletKeys.ADMIN_INSTANCE)) {
tabs1 = "instances";
}
else if (portletName.equals(PortletKeys.ADMIN_PLUGINS)) {
tabs1 = "plugins";
}
else if (portletName.equals(PortletKeys.ADMIN_SERVER)) {
tabs1 = "server";
}
else if (portletName.equals(PortletKeys.ADMIN)) {
showTabs1 = true;
}
String tabs2 = ParamUtil.getString(request, "tabs2");
String tabs3 = ParamUtil.getString(request, "tabs3");
if (tabs1.equals("plugins")) {
if (!tabs2.equals("portlet-plugins") && !tabs2.equals("theme-plugins") && !tabs2.equals("layout-template-plugins") && !tabs2.equals("hook-plugins") && !tabs2.equals("web-plugins")) {
tabs2 = "portlet-plugins";
}
}
int cur = ParamUtil.getInteger(request, SearchContainer.DEFAULT_CUR_PARAM);
int delta = ParamUtil.getInteger(request, SearchContainer.DEFAULT_DELTA_PARAM);
PortletURL portletURL = renderResponse.createRenderURL();
portletURL.setParameter("struts_action", "/admin/view");
portletURL.setParameter("tabs1", tabs1);
portletURL.setParameter("tabs2", tabs2);
portletURL.setParameter("tabs3", tabs3);
%>
<portlet:renderURL var="redirectURL">
<portlet:param name="struts_action" value="/admin/view" />
<portlet:param name="tabs1" value="<%= tabs1 %>" />
<portlet:param name="tabs2" value="<%= tabs2 %>" />
<portlet:param name="tabs3" value="<%= tabs3 %>" />
<portlet:param name="cur" value="<%= String.valueOf(cur) %>" />
</portlet:renderURL>
<aui:form action="<%= portletURL.toString() %>" method="post" name="fm">
<aui:input name="<%= Constants.CMD %>" type="hidden" />
<aui:input name="tabs1" type="hidden" value="<%= tabs1 %>" />
<aui:input name="tabs2" type="hidden" value="<%= tabs2 %>" />
<aui:input name="tabs3" type="hidden" value="<%= tabs3 %>" />
<aui:input name="redirect" type="hidden" value="<%= redirectURL %>" />
<aui:input name="portletId" type="hidden" />
<c:if test="<%= showTabs1 %>">
<liferay-ui:tabs
names="server,instances,plugins"
url="<%= portletURL.toString() %>"
/>
</c:if>
<c:choose>
<c:when test='<%= tabs1.equals("server") %>'>
<%@ include file="/html/portlet/admin/server.jspf" %>
<aui:script use="liferay-admin">
new Liferay.Portlet.Admin(
{
form: document.<portlet:namespace />fm,
namespace: '<portlet:namespace />',
url: '<portlet:actionURL><portlet:param name="struts_action" value="/admin/edit_server" /></portlet:actionURL>'
}
);
</aui:script>
</c:when>
<c:when test='<%= tabs1.equals("instances") %>'>
<%@ include file="/html/portlet/admin/instances.jspf" %>
</c:when>
<c:when test='<%= tabs1.equals("plugins") %>'>
<%
PortletURL marketplaceURL = null;
if ((PrefsPropsUtil.getBoolean(PropsKeys.AUTO_DEPLOY_ENABLED, PropsValues.AUTO_DEPLOY_ENABLED) || PortalUtil.isOmniadmin(user.getUserId())) && PortletLocalServiceUtil.hasPortlet(themeDisplay.getCompanyId(), PortletKeys.MARKETPLACE_STORE)) {
marketplaceURL = ((RenderResponseImpl)renderResponse).createRenderURL(PortletKeys.MARKETPLACE_STORE);
}
boolean showEditPluginHREF = false;
boolean showReindexButton = true;
%>
<%@ include file="/html/portlet/plugins_admin/plugins.jspf" %>
</c:when>
</c:choose>
</aui:form>
<aui:script>
function <portlet:namespace />saveServer(cmd) {
document.<portlet:namespace />fm.<portlet:namespace /><%= Constants.CMD %>.value = cmd;
document.<portlet:namespace />fm.<portlet:namespace />redirect.value = "<portlet:renderURL><portlet:param name="struts_action" value="/admin/view" /><portlet:param name="tabs1" value="<%= tabs1 %>" /><portlet:param name="tabs2" value="<%= tabs2 %>" /><portlet:param name="tabs3" value="<%= tabs3 %>" /><portlet:param name="<%= SearchContainer.DEFAULT_CUR_PARAM %>" value="<%= String.valueOf(cur) %>" /><portlet:param name="<%= SearchContainer.DEFAULT_DELTA_PARAM %>" value="<%= String.valueOf(delta) %>" /></portlet:renderURL>";
submitForm(document.<portlet:namespace />fm, "<portlet:actionURL><portlet:param name="struts_action" value="/admin/edit_server" /></portlet:actionURL>");
}
</aui:script>
</c:when>
<c:otherwise>
<liferay-util:include page="/html/portal/portlet_access_denied.jsp" />
</c:otherwise>
</c:choose>
Thanks for your attention
/group/control_panel/manage?p_p_id=136&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&doAsGroupId=10179&refererPlid=10613
) to both the Server Administration and Plugins Instalation screens? – brandizzi