Package org.w3c.jigsaw.daemon

Examples of org.w3c.jigsaw.daemon.ServerHandlerInitException


    {
  // Check for un-found root resource:
  if ( changeRoot(root_name) == null ) {
      String err = ("Unable to restore root resource ["+root_name+"]"
        +" from store (not found).");
      throw new ServerHandlerInitException(err);
  }
    }
View Full Code Here


      } catch (Exception ex) {
    String err = ("Unable to create logger of class ["+
            logger_class +"]"+
            "\r\ndetails: \r\n"+
            ex.getMessage());
    throw new ServerHandlerInitException(err);
      }
  } else {
      warning (getBanner() + ": no logger specified, not logging.");
  }
  // Initialize the statistics object:
View Full Code Here

      factory.initialize(this);
  } catch (Exception ex) {
      String err = ("Unable to create a client factory of class "+
        "\"" + factory_class + "\""+
        " details: \r\n" + ex.getMessage());
      throw new ServerHandlerInitException(err);
  }
  // If needed, create a server socket instance for that context:
  try {
      socket = factory.createServerSocket();
  } catch (IOException ex) {
      String err = ("Unable to create server socket on port "+port
        + ": " + ex.getMessage() + ".");
      throw new ServerHandlerInitException(err);
  }
  this.thread   = new Thread (this) ;
  this.thread.setName(identifier) ;
  this.thread.setPriority (Thread.MAX_PRIORITY) ;
    }
View Full Code Here

                 , client_priority);
  client_bufsize      = props.getInteger(CLIENT_BUFSIZE_P
                 , client_bufsize);
  // Check that a host name has been given:
  if ( host == null )
      throw new ServerHandlerInitException(this.getClass().getName()
             +"[initializeProperties]: "
             +"[host] undefined.");
  // Default the root directory to the current directory:
  if ( rootstr == null ) {
      // Try the current directory as root:
      rootstr = System.getProperties().getProperty("user.dir", null) ;
      if ( rootstr == null )
    throw new ServerHandlerInitException(this.getClass().getName()
                 +"[initializeProperties]:"
                 +"[root] undefined.");
  }
  root_dir = new File(rootstr) ;
  // Default the space directory to root/WWW
View Full Code Here

  this.props = props;
  // with an explicit cast for buggy compilers
  this.props.registerObserver((PropertyMonitoring)this) ;
  initializeProperties() ;
  if (! checkUpgrade(identifier, props))
      throw new ServerHandlerInitException("Upgrade failed.");
  // Create the socket, and run the server:
  initializeServerSocket();
    }
View Full Code Here

  // Clone this master server:
  httpd server      = null;
  try {
      server = (httpd) clone();
  } catch (CloneNotSupportedException ex) {
      throw new ServerHandlerInitException(this.getClass().getName()
             + ": clone not supported !");
  }
  server.shm = shm;
  // Nullify some of the cached instance variables:
  server.url = null;
View Full Code Here

TOP

Related Classes of org.w3c.jigsaw.daemon.ServerHandlerInitException

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.