Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-5684

servlets are not properly loaded when load-at-startup is 0

XMLWordPrintable

      JBoss web does not properly load servlets when load-at-startup is set to 0.

      For example the following in the web.xml file will not load the servlet at deployment (setting load-on-startup to something higher than 0 will result in it being properly loaded).

      <servlet>
      <servlet-name>TestServlet0</servlet-name>
      <servlet-class>test.TestServlet0</servlet-class>
      <load-on-startup>0</load-on-startup>
      </servlet>

      According to the 2.5 servlet spec, this should be the case
      "If the value is a positive integer or 0, the container must load and initialize the servlet as the application is deployed"
      (http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd)

              emuckenhuber_jira Emanuel Muckenhuber (Inactive)
              mwringe Matt Wringe
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: