Error connecting ElasticSearch 5.4.3 or 5.4.1 maven project java

Please format your code using </> icon as explained in this guide. It will make your post more readable.

Or use markdown style like:

```
CODE
```

1st of all I'd use the Rest client instead of the Transport client.
Then, could you try you sample code outside the context of websphere?

May be share also your sample code?