//server.addLifecycleListener(new SecurityListener());
//server.addLifecycleListener(new AprLifecycleListener());
LifecycleListener jasperListener = new JasperListener();
server.addLifecycleListener(jasperListener);
jasperListener.lifecycleEvent(new LifecycleEvent(server, Lifecycle.BEFORE_INIT_EVENT, null));
server.addLifecycleListener(new JreMemoryLeakPreventionListener());
//server.addLifecycleListener(new GlobalResourcesLifecycleListener());
server.addLifecycleListener(new ThreadLocalLeakPreventionListener());
}