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

Websockets does not work with jakarta.* namespace (Jakarta EE 8)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Critical
    • No Release
    • 23.0.2.Final
    • Web Sockets
    • None
    • Hide
      • Build the project from [1]
      • Deploy the application on Widlfly 23.0.2 (copy the WAR from target to standalone/deployments)
      • Go to index.html and the application will throw 404 for the websocket URL
      • Back to your project, modify pom.xml to use the javax dependency, then in the HelloName class, comment the jakarta packages and use the javax ones
      • Build the project and redeploy the WAR
      • Access index.html and the websocket will work

       

       [1]https://github.com/jesuino/reproducers/tree/master/jakarta-websocket-hello

      Show
      Build the project from [1] Deploy the application on Widlfly 23.0.2 (copy the WAR from target to standalone/deployments) Go to index.html and the application will throw 404 for the websocket URL Back to your project, modify pom.xml to use the javax dependency, then in the HelloName class, comment the jakarta packages and use the javax ones Build the project and redeploy the WAR Access index.html and the websocket will work     [1] https://github.com/jesuino/reproducers/tree/master/jakarta-websocket-hello
    • Workaround Exists
    • Hide

      Use javax instead jakarta.

      Show
      Use javax instead jakarta.
    • Undefined

    Description

      The WebSocket quickstart  [1]uses javax.* namespace. it does not work when using jakarta.* namespace.

       

      Sample project can be found in [2].

      [1] https://github.com/wildfly/quickstart/tree/23.x/websocket-hello

      [2] https://github.com/jesuino/reproducers/tree/master/jakarta-websocket-hello

      Attachments

        Activity

          People

            rhn-cservice-bbaranow Bartosz Baranowski
            rhn-support-wsiqueir William Siqueira
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: