[
https://issues.jboss.org/browse/AS7-5645?page=com.atlassian.jira.plugin.s...
]
Alexey Alexey updated AS7-5645:
-------------------------------
Steps to Reproduce:
1. Create simple web application.
2. Implement ServletContextListener interface.
3. Register it in web.xml in standart way:
<listener>
<listener-class>Full_classname_of_listener</listener-class>
</listener>
4. After succesful start of jboss perform it shutdown with Ctrl^C or with command line:
jboss-admin.bat --connect command=:shutdown
was:
1. Create simple web application.
2. Implement ServletContextListener interface.
3. Register it in web.xml in standart way:
<listener>
<listener-class>Full_class_name_of_listener</listener-class>
</listener>
4. After succesful start of jboss perform it shutdown with Ctrl^C or with command line:
jboss-admin.bat --connect command=:shutdown
Jboss 7.0.2, 7.1 does not call
ServletContextListener.contextDestroyed(ServletContextEvent event) on shutdown.
--------------------------------------------------------------------------------------------------------------
Key: AS7-5645
URL:
https://issues.jboss.org/browse/AS7-5645
Project: Application Server 7
Issue Type: Bug
Components: Server
Affects Versions: 7.0.2.Final, 7.1.0.Final
Environment: Windows 7 64 bit
Reporter: Alexey Alexey
Assignee: Jason Greene
Labels: ServletContext, Servlet_Context
Jboss 7.0.2, 7.1 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>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira