Package com.sun.enterprise.admin.servermgmt

Examples of com.sun.enterprise.admin.servermgmt.DomainException


        {
            FileUtils.copy(src, dest);
        }
        catch (IOException ioe)
        {
            throw new DomainException(
                strMgr.getString("loginConfNotCreated"), ioe);
        }
    }   
View Full Code Here


        {
            FileUtils.copy(src, dest);
        }
        catch (IOException ioe)
        {
            throw new DomainException(
                strMgr.getString("wssserverconfignotcreated"), ioe);
        }

    }
View Full Code Here

        {
            FileUtils.copy(src, dest);
        }
        catch (IOException ioe)
        {
            throw new DomainException(
                strMgr.getString("wssserverconfignotcreated"), ioe);
        }

    }
View Full Code Here

    {                                     
        try {
            //Ensure that the entity is stopped
            final int status = getInstancesManager(config).getInstanceStatus();
            if (status != Status.kInstanceNotRunningCode) {
                throw new DomainException(
                    strMgr.getString("cannotChangePassword_invalidState",
                        config.getDisplayName(), Status.getStatusString(status)));
            }
       
            String oldPass = getMasterPasswordClear(config);
            String newPass = getNewMasterPasswordClear(config);                       
           
            //Change the password of the keystore alias file
            changePasswordAliasKeystorePassword(config, oldPass, newPass);
           
            //Change the password of the keystore and truststore
            changeSSLCertificateDatabasePassword(config, oldPass, newPass);

            //Change the password in the masterpassword file or delete the file if it is
            //not to be saved.
            changeMasterPasswordInMasterPasswordFile(config, newPass, saveMasterPassword(config));
        } catch (Exception ex) {
            throw new DomainException(
                strMgr.getString("masterPasswordNotChanged"), ex);
        }
    }
View Full Code Here

            if(timeout > 0)
                stopped = domainMgr.stopInstanceWithinTime(timeout);
           
            if (!stopped) domainMgr.killRelatedProcesses();
        } catch (Exception e) {
            throw new DomainException(e);
        }       
    }
View Full Code Here

        try{
            ZipFile file = new ZipFile(FileUtils.safeGetCanonicalPath(jarFile),
                                        FileUtils.safeGetCanonicalPath(domainDir));
            file.explode();
        }catch(ZipFileException e){
            throw new DomainException( strMgr.getString("samplesDomainNotCreated") ,e );
        }
    }
View Full Code Here

        try {
            //Validate that the domain contains no node agents
            ConfigContext configContext = getConfigContext(domainConfig);
            NodeAgent[] agents = NodeAgentHelper.getNodeAgentsInDomain(configContext);
            if (agents.length > 0) {
                throw new DomainException(_strMgr.getString("nodeAgentsExist"));
            }
        } catch (DomainException ex) {
            throw ex;
        } catch (Exception ex) {
            throw new DomainException(ex);
        }
        super.deleteDomain(domainConfig);
    }
View Full Code Here

        } catch (DomainException de) {
            FileUtils.liquidate(getDomainDir(domainConfig));
            throw de;
        } catch (Exception ex) {
            FileUtils.liquidate(getDomainDir(domainConfig));
            throw new DomainException(ex);
        }
    }
View Full Code Here

                    pwdFile.delete();
                } catch (Exception ex2) {
                    //ignore we are cleaning up on error
                }
            }
            throw new DomainException(_strMgr.getString("tempFileNotCreated", pwdFile),
                ex);
        } finally {
            //ensure that we close the file no matter what.
            if (writer != null) {
                try {
View Full Code Here

                    noiseFile.delete();
                } catch (Exception ex2) {
                    //ignore we are cleaning up on error
                }
            }
            throw new DomainException(_strMgr.getString("tempFileNotCreated", noiseFile),
                ex);
        } finally {
            //ensure that we close the file no matter what.
            if (writer != null) {
                try {
View Full Code Here

TOP

Related Classes of com.sun.enterprise.admin.servermgmt.DomainException

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.