Package org.apache.tomcat.core

Examples of org.apache.tomcat.core.TomcatException


  checkSocketFactory();

  try {
      localInit();
  } catch( Exception ex ) {
      throw new TomcatException( ex );
  }
    }
View Full Code Here


    }
      }
      ep.startEndpoint();
      log( "Starting on " + ep.getPort() );
  } catch( Exception ex ) {
      throw new TomcatException( ex );
  }
    }
View Full Code Here

    public void engineShutdown(ContextManager cm) throws TomcatException {
  try {
      ep.stopEndpoint();
  } catch( Exception ex ) {
      throw new TomcatException( ex );
  }
    }
View Full Code Here

         (sslImplementationName);
                socketFactory =
                        sslImplementation.getServerSocketFactory();
    ep.setServerSocketFactory(socketFactory);
       } catch (ClassNotFoundException e){
     throw new TomcatException("Error loading SSLImplementation ",
             e);
        }
    }
   else {
       if (socketFactoryName != null) {
     try {
         socketFactory = string2SocketFactory(socketFactoryName);
         ep.setServerSocketFactory(socketFactory);
     } catch(Exception sfex) {
         throw new TomcatException("Error Loading Socket Factory " +
                 socketFactoryName,
                 sfex);
     }
      }
  }
View Full Code Here

      task.setHome( (String)attributes.get("home") );
      task.processArgs( (String[])attributes.get("args"));
      task.execute();    
  } catch (Exception te) {
      te.printStackTrace();
      throw new TomcatException( te );
  }
    }
View Full Code Here

      StopTomcat task= new  StopTomcat();
      task.setHome( (String)attributes.get("home") );
      task.processArgs( (String[])attributes.get("args"));
      task.execute();    
  } catch (Exception te) {
      throw new TomcatException( te );
  }
    }
View Full Code Here

      EmbededTomcat task= new  EmbededTomcat();
      task.setHome( (String)attributes.get("home") );
      task.processArgs( (String[])attributes.get("args"));
      task.execute();    
  } catch (Exception te) {
      throw new TomcatException( te );
  }
    }
View Full Code Here

  if( ! workersConfig.exists() ) {
      log( "Can't find workers.properties at " + workersConfig );
      log( "Please install it in the default location or " +
     " set the config location" );
      log( "Using <ApacheConfig workersConfig=\"FULL_PATH\" />" );
      throw new TomcatException( "workers.properties not found ");
  }
           
  mod_jk.println("JkWorkersFile \""
           + workersConfig.toString().replace('\\', '/')
           + "\"");
View Full Code Here

      log( "Can't find profile " + ctxProfile );
      p=(Profile)profiles.get("default");
  }

 
  if( p==null ) throw new TomcatException( "Can't load profile");

  URL[] cp=p.commonClassPath;
  for (int i=0; i<cp.length; i++ ) {
      ctx.addClassPath( cp[i]);
  }
View Full Code Here

  if( f.exists() ){
      try {
    xh.readXml(f, this );
      } catch( Exception ex ) {
    ex.printStackTrace();
    throw new TomcatException(ex);
      }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.tomcat.core.TomcatException

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.