ctx.setAttribute(SERVLET_CONTEXT_ATTRIBUTE, wac); if (LOG.isDebugEnabled()) { LOG.debug("Published WebApplicationContext of servlet '" + getServletName() + "' as ServletContext attribute with name [" + SERVLET_CONTEXT_ATTRIBUTE + "]");
try { SpringBeanProvider.setWebApplicationContext(getEngine(), wac); } catch (AxisFault e) { throw new ApplicationContextException("Could not save axis engine session object", e);
    protected WebApplicationContext initWebApplicationContext() throws BeansException {        log("Initializing WebApplicationContext for servlet '" + this.getServletName() + "'");        ServletContext ctx = getServletContext();        WebApplicationContext parent = WebApplicationContextUtils.getWebApplicationContext(ctx);        WebApplicationContext wac = createWebApplicationContext(parent);        if (LOG.isDebugEnabled()) {            LOG.debug("Using context class '"                    + wac.getClass().getName()                    + "' for servlet '"                    + getServletName()                    + "'");        }        // publish the context as a servlet context attribute        ctx.setAttribute(SERVLET_CONTEXT_ATTRIBUTE, wac);        if (LOG.isDebugEnabled()) {            LOG.debug("Published WebApplicationContext of servlet '"                    + getServletName()                    + "' as ServletContext attribute with name ["                    + SERVLET_CONTEXT_ATTRIBUTE                    + "]");        }        return wac;    }