package com.commongroundpublishing.slf4j.impl;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

@WebServletContextListener
public class ServletContextLoggerSCL implements ServletContextListener {

    public void contextInitialized(ServletContextEvent sce) {
        ServletContextLogger.setServletContext(sce.getServletContext());
    }

    public void contextDestroyed(ServletContextEvent sce) {
        ServletContextLogger.setServletContext(null);
    }
}

package com.commongroundpublishing.slf4j.impl;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

@WebListener
public class ServletContextLoggerSCL implements ServletContextListener {

    public void contextInitialized(ServletContextEvent sce) {
        ServletContextLogger.setServletContext(sce.getServletContext());
    }

    public void contextDestroyed(ServletContextEvent sce) {
        ServletContextLogger.setServletContext(null);
    }
}

fix compilation