Package com.caucho.config

Examples of com.caucho.config.ConfigException


      }
    }

    if (_watchdog.getUserName() != null) {
      if (_watchdog.isConsole())
        throw new ConfigException(L.l("<user-name> requires compiled JNI started with 'start'.  Resin cannot use <user-name> when started as a console process."));
      else
        throw new ConfigException(L.l("<user-name> requires compiled JNI."));
    }

    if (_watchdog.getGroupName() != null) {
      if (_watchdog.isConsole())
        throw new ConfigException(L.l("<group-name> compiled JNI started with 'start'.  Resin cannot use <group-name> when started as a console process."));
      else
        throw new ConfigException(L.l("<group-name> compiled JNI."));
    }

    ProcessBuilder builder = new ProcessBuilder();

    builder.directory(new File(processPwd.getNativePath()));
View Full Code Here


  @PostConstruct
  public void init()
  {
    if (_regexp == null)
      throw new ConfigException(L.l("'regexp' is a required attribute for {0}",
                                    getClass().getSimpleName()));
  }
View Full Code Here

  protected void configure(ServletConfigImpl servletConfig)
  {
    try {
      if (_servletClass == null)
        throw new ConfigException(L.l("servlet-class is required for ServletEmbed."));
     
      servletConfig.setServletClass(_servletClass);

      if (_servletName != null)
        servletConfig.setServletName(_servletName);
View Full Code Here

   */
  @Configurable
  public void add(RequestPredicate predicate)
  {
    if (_predicate != null)
      throw new ConfigException(L.l("&lt;resin:Not> requires a single value"));
     
    _predicate = predicate;
  }
View Full Code Here

  @PostConstruct
  public void init()
  {
    if (_predicate == null)
      throw new ConfigException(L.l("&lt;resin:Not> requires a value"));
  }
View Full Code Here

  @PostConstruct
  @SuppressWarnings("unused")
  private void init()
  {
    if (_name == null)
      throw new ConfigException(L.l("resin:IfMBeanEnabled requires a 'name' attribute."));
   
    _admin = new Admin();
    _admin.register();
  }
View Full Code Here

                        WatchdogClient client,
                        WebAppDeployClient deployClient)
  {
    String sourceContext = args.getArg("-source");
    if (sourceContext == null)
      throw new ConfigException("must specify -source attribute");


    String sourceHost = args.getArg("-source-host");
   
    if (sourceHost == null)
View Full Code Here

  @PostConstruct
  public void init()
  {
    if (_enableAt == null)
      throw new ConfigException(L.l("{0} requires 'enable-at' attribute",
                                    getClass().getSimpleName()));
   
    if (_disableAt == null)
      throw new ConfigException(L.l("{0} requires 'disable-at' attribute",
                                    getClass().getSimpleName()));
  }
View Full Code Here

    else if (HttpServletRequest.DIGEST_AUTH.equalsIgnoreCase(authType))
      _authType = HttpServletRequest.DIGEST_AUTH;
    else if (HttpServletRequest.FORM_AUTH.equalsIgnoreCase(authType))
      _authType = HttpServletRequest.FORM_AUTH;
    else
      throw new ConfigException(L.l("auth-type expects a 'value' of BASIC, CLIENT-CERT, DIGEST, FORM, or NONE"));
  }
View Full Code Here

  @PostConstruct
  public void init()
  {
    if (_name == null)
      throw new ConfigException(L.l("'name' is a required attribute for {0}",
                                    getClass().getSimpleName()));
  }
View Full Code Here

TOP

Related Classes of com.caucho.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.