public void initializeServlets ( ) throws Exception { MultiException mx = new MultiException ( ) ; // Sort and Initialize servlets ServletHolder [ ] holders = getServlets ( ) ; for ( int i = 0 ; i < holders . length ; i ++ ) { try { holders [ i ] . start ( ) ; } catch ( Exception e ) { log . debug ( LogSupport . EXCEPTION , e ) ; mx . add ( e ) ; } } mx . ifExceptionThrow ( ) ; }
Initialize load - on - startup servlets . Called automatically from start if autoInitializeServlet is true .