Removed some debug; added in calls to WeldInitialListener.contextInitialized() and contextDestroyed() to mimic action of org.jboss.weld.environment.servlet.Listener.