Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-7626

Websocket example references the command http:list instead of web:servlet-list

    XMLWordPrintableJSON

Details

    • Documentation
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.4.1, 4.4.2
    • 4.4.3
    • karaf
    • None

    Description

      The Websocket example README.md references the command "http:list' which has been replaced by "web:serverlet-list

      Below is the from the readme https://github.com/apache/karaf/blob/karaf-4.4.2/examples/karaf-websocket-example/README.md

      You can see the websocket registered in the HTTP service:
      
      karaf@root()> http:list
      ID │ Servlet                 │ Servlet-Name   │ State       │ Alias              │ Url
      ───┼─────────────────────────┼────────────────┼─────────────┼────────────────────┼───────────────────────
      92 │ WebsocketExampleServlet │ ServletModel-2 │ Deployed    │ /example-websocket │ [/example-websocket/*]
      

      Below is output form the web:servlet-list  command

      karaf@root()> web:servlet-list 
      Bundle ID │ Name                                                        │ Class                                                       │ Context Path(s) │ URLs                 │ Type        │ Context Filter
      ──────────┼─────────────────────────────────────────────────────────────┼─────────────────────────────────────────────────────────────┼─────────────────┼──────────────────────┼─────────────┼───────────────
      88        │ org.apache.karaf.examples.websocket.WebsocketExampleServlet │ org.apache.karaf.examples.websocket.WebsocketExampleServlet │ /               │ /example-websocket/* │ HttpService │ -
      karaf@root()>
      

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            paulsp Paul Spencer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: