Package org.apache.pluto.container

Examples of org.apache.pluto.container.PortletContainerException


        if (ipc != null) {
            return ipc;
        }
        String msg = "Unable to locate portlet config [applicationName=" + applicationName + "]/[" + portletName + "].";
        logger.warn(msg);
        throw new PortletContainerException(msg);
    }
View Full Code Here


        if (ipc != null) {
            return ipc.getPortletDefinition();
        }
        String msg = "Unable to retrieve portlet: '" + applicationName + "/" + portletName + "'";
        logger.warn(msg);
        throw new PortletContainerException(msg);
    }
View Full Code Here

        if (ipc != null) {
            return ipc.getPortletApplicationDefinition();
        }
        String msg = "Unable to retrieve portlet application: '" + applicationName + "'";
        logger.warn(msg);
        throw new PortletContainerException(msg);
    }
View Full Code Here

        PortletApplicationDefinition portletApp = null;
        try {
            InputStream paIn = servletContext.getResourceAsStream(PORTLET_XML);
            InputStream webIn = servletContext.getResourceAsStream(WEB_XML);
            if (paIn == null) {
                throw new PortletContainerException("Cannot find '" + PORTLET_XML
                        + "'. Are you sure it is in the deployed package?");
            }
            if (webIn == null) {
                throw new PortletContainerException("Cannot find '" + WEB_XML
                        + "'. Are you sure it is in the deployed package?");
            }
            portletApp = this.portletAppDescriptorService.read(name, contextPath, paIn);
            this.portletAppDescriptorService.mergeWebDescriptor(portletApp, webIn);
        }
        catch (Exception ex) {
            throw new PortletContainerException("Exception loading portlet descriptor for: " + servletContext.getServletContextName(), ex);
        }
        return portletApp;
    }
View Full Code Here

    }

    public void admin(PortletRequestContext requestContext, PortletRequest request, PortletResponse response)
    throws IOException, PortletException, PortletContainerException
    {
        throw new PortletContainerException("Unsupported action ADMIN");
    }
View Full Code Here

            {
                storeEntityPreferences(map, rc.getPage(), window);
            }
            catch (PreferencesException e)
            {
                throw new PortletContainerException(e);
            }
            return;
        }       
        String userName = request.getUserPrincipal() != null ? request.getUserPrincipal().getName() : null;
        if (userName == null)
        {
            userName = SubjectHelper.getPrincipal(window.getRequestContext().getSubject(), User.class).getName();
        }
        try
        {
            storeUserPreferences(map, window, userName);
        }
        catch (PreferencesException e)
        {
            throw new PortletContainerException(e);
        }
    }
View Full Code Here

            classLoaders.put(portletApp.getName(), Thread.currentThread().getContextClassLoader());
            for (PortletDefinition portlet: portletApp.getPortlets()) {
                String appName = portletContext.getApplicationName();
                if (appName == null) {
                    throw new PortletContainerException("Portlet application name should not be null.");
                }
                portletConfigs.put(
                    portletContext.getApplicationName() + "/" + portlet.getPortletName(),
                    new DriverPortletConfigImpl(portletContext, portlet)
                );
View Full Code Here

        if (ipc != null) {
            return ipc;
        }
        String msg = "Unable to locate portlet config [applicationName="+applicationName+"]/["+portletName+"].";
        LOG.warn(msg);
        throw new PortletContainerException(msg);
    }
View Full Code Here

        if (ipc != null) {
            return ipc.getPortletDefinition();
        }
        String msg = "Unable to retrieve portlet: '"+applicationName+"/"+portletName+"'";
        LOG.warn(msg);
        throw new PortletContainerException(msg);
    }
View Full Code Here

        if (ipc != null) {
            return ipc.getPortletApplicationDefinition();
        }
        String msg = "Unable to retrieve portlet application: '"+applicationName+"'";
        LOG.warn(msg);
        throw new PortletContainerException(msg);
    }
View Full Code Here

TOP

Related Classes of org.apache.pluto.container.PortletContainerException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.