Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-18869

max-active-sessions=-1 causes ISPN000424 error for distributable webapp

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 31.0.0.Final
    • 30.0.0.Final
    • Clustering
    • None
    • Hide

      Configure <max-active-sessions>-1</max-active-sessions> in WEB-INF/jboss-web.xml and <distributable/> in WEB-INF/web.xml.

      Show
      Configure <max-active-sessions>-1</max-active-sessions> in WEB-INF/jboss-web.xml and <distributable/> in WEB-INF/web.xml.
    • Release Notes, User Experience
    • Workaround Exists
    • Hide

      Remove the max-active-sessions tag or set it to a very large value instead of -1.

      Show
      Remove the max-active-sessions tag or set it to a very large value instead of -1.
    • ---
    • ---

      Setting <max-active-sessions>-1</max-active-sessions> in WEB-INF/jboss.web.xml causes an exception during deployment in EAP 7.3.0+ for <distributable/> applications:

      org.infinispan.commons.CacheConfigurationException: ISPN000424: Memory eviction is enabled, please specify a maximum size or count greater than zero

      -1 is a valid value as defined in the .xsd and should be treated as no limit, the same as if the tag was left out.

      In practice this is most commonly seen when using property substition to set the property differently in different environments, such as <max-active-sessions>${myprop:-1}</max-active-sessions>.

              pferraro@redhat.com Paul Ferraro
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: