Package com.sun.enterprise.admin.common.exception

Examples of com.sun.enterprise.admin.common.exception.ServerInstanceException


  }

  // get j2ee module type
  ModuleType moduleType = j2eeModule.getModuleType();
  if (moduleType == null) {
    throw new ServerInstanceException(
    localStrings.getString("admin.mbeans.acmb.invalidModuleType"));
  }
        sLogger.log(Level.FINE, "getDeploymentDescriptorLocations - moduleType" + moduleType);

  // get dd location
  String ddLocation = j2eeModule.getDeploymentDescriptorsLocation();
  if (ddLocation == null) {
    throw new ServerInstanceException(
    localStrings.getString("admin.mbeans.acmb.invalidDeplDescrLoc"));
  }
        sLogger.log(Level.FINE, "getDeploymentDescriptorLocations - ddLocation" + ddLocation);

  // get the list of descriptor locations for the above j2ee module type
View Full Code Here


  throws ServerInstanceException {

  if ((standaloneModuleName == null) ||
            (standaloneModuleName.length() < 1)) {
    sLogger.log(Level.WARNING, getLogMsg("invalid standAloneModuleName"));
    throw new ServerInstanceException ( localStrings.getString(
      "admin.mbeans.J2EEModule.invalidStandaloneModuleName"));
  }
  this.standaloneModuleName = standaloneModuleName;
    }
View Full Code Here

  if ((subModuleName == null) ||
            (subModuleName.length() < 1)) {
    sLogger.log(Level.WARNING,
      getLogMsg("invalid sub module for the given stand-alone module"));
    throw new ServerInstanceException (localStrings.getString(
      "admin.mbeans.J2EEModule.invalidSubModuleName"));
  }
  this.subModuleName = subModuleName;
    }
View Full Code Here

      return XModuleType.getModuleType(extnModules[i].getModuleType());
                    }
                }              
            }
        } catch (Exception e) {
                throw new ServerInstanceException(e.getLocalizedMessage());
        }
        return moduleType;
    }
View Full Code Here

      break;
                }
            }

        } catch (Exception e) {
            throw new ServerInstanceException(e.getLocalizedMessage());
        }

        return moduleType;

    }
View Full Code Here

      try {
            return FileUtils.getFileContents(fileName);
        } catch (FileNotFoundException fnfe) {
            sLogger.log(Level.WARNING, getLogMsg(
      "getStringForDDxml FileNotFoundException " + fileName));
        throw new ServerInstanceException(fnfe.getLocalizedMessage());
        } catch (IOException ioe) {
            sLogger.log(Level.WARNING, getLogMsg(
      "getStringForDDxml IOException " + fileName));
        throw new ServerInstanceException(ioe.getLocalizedMessage());
        }
    }
View Full Code Here

            /* New for 8.0 - temporary - gen server.xml b4 notif */
        } catch (ConfigException ce) {
            _logger.log(Level.INFO, "mbean.config.admin.apply_failed",
                    ce.getLocalizedMessage());
            _logger.log(Level.FINEST, ce.getMessage(), ce);
            throw new ServerInstanceException(ce.getLocalizedMessage());
        }
        return mRestartNeeded;
    }
View Full Code Here

            mRestartNeeded = true;
        } catch (ConfigException ce) {
            _logger.log(Level.INFO, "mbean.config.admin.usemanual_failed",
                    ce.getMessage());
            _logger.log(Level.FINEST, ce.getMessage(), ce);
            throw new ServerInstanceException(ce.getLocalizedMessage());
        }
        return mRestartNeeded;
    }
View Full Code Here

            applyNeeded = ctx.isChanged();
        } catch (ConfigException ce) {
            _logger.log(Level.INFO, "mbean.config.admin.applyneeded_failed",
                    ce.getMessage());
            _logger.log(Level.FINEST, ce.getMessage(), ce);
            throw new ServerInstanceException(ce.getLocalizedMessage());
        }
        return applyNeeded;
    }
View Full Code Here

        catch (PortInUseException piue)
        {
        }
        catch (Exception e)
        {
            throw new ServerInstanceException(e.getLocalizedMessage());
        }
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.admin.common.exception.ServerInstanceException

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.