Thanks, that worked, however when I implement an interafce thus:
public class LoadAtStartup implements ServletContextListener {
I get the errors:
LoadAtStartup.java:9: cannot resolve symbol
symbol : class ServletContextListener
location: class LoadAtStartup
public class LoadAtStartup implements ServletContextListener {
^
LoadAtStartup.java:11: cannot resolve symbol
symbol : class ServletContextEvent
location: class LoadAtStartup
public void contextInitialized(ServletContextEvent sce) { }
^
LoadAtStartup.java:13: cannot resolve symbol
symbol : class ServletContextEvent
location: class LoadAtStartup
public void contextDestroyed(ServletContextEvent sce) { }
^
3 errors
Not too intuitive. Servlet below:
LoadAtStartup servlet:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class LoadAtStartup implements ServletContextListener {
public void contextInitialized(ServletContextEvent sce) { }
public void contextDestroyed(ServletContextEvent sce) { }
}
What is the problem here? I am using JVM 1.4.1_01. It looks like it has a
problem with the ServletContextListener interface?
thanks
Paul