@Override public void init(ServletConfig sc) throws ServletException { super.init(sc); WebApplicationContext context = WebApplicationContextUtils.getRequiredWebApplicationContext(sc.getServletContext()); driverBean = sc.getInitParameter("driverBean"); if (driverBean == null) { throw new ServletException("No driver found, please set the driverBean property"); } logger.info("Loading driver " + driverBean); driver = (AjxpDriver) context.getBean(driverBean); // overrideBeanProperties(sc); }