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

Web application bundles will continue to service requests even when stopped

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.Final, 7.1.1.Final, 7.1.2.Final (EAP)
    • OSGi
    • None
    • Hide

      1. Enable OSGI framework support in usual way
      2. Enable PAX web and OSGI console support
      <capability name="org.apache.felix:org.apache.felix.webconsole:3.1.8" startlevel="1"/>
      <capability name="org.ops4j.pax.web:pax-web-jetty-bundle:1.1.2" startlevel="2"/>
      <capability name="org.ops4j.pax.web:pax-web-jsp:1.1.2" startlevel="2"/>
      <capability name="org.ops4j.pax.web:pax-web-extender-war:1.1.2" startlevel="2"/>

      3. Copy attached JAR into standalone/deployments folder
      4. Access /hello url (servlet will output request method, uri, and query string)
      5. Access Felix console (localhost/system/console) and stop the bundle
      6. Again access /hello URL

      Expect: servlet not found
      Actual: servlet responds as normal

      Show
      1. Enable OSGI framework support in usual way 2. Enable PAX web and OSGI console support <capability name="org.apache.felix:org.apache.felix.webconsole:3.1.8" startlevel="1"/> <capability name="org.ops4j.pax.web:pax-web-jetty-bundle:1.1.2" startlevel="2"/> <capability name="org.ops4j.pax.web:pax-web-jsp:1.1.2" startlevel="2"/> <capability name="org.ops4j.pax.web:pax-web-extender-war:1.1.2" startlevel="2"/> 3. Copy attached JAR into standalone/deployments folder 4. Access /hello url (servlet will output request method, uri, and query string) 5. Access Felix console (localhost/system/console) and stop the bundle 6. Again access /hello URL Expect: servlet not found Actual: servlet responds as normal

      When a web application bundle is stopped, mapped servlets continue to respond to requests. Even when a bundle is uninstalled, it servlet mappings continue to function and serve requests.

            tdiesler@redhat.com Thomas Diesler
            bnevis_jira Bryon Nevis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: