Jetty fails to start with ClassNotFoundException: org.eclipse.jetty.client.HttpClient
<p>I'm trying to create a war file containing single WebSocket servlet. For some reason jetty wants HttpClient, even though I'd like to have only server side logic. HttpClient is there in the "jetty-client-9.4.0.v20161208.jar" file under Jetty. But that's not listed in the status dump (jetty.server.dumpAfterStart=true).</p>

<p>web.xml</p>

<pre><code>&lt;web-app&gt;
  &lt;display-name&gt;WebSocketApp&lt;/display-name&gt;
  &lt;servlet&gt;
    &lt;servlet-name&gt;wsservlet&lt;/servlet-name&gt;
    &lt;servlet-class&gt;com.example.test.MyJettyServlet&lt;/servlet-class&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
    &lt;servlet-name&gt;wsservlet&lt;/servlet-name&gt;
    &lt;url-pattern&gt;/&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
&lt;/web-app&gt;
</code></pre>

<p>Socket:</p>

<pre><code>@ServerEndpoint("/control")
public class ControlSocket {
    @OnOpen
    public void onOpen(Session session) {
        System.out.println("WebSocket opened: " + session.getId());
    }
    @OnMessage
    public void onMessage(String txt, Session session) throws IOException {
        System.out.println("Message received: " + txt);
        session.getBasicRemote().sendText(txt.toUpperCase());
    }

    @OnClose
    public void onClose(CloseReason reason, Session session) {
        System.out.println("Closing a WebSocket due to " + reason.getReasonPhrase());

    }
}
</code></pre>

<p>Gradle build file:</p>

<pre><code>dependencies {
    compile 'org.projectlombok:lombok:1.16.2'

    compile group: 'javax.websocket', name: 'javax.websocket-api', version: '1.1'

    compile group: 'org.yaml', name: 'snakeyaml', version: '1.16'
    compile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.21'
    compile group: 'commons-lang', name: 'commons-lang', version: '2.6'

    testCompile 'junit:junit:4.11'  
}
</code></pre>

<p>I'd assume something wrong with dependencies. But what exactly? Should I include websocket implementation jars? If yes, then why?</p>