Examples of PlutoAdminException


Examples of org.apache.pluto.portlet.admin.PlutoAdminException

        sb.append(b);
      }
      contents = sb.toString().trim();
    } catch (FileNotFoundException e) {
      logError(METHOD_NAME, e);
      throw new PlutoAdminException(e);
    } catch (IOException e) {
      logError(METHOD_NAME, e);
      throw new PlutoAdminException(e);
    finally {
      if (fis != null) {
        try {
          fis.close();
        } catch (IOException e) {
          logError(METHOD_NAME, e);
          throw new PlutoAdminException(e);
        }
      }
    }
    return contents;
  }
View Full Code Here

Examples of org.apache.pluto.portlet.admin.PlutoAdminException

      fos = new FileOutputStream(file);
      byte[] bytes = contents.getBytes();
      fos.write(bytes);
    } catch (FileNotFoundException e) {
      logError(METHOD_NAME, e);
      throw new PlutoAdminException(e);
    } catch (IOException e) {
      logError(METHOD_NAME, e);
      throw new PlutoAdminException(e);
    finally {
      if (fos != null) {
        try {
          fos.close();
        } catch (IOException e) {
          logError(METHOD_NAME, e);
          throw new PlutoAdminException(e);
        }
      }
    }
  }
View Full Code Here

Examples of org.apache.pluto.portlet.admin.PlutoAdminException

        InputStream ins = new FileInputStream(portletXml);
           PortletConfigService pcsvc = new PortletConfigService(ins);
           plist = pcsvc.getPortletDDList();
      } catch (FileNotFoundException e) {
        logError(METHOD_NAME, e);
        throw new PlutoAdminException(e);
      }
       String newWebXml = svc.addRecordsToWebXml(context, contents,
           PRIOR_ELEMENTS_SERVLET, plist);
       contents = newWebXml;
       newWebXml = svc.addRecordsToWebXml(context, contents,
View Full Code Here

Examples of org.apache.pluto.portlet.admin.PlutoAdminException

            marshaller.setMapping(mappingWebXml);
            marshaller.marshal(webApp);
            } catch (Exception e) {
                writer.close();
                e.printStackTrace(System.out);
                throw new PlutoAdminException("Error found in Deploy.prepareWebArchive()", e);
            }
            // REMOVED copy of  tld b/c it's now included in the container distribution.
            //String strTo = dirDelim + "WEB-INF" + dirDelim + "tld" + dirDelim + "portlet.tld";
            //String strFrom = plutoHome + "portal" + dirDelim + "src" +
            //    dirDelim + "webapp" + strTo;

            //copy(strFrom, webAppsDir + webModule + strTo);
        } catch (Exception e) {

            e.printStackTrace(System.out);
            throw new PlutoAdminException("Error found in Deploy.prepareWebArchive()", e);
        }

        System.out.println("finished!");
    }
View Full Code Here

Examples of org.apache.pluto.portlet.admin.PlutoAdminException

//            prepareWebArchive(webAppsDir, warFile);
        } catch (PlutoAdminException e) {
            throw e;
        } catch (Exception e) {
            e.printStackTrace(System.out);
            throw new PlutoAdminException("Error found in Deploy.main()", e);
        }

    }
View Full Code Here

Examples of org.apache.pluto.portlet.admin.PlutoAdminException

            ras.writeBytes("</portlet-entity-registry>\r\n");
            ras.close();

        } catch (Exception e) {
            e.printStackTrace(System.out);
            throw new PlutoAdminException("Error found in Deploy.addToEntityReg()", e);
        }
    }
View Full Code Here

Examples of org.apache.pluto.portlet.admin.PlutoAdminException

      Collection apps = null;
    try {
      apps = getApplications();
    } catch (Exception e) {
      logError(METHOD_NAME, e);
      throw new PlutoAdminException(e);
    }
    Iterator iter = apps.iterator();
      while (iter.hasNext()) {
        PortletApplicationEntityImpl app = (PortletApplicationEntityImpl) iter.next();
        if (app.getDefinitionId().equalsIgnoreCase(appContext)) {
View Full Code Here

Examples of org.apache.pluto.portlet.admin.PlutoAdminException

    PortalImpl portal;
    try {
      org.apache.pluto.portlet.admin.model.PageRegistryXao xao = new org.apache.pluto.portlet.admin.model.PageRegistryXao();
      portal = xao.load();
    } catch (Exception e) {
      PlutoAdminException pae = new PlutoAdminException(e);
      logError(CLASS_NAME, METHOD_NAME, e);
      throw pae;
    }
    Collection prpages = portal.getFragments();
    Iterator iter = prpages.iterator();
View Full Code Here

Examples of org.apache.pluto.portlet.admin.PlutoAdminException

      try {
        PortalImpl portal = load();
        frags = portal.getFragments();
      } catch (Exception e) {
        logError(METHOD_NAME, e);
        throw new PlutoAdminException(e);
      }
      Iterator iter = frags.iterator();
      while (iter.hasNext()) {
        FragmentImpl frag = (FragmentImpl) iter.next();
        String type = null;
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.