Package org.apache.tomcat

Examples of org.apache.tomcat.LifecycleException


     */
    public void start() throws LifecycleException {

  // Validate and update our current component state
  if (started)
      throw new LifecycleException
    (sm.getString("containerBase.alreadyStarted"));
  started = true;
  fireLifecycleEvent(START_EVENT, null);

  // Start our subordinate components, if any
View Full Code Here


     */
    public void stop() throws LifecycleException {

  // Validate and update our current component state
  if (!started)
      throw new LifecycleException
    (sm.getString("containerBase.notStarted"));
  started = false;
  fireLifecycleEvent(STOP_EVENT, null);

  // Stop the Valves in our pipeline (including the basic), if any
View Full Code Here

     */
    public void start() throws LifecycleException {

  // Validate and update our current component state
  if (started)
      throw new LifecycleException
    (sm.getString("accessLogValve.alreadyStarted"));
  started = true;

    }
View Full Code Here

     */
    public void stop() throws LifecycleException {

  // Validate and update our current component state
  if (!started)
      throw new LifecycleException
    (sm.getString("accessLogValve.notStarted"));
  started = false;

  close();

View Full Code Here

  if (loadOnStartup < 0)
      return;
        try {
      load();
  } catch (ServletException e) {
      throw new LifecycleException("start:  " + e);
  }

    }
View Full Code Here

     */
    public void start() throws LifecycleException {

  // Validate and update our current component state
  if (started)
      throw new LifecycleException
    (sm.getString("interceptorValve.alreadyStarted"));
  started = true;

  // Start our subordinate Interceptors
  synchronized (interceptors) {
View Full Code Here

     */
    public void stop() throws LifecycleException {

  // Validate and update our current state
  if (!started)
      throw new LifecycleException
    (sm.getString("interceptorValve.notStarted"));
  started = false;

  // Stop our subordinate Interceptors
  synchronized (interceptors) {
View Full Code Here

     */
    public void start() throws LifecycleException {

  // Validate and update our current component state
  if (started)
      throw new LifecycleException
    (sm.getString("standardResources.alreadyStarted"));
  started = true;

    }
View Full Code Here

     */
    public void stop() throws LifecycleException {

  // Validate and update our current state
  if (!started)
      throw new LifecycleException
    (sm.getString("standardResources.notStarted"));

    }
View Full Code Here

     */
    public void start() throws LifecycleException {

  // Validate and update our current state
  if (started)
      throw new LifecycleException
    (sm.getString("httpConnector.alreadyStarted"));
  started = true;

  // Establish a server socket on the specified port
  try {
      serverSocket = new ServerSocket(port, acceptCount);
  } catch (IOException e) {
      throw new LifecycleException("HttpConnector[" + port + "]", e);
  }

  // Start our background thread
  threadStart();

View Full Code Here

TOP

Related Classes of org.apache.tomcat.LifecycleException

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.