I am using an @Resource annotation in a class instantiated in a ServletContextListener's contextInitialized(...) method, but the member is always null. Here's my sample code.
Listener:
public void contextInitialized(ServletContextEvent sce) {
System.err.println("In ...