Package com.sun.enterprise.config

Examples of com.sun.enterprise.config.ConfigException


        AppclientModule app = (AppclientModule)
            ((Applications)this.configBean).getAppclientModuleByName(appId);

        if(app == null)
      throw new ConfigException(
                Localizer.getValue(ExceptionType.APP_NOT_EXIST));
        return app;
       
    }
View Full Code Here


            // If needed, save this app in serialized form for faster loading next time.
            sdLoader.store(application);
           
            return application;      
   } catch (IOException ioe) {
       throw new ConfigException(Localizer.getValue(
       ExceptionType.IO_ERROR_LOADING_DD, modId), ioe);
   } catch (Throwable t) {
       throw new ConfigException(Localizer.getValue(
       ExceptionType.FAIL_DD_LOAD, modId), t);
   }
     }  
View Full Code Here

            server = ServerBeansFactory.getServerBean(configContext);
        } else {
            // perhaps uninitialized?
            String msg = localStrings.getString(
                            "serverContext.config_context_is_null");
            throw new ConfigException(msg);
        }
        return this.server;
    }
View Full Code Here

                catch (ExecException ee) {
                    sLogger.log(Level.WARNING, "general.exec_cmd", ee);
                    throw new RuntimeException(Localizer.getValue(ExceptionType.SERVER_NO_START));
                }
    catch (Exception e) {
      throw new ConfigException(e.getMessage());
    }
  }
View Full Code Here

            sLogger.log(Level.FINE, "general.exec_cmd", stopCommand[0]);
      ProcessExecutor executor = new ProcessExecutor(stopCommand);
      executor.execute();
    }
    catch (Exception e) {
      throw new ConfigException(e.getMessage());
    }
  }
View Full Code Here

            sLogger.log(Level.FINE, "general.exec_cmd", restartCommand[0]);
      ProcessExecutor executor = new ProcessExecutor(restartCommand);
      executor.execute();
    }
    catch (Exception e) {
      throw new ConfigException(e.getMessage());
    }
  }
View Full Code Here

    }
                catch (ExecException ee) {
                        throw new RuntimeException(Localizer.getValue(ExceptionType.NO_RECEIVE_TOKENS));
                }
    catch (Exception e) {
      throw new ConfigException(e.getMessage());
    }
  }
View Full Code Here

           
            appConfig   = appConfigTemp;

        }
        catch(Exception e) {
      throw new ConfigException(Localizer.getValue(ExceptionType.MISSING_SERVER_NODE), e);
        }
    }
View Full Code Here

    }
    
    public void saveConfigContext() throws ConfigException {

        if(!this.useBackupServerXml) {
      throw new ConfigException(Localizer.getValue(ExceptionType.CANT_APPLY))
        }
     
        this.configContext.flush();
    }
View Full Code Here

        this.configContext.flush();
    }
   
    public void applyServerXmlChanges() throws ConfigException {
        if(!this.useBackupServerXml) {
      throw new ConfigException(Localizer.getValue(ExceptionType.CANT_APPLY))
        }
        this.configContext.flush();
        instanceEnvironment.applyServerXmlChanges(false);
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.config.ConfigException

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.