Hi Paul

Good point as Karaf 4.4.x now uses Pax Web 8.x with the new commands,
the README.md has to be updated. I'm fixing that.

Thanks,
Regards
JB

On Mon, Dec 19, 2022 at 4:53 PM Paul Spencer <[email protected]> wrote:
>
> The Websocket example README.md references the command "http:list' which has 
> been replaced by "web:serverlet-list.
>
>
> ***
> * Documentation with the incorrect command
> ***
> 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/*]
>
> ***
> * Correct 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()>
>
> I opened the following Jira  https://issues.apache.org/jira/browse/KARAF-7626
>
> Paul Spencer

Reply via email to