title: maven dependency conflicts with grizzly-websockets and grizzly-http-servlet
body: <p>Maven:</p>
  
  <pre><code>    &lt;!-- Grizzly --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.glassfish.grizzly&lt;/groupId&gt;
          &lt;artifactId&gt;grizzly-websockets&lt;/artifactId&gt;
          &lt;version&gt;2.3.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.glassfish.grizzly&lt;/groupId&gt;
          &lt;artifactId&gt;grizzly-http-servlet&lt;/artifactId&gt;
          &lt;version&gt;2.3.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.glassfish.grizzly&lt;/groupId&gt;
          &lt;artifactId&gt;grizzly-comet&lt;/artifactId&gt;
          &lt;version&gt;2.3.1&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Despite them all being the same version, I'm running into an exception within these libraries.  When I alter the version numbers I just get various other errors related to classes not having methods and stuff.  My logs show that the URL is being mapped correctly to the socket.  This exception occurs when a browser opens the socket connection.</p>
  
  <p>I'm trying to use <code>[portal-java][1]</code> with the Atmosphere module.</p>
  
  <pre><code>WARNING: Exception during FilterChain execution
  java.lang.NoSuchMethodError: org.glassfish.grizzly.http.server.Response.initialize(Lorg/glassfish/grizzly/http/server/Request;Lorg/glassfish/grizzly/http/HttpResponsePacket;Lorg/glassfish/grizzly/filterchain/FilterChainContext;Lorg/glassfish/grizzly/utils/DelayedExecutor$DelayQueue;Lorg/glassfish/grizzly/http/server/HttpServerFilter;)Lorg/glassfish/grizzly/http/server/SuspendStatus;
      at org.atmosphere.container.Grizzly2WebSocketSupport$Grizzly2WebSocketApplication$G2WebSocket.&lt;init&gt;(Grizzly2WebSocketSupport.java:225)
      at org.atmosphere.container.Grizzly2WebSocketSupport$Grizzly2WebSocketApplication.createSocket(Grizzly2WebSocketSupport.java:129)
      at org.glassfish.grizzly.websockets.WebSocketEngine.upgrade(WebSocketEngine.java:213)
      at org.glassfish.grizzly.websockets.WebSocketEngine.upgrade(WebSocketEngine.java:187)
      at org.glassfish.grizzly.websockets.WebSocketFilter.doServerUpgrade(WebSocketFilter.java:336)
      at org.glassfish.grizzly.websockets.WebSocketFilter.handleServerHandshake(WebSocketFilter.java:319)
      at org.glassfish.grizzly.websockets.WebSocketFilter.handleHandshake(WebSocketFilter.java:278)
      at org.glassfish.grizzly.websockets.WebSocketFilter.handleRead(WebSocketFilter.java:199)
      at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
      at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
      at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
      at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
      at org.glassfish.grizzly.strategies.SameThreadIOStrategy.executeIoEvent(SameThreadIOStrategy.java:103)
      at org.glassfish.grizzly.strategies.AbstractIOStrategy.executeIoEvent(AbstractIOStrategy.java:89)
      at org.glassfish.grizzly.nio.SelectorRunner.iterateKeyEvents(SelectorRunner.java:409)
      at org.glassfish.grizzly.nio.SelectorRunner.iterateKeys(SelectorRunner.java:378)
      at org.glassfish.grizzly.nio.SelectorRunner.doSelect(SelectorRunner.java:342)
      at org.glassfish.grizzly.nio.SelectorRunner.run(SelectorRunner.java:274)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
      at java.lang.Thread.run(Thread.java:722)
  </code></pre>