-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
7.0.2.Final, 7.1.0.Final, 7.1.1.Final
Jboss 7.0.2, 7.1 (standalone) does not call ServletContextListener .contextDestroyed(ServletContextEvent event) on shutdown. Shutdown was performed with Ctrl^C and also with command
jboss-admin.bat --connect command=:shutdown
I had the same result - jboss does not call destroying.
This listener was successfully initialized on startup with ServletContextListener.contextInitialized(ServletContextEvent event).
This listener is registered in web.xml in standart way:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
....
<listener>
<listener-class>Full_classname_of_listener</listener-class>
</listener>
</web-app>