Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-5645

Jboss 7.0.2, 7.1 does not call ServletContextListener.contextDestroyed(ServletContextEvent event) on shutdown.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 7.0.2.Final, 7.1.0.Final, 7.1.1.Final
    • Server
    • Hide

      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 (standalone) perform its shutdown with Ctrl^C or with command line:
      jboss-admin.bat --connect command=:shutdown

      Show
      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 (standalone) perform its shutdown with Ctrl^C or with command line: jboss-admin.bat --connect command=:shutdown

    Description

      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>

      Attachments

        Activity

          People

            jgreene@redhat.com Jason Greene
            night_rainbow Alexey Alexey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: