Calling FacesContext.getCurrentInstance() returns null from my own ServletContextListener.contextInitialized(), even though I've written the web.xml like so
There won't be any facescontext during startup, it's associated with a particular request so since there's no request during startup it'll be null. Eric what are you trying to do in this listener, I'm sure there's another way to achieve this without touching FacesContext. Cagatay

