Package org.apache.tomcat.core

Examples of org.apache.tomcat.core.TomcatException


                else
                    IntrospectionUtils.setAttribute( proto, k, o );
            }
      proto.init();
        } catch( Exception ex ) {
            throw new TomcatException( "Error setting protocol properties ", ex );
        }
    }
View Full Code Here


    public void engineStart(ContextManager cm) throws TomcatException {
  try {
            proto.start();
  } catch( Exception ex ) {
            ex.printStackTrace();
      throw new TomcatException( ex );
  }
    }
View Full Code Here

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

    private void restartContext( ContextManager cm, Context ctx,HttpServletRequest req )
    throws TomcatException {
  Request request = (Request)
      req.getAttribute( Request.ATTRIB_REAL_REQUEST);
  if( request == null ) {
      throw new TomcatException("Untrusted Web-App");
  }
  synchronized(ctx) {
      if(ctx.getState() == Context.STATE_NEW)
    return ; // Already reloaded.
      Vector sI=new Vector()// saved local interceptors
View Full Code Here

  }
  try {
      // notify the jni side that jni is set up corectly
      ep.setConnectionHandler(this);
  } catch( Exception ex ) {
      throw new TomcatException( ex );
  }
    }
View Full Code Here

  try {
      // notify the jni side that the jni handler is no longer
      // in use ( we shut down )
      ep.setConnectionHandler(null);
  } catch( Exception ex ) {
      throw new TomcatException( ex );
  }
    }
View Full Code Here

      File f2=new File( f1, "bin" + File.separator + "native" );
      libF=new File( f2, lib );
  }

  if( ! libF.exists() ) {
      throw new TomcatException( "Native library doesn't exist " + libF );
  }

        // Loading from the library path failed
        // Try to load assuming lib is a complete pathname.
        try {
View Full Code Here

  try {
      xh.readXml(f,cm);
  } catch( Exception ex ) {
      ex.printStackTrace();
      //      cm.log( sm.getString("tomcat.fatalconfigerror"), ex );
      throw new TomcatException(ex);
  }
    }
View Full Code Here

    public int addModule( String className )
  throws TomcatException
    {
  BaseInterceptor bi=createModule( className );
  if( bi==null )
      throw new TomcatException("module not found " + className);
  return addModule( bi );
    }
View Full Code Here

  } catch( Throwable ex ) {
      if( ex instanceof InvocationTargetException ) {
    ex=((InvocationTargetException)ex).getTargetException();
      }
      debug("exception initializing ContextManager", ex);
      throw new TomcatException( "EmbededTomcat.initContextManager", ex );
  }
  if(dL>0) debug( "ContextManager initialized" );
  initialized=true;
    }
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.