Package org.fcrepo.utilities.install

Examples of org.fcrepo.utilities.install.InstallationFailedException


                            .selectSingleNode(HTTP_CONNECTOR_XPATH);
            if (httpConnector != null) {
                httpConnector.addAttribute("redirectPort", options
                        .getValue(InstallOptions.TOMCAT_SSL_PORT));
            } else {
                throw new InstallationFailedException("Unable to set server.xml SSL Port. XPath for Connector element failed.");
            }
        } else if (httpsConnector != null) {
            httpsConnector.getParent().remove(httpsConnector);
        }
    }
View Full Code Here


    @Override
    public void deploy(File war) throws InstallationFailedException {
        System.out.println("Deploying " + war.getName() + "...");
        File dest = new File(webapps, war.getName());
        if (!FileUtils.copy(war, dest)) {
            throw new InstallationFailedException("Deploy failed: unable to copy "
                    + war.getAbsolutePath() + " to " + dest.getAbsolutePath());
        }
    }
View Full Code Here

                    new FileOutputStream(new File(contextDir, name));

            out.write(content.getBytes());
            out.close();
        } catch (Exception e) {
            throw new InstallationFailedException(e.getMessage(), e);
        }

    }
View Full Code Here

TOP

Related Classes of org.fcrepo.utilities.install.InstallationFailedException

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.