Uploaded image for project: 'JBoss Metadata'
  1. JBoss Metadata
  2. JBMETA-386

Deployment fails when jboss-web.xml contains <enable-websockets>true</enable-websockets>

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 10.0.0.Beta2
    • 8.1.1.Final
    • web
    • None

      When deploying application with WebSockets used in EAP 6 to EAP 7, deployment will fail due EAP7 not supporting [1] in jboss-web.xml. The <enable-websockets> element is required in EAP 6 to enable the WebSockets functionality in JBoss Web.

      This element should be also allowed in EAP 7 in order to simplify migration from EAP 6. Functionality of {{ <enable-websockets>true</enable-websockets>}} can be ignored as in EAP 7 and in Undertow there is no need to enable WebSockets explicitly.

      [1]

      <jboss-web version="7.2"
         xmlns="http://www.jboss.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee schema/jboss-web_7_2.xsd">
          <enable-websockets>true</enable-websockets>
      </jboss-web>
      
      

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              rhatlapa@redhat.com Radim Hatlapatka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: