Examples of PortletContainerException


Examples of org.apache.pluto.PortletContainerException

     * @param servletContext  the servlet context of the portal webapp.
     */
    public void init(ServletContext servletContext)
    throws PortletContainerException {
      if (servletContext == null) {
        throw new PortletContainerException(
            "Unable to initialize portlet container [" + name + "]: "
            + "servlet context is null.");
      }
        this.servletContext = servletContext;
        this.initialized = true;
View Full Code Here

Examples of org.apache.pluto.PortletContainerException

        // sanity check
        if (context == null || context.trim().equals("")) {
            final String msg = "Context was null or the empty string.";
            errorWithName(msg);
            throw new PortletContainerException(msg);
        }

        // obtain the context of the portlet
        ServletContext portletCtx = getPortletAppContext(context);

        // obtain the portlet application descriptor for the portlet
        // context.
        PortletAppDD portletAppDD = PortletDescriptorRegistry
                                        .getRegistry()
                                        .getPortletAppDD(portletCtx);

        // we can't return null
        if (portletAppDD == null) {
            final String msg = "Obtained a null portlet application description for " +
                "portlet context [" + context + "]";
            errorWithName(msg);
            throw new PortletContainerException(msg);
        }

        return portletAppDD;
    }
View Full Code Here

Examples of org.apache.pluto.PortletContainerException

      if (portletAppCtx == null) {
          final String msg = "Unable to obtain the servlet context for the " +
            "portlet app context path [" + portletAppContextPath + "]. Make " +
            "sure that the portlet app has been deployed, and that cross " +
            "context support is enabled for the portal app.";
          throw new PortletContainerException(msg);
      }
      return portletAppCtx;
    }
View Full Code Here

Examples of org.apache.pluto.PortletContainerException

        PortletAppDD portletAppDD = null;
        try {
            InputStream in = servletContext.getResourceAsStream(PORTLET_XML);
            portletAppDD = portletDDService.read(in);
        } catch (IOException ex) {
            throw new PortletContainerException(EXCEPTIONS.getString(
                    "error.context.descriptor.load",
                    new String[] { servletContext.getServletContextName() }),
                    ex);
        }
        return portletAppDD;
View Full Code Here

Examples of org.apache.pluto.PortletContainerException

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

Examples of org.apache.pluto.PortletContainerException

     * @param servletContext  the servlet context of the portal webapp.
     */
    public void init(ServletContext servletContext)
    throws PortletContainerException {
      if (servletContext == null) {
        throw new PortletContainerException(
            "Unable to initialize portlet container [" + name + "]: "
            + "servlet context is null.");
      }
        this.servletContext = servletContext;
        this.initialized = true;
View Full Code Here

Examples of org.apache.pluto.PortletContainerException

        // sanity check
        if (context == null || context.trim().equals("")) {
            final String msg = "Context was null or the empty string.";
            errorWithName(msg);
            throw new PortletContainerException(msg);
        }

        // obtain the context of the portlet
        ServletContext portletCtx = PortletContextManager.getPortletContext(servletContext, context);
        if (portletCtx == null) {
            final String msg = "Unable to obtain the servlet context for " +
                "portlet context [" + context + "].  Ensure the portlet has " +
                "been deployed and that cross context support is enabled.";
            errorWithName(msg);
            throw new PortletContainerException(msg);
        }

        // obtain the portlet application descriptor for the portlet
        // context.
        PortletAppDD portletAppDD = PortletDescriptorRegistry
                                        .getRegistry()
                                        .getPortletAppDD(portletCtx);

        // we can't return null
        if (portletAppDD == null) {
            final String msg = "Obtained a null portlet application description for " +
                "portlet context [" + context + "]";
            errorWithName(msg);
            throw new PortletContainerException(msg);
        }

        return portletAppDD;
    }
View Full Code Here

Examples of org.apache.pluto.container.PortletContainerException

        try
        {
            if (portletRegistry == null)
            {
                LOG.error("Optional Portlet Registry Service not found.");
                throw new PortletContainerException("Optional Portlet Registry Service not found.");
            }
            PortletApplicationDefinition ctx = portletRegistry.getPortletApplication(applicationName);
            Iterator i = ctx.getPortlets().iterator();
            while (i.hasNext())
            {
View Full Code Here

Examples of org.apache.pluto.container.PortletContainerException

        String portletName = PortletWindowConfig.parsePortletName(portletId);

        if (portletRegistry == null)
        {
            LOG.error("Optional Portlet Registry Service not found.");
            throw new PortletContainerException("Optional Portlet Registry Service not found.");
        }
        PortletApplicationDefinition portletApp = portletRegistry.getPortletApplication(applicationName);
        Iterator i = portletApp.getPortlets().iterator();
        while (i.hasNext())
        {
View Full Code Here

Examples of org.apache.pluto.container.PortletContainerException

        }

        try {
            if (portletRegistry == null) {
                LOG.error("Optional Portlet Registry Service not found.");
                throw new PortletContainerException("Optional Portlet Registry Service not found.");
            }
            PortletApplicationDefinition ctx = portletRegistry.getPortletApplication(applicationName);
            Iterator i = ctx.getPortlets().iterator();
            while(i.hasNext()) {
                PortletDefinition dd = (PortletDefinition)i.next();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.