Package com.sun.enterprise.config

Examples of com.sun.enterprise.config.ConfigException


            archivist.write(appDes, archive2, archive);

            // copy the additional webservice elements etc
            Archivist.copyExtraElements(archive2, archive);
        } catch (Throwable t) {
                        throw new ConfigException(
                Localizer.getValue(ExceptionType.FAIL_DD_SAVE, appId), t);
        }
    }
View Full Code Here


    private WebModule getWebModule(String modId) throws ConfigException {
        WebModule mod = (WebModule)
            ((Applications)this.configBean).getWebModuleByName(modId);
       
        if(mod == null)
            throw new ConfigException(Localizer.getValue(ExceptionType.NO_SUCH_WEB_MOD));
       
        return mod;
       
    }
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

    private EjbModule getEjbModule(String modId) throws ConfigException {
        EjbModule mod = (EjbModule)
            ((Applications)this.configBean).getEjbModuleByName(modId);
       
        if(mod == null)
            throw new ConfigException(Localizer.getValue(ExceptionType.NO_SUCH_EJB_MOD));
       
        return mod;
       
    }
View Full Code Here

           
            return application;
        } catch (ConfigException ce) {
            throw ce;
        } 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

    private ConnectorModule getConnectorModule(String modId) throws ConfigException {
        ConnectorModule mod = (ConnectorModule)
            ((Applications)this.configBean).getConnectorModuleByName(modId);
       
        if(mod == null)
            throw new ConfigException(Localizer.getValue(ExceptionType.NO_SUCH_CON_MOD));
       
        return mod;
       
    }
View Full Code Here

            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

          if (_logger == null){
        System.err.println("Exception in creating server context");
        ex.printStackTrace();
    }
      }
      throw new ConfigException(ex.getMessage());
        }

        PluggableFeatureFactory ff = PluggableFeatureFactoryImpl.getFactory();

        context.setPluggableFeatureFactory(ff);
View Full Code Here

           
            return getApplication(modId, descriptor);
         } catch (ConfigException ce) {
            throw ce;
        } catch (Throwable t) {
            throw new ConfigException(Localizer.getValue(
                        ExceptionType.FAIL_DD_LOAD, modId), t);
        }
    }
View Full Code Here

           
            return  descriptor;
        } catch (ConfigException ce) {
            throw ce;
        } catch (Throwable t) {
            throw new ConfigException(Localizer.getValue(
                        ExceptionType.FAIL_DD_LOAD, modId), t);
        }
    }
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.