3

Just an initial step to run websocket application on IBM Liberty Profile 8.5.5.5. After did lots of research I found I needed to add a feature on the Liberty server.xml file.

<featureManager>
    <feature>websocket-1.0</feature>
     ....... 
</featureManager>

But as soon as I added that line on the configuration I'm getting a warning that

The feature 'websocket-1.0' is not recognized
server.xml /WebSphere Application Server V8.5 Liberty Profile/servers/defaultServer
line 5 Liberty Profile Configuration Problem

Any thought? Do I needed to add any Jar file for that?

pijushcse
  • 510
  • 9
  • 31

3 Answers3

6

In the 8.5.5.5 or earlier websocket feature is not contained in the downloaded jar. You have to install it from the repository using the following command:

featureManager install websocket-1.0 --when-file-exists=ignore

see the following page - Java WebSocket 1.0.

The 8.5.5.6 version is Java EE 7 compatible and contains webSocket-1.1 feature already built in, so you may download that one.

Gas
  • 17,601
  • 4
  • 46
  • 93
0

The feature files are in [Liberty Install]/lib/features folder.

However, I don't see websocket-1.0 or websocket-1.1 in Liberty 8.5.5.5

Try to use 8.5.5.6, you should see websocket-1.1.mf

Abelard Chow
  • 598
  • 1
  • 5
  • 12
0

For OpenLiberty navigate to [OpenLiberty Install]/bin via shell and execute:

featureUtility installFeature websocket-1.0 --acceptLicense

This will install the missing feature to the folder [OpenLiberty Install]/lib/features.

Michi-2142
  • 1,170
  • 3
  • 18
  • 39