title: javax.websocket.DeploymentException: org.glassfish.tyrus.container.grizzly.client.GrizzlyClientContainer
body: <p>I am trying to create a websocket using the tyrus project. I am getting this below error:</p>
  
  <pre><code>java.lang.RuntimeException: javax.websocket.DeploymentException: org.glassfish.tyrus.container.grizzly.client.GrizzlyClientContainer
  
      at org.glassfish.tyrus.client.ClientManager.&lt;init&gt;(ClientManager.java:272) ~[bundlefile:na]
      at org.glassfish.tyrus.client.ClientManager.createClient(ClientManager.java:240) ~[bundlefile:na]
      at org.glassfish.tyrus.client.ClientManager.createClient(ClientManager.java:219) ~[bundlefile:na]
  </code></pre>
  
  <p>My pom dependency looks like this:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.glassfish.tyrus&lt;/groupId&gt;
      &lt;artifactId&gt;tyrus-client&lt;/artifactId&gt;
      &lt;version&gt;1.12&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.glassfish.tyrus&lt;/groupId&gt;
      &lt;artifactId&gt;tyrus-core&lt;/artifactId&gt;
      &lt;version&gt;1.12&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.glassfish.tyrus&lt;/groupId&gt;
      &lt;artifactId&gt;tyrus-spi&lt;/artifactId&gt;
      &lt;version&gt;1.12&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;javax.websocket&lt;/groupId&gt;
      &lt;artifactId&gt;javax.websocket-api&lt;/artifactId&gt;
      &lt;version&gt;1.1&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;javax.websocket&lt;/groupId&gt;
      &lt;artifactId&gt;javax.websocket-client-api&lt;/artifactId&gt;
      &lt;version&gt;1.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Very simple java code :</p>
  
  <pre><code>    logger.info("Creating web socket for url {}", getWebSocketUrl(currentApic.IPAddress, port));
      echoUri = new URI(getWebSocketUrl(currentApic.IPAddress, port));
      client = ClientManager.createClient();
      client.connectToServer(APICWebClient.class, echoUri);
  </code></pre>
  
  <p>if i try to add the container dependency</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.glassfish.tyrus&lt;/groupId&gt;
      &lt;artifactId&gt;tyrus-container-grizzly-server&lt;/artifactId&gt;
      &lt;version&gt;1.12&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>My mvn clean install fails saying :</p>
  
  <pre><code> Failed to read artifact descriptor for org.glassfish.tyrus:tyrus-container-grizzly-server:jar:1.4: Could not transfer artifact org.glassfish.tyrus:tyrus-container-grizzly-server:pom:1.4 from/to central (http://repo1.maven.org/maven2): repo1.maven.org: unknown error: Unknown host repo1.maven.org: unknown error -&gt; [Help 1]
  </code></pre>
  
  <p><strong>Edited: The above issue is resolved after mvn clean. server container and client container packages are added. but still i am getting the same runtime error
      java.lang.RuntimeException: javax.websocket.DeploymentException: org.glassfish.tyrus.container.grizzly.client.GrizzlyClientContainer</strong></p>
  
  <p>I am using the in OSGi environment. How do i solve this. need some help on this.</p>