diff --git a/.classpath b/.classpath
index beb601a..c57e3b4 100644
--- a/.classpath
+++ b/.classpath
@@ -8,5 +8,6 @@
+
diff --git a/lib/servlet-api.jar b/lib/servlet-api.jar
new file mode 100644
index 0000000..26f1a50
Binary files /dev/null and b/lib/servlet-api.jar differ
diff --git a/src/com/idcanet/foei/server/startup/FoeiStartupListener.java b/src/com/idcanet/foei/server/startup/FoeiStartupListener.java
index 93bc4f5..0272d02 100644
--- a/src/com/idcanet/foei/server/startup/FoeiStartupListener.java
+++ b/src/com/idcanet/foei/server/startup/FoeiStartupListener.java
@@ -27,7 +27,6 @@
package com.idcanet.foei.server.startup;
import com.idcanet.foei.core.FoeiConfigurator;
-import com.idcanet.foei.core.FoeiContext;
import com.idcanet.foei.server.FoeiContextManager;
import com.idcanet.foei.server.FoeiContextManagerFactory;
@@ -36,8 +35,8 @@ import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;
-//import javax.servlet.ServletContextEvent;
-//import javax.servlet.ServletContextListener;
+import javax.servlet.ServletContextEvent;
+import javax.servlet.ServletContextListener;
/**
* Helps to startup Foei in a J2EE context.
@@ -47,7 +46,7 @@ import java.util.logging.Logger;
* @author Willem Cazander
* @version 1.0 Jan 20, 2006
*/
-public class FoeiStartupListener { //implements ServletContextListener {
+public class FoeiStartupListener implements ServletContextListener {
/** The logger to log to. */
private Logger logger = null;
@@ -57,7 +56,7 @@ public class FoeiStartupListener { //implements ServletContextListener {
/**
* Starts Foei
- *//*
+ */
public void contextInitialized(ServletContextEvent event) {
logger = Logger.getLogger(FoeiStartupListener.class.getName());
@@ -90,12 +89,12 @@ public class FoeiStartupListener { //implements ServletContextListener {
logger.log(Level.WARNING,"Error while starting FoeiContext: "+e.getMessage(),e);
}
}
- }*/
+ }
/**
* Stop Foei
*/
- public void contextDestroyed() { //(ServletContextEvent event) {
+ public void contextDestroyed(ServletContextEvent event) {
logger.info("Stopping Foei Contexts");
try {
FoeiContextManagerFactory.getFoeiContextManager().destroyAll();