JQuery Plugin and atmosphere: websockets not working...

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

JQuery Plugin and atmosphere: websockets not working...

DomGuinard
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: JQuery Plugin and atmosphere: websockets not working...

survivant

Duplicate email.   Will try to Google the command line tonight

On Jun 13, 2011 3:48 PM, "DomGuinard" <[hidden email]> wrote:
> Hi there,
>
> I've been trying to deploy the atmosphere-jquery-pubsub app to test actual
> websockets communication and so far I was not very lucky:
>
> - On Glassfish 3.1 I get:
> java.lang.RuntimeException: java.lang.IllegalStateException: WEB9031:
> WebappClassLoader unable to load resource
> [com.sun.grizzly.websockets.BaseServerWebSocket], because it has not yet
> been started, or was already stopped
> at
> com.sun.grizzly.arp.AsyncProcessorTask.doTask(AsyncProcessorTask.java:131)
> at com.sun.grizzly.http.TaskBase.run(TaskBase.java:193)
> at com.sun.grizzly.http.TaskBase.execute(TaskBase.java:175)
> at
> com.sun.grizzly.arp.DefaultAsyncHandler.handle(DefaultAsyncHandler.java:145)
> at
> com.sun.grizzly.arp.AsyncProtocolFilter.execute(AsyncProtocolFilter.java:204)
> at
> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
> at
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
> at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
> at
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
> at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
> at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.IllegalStateException: WEB9031: WebappClassLoader
> unable to load resource [com.sun.grizzly.websockets.BaseServerWebSocket],
> because it has not yet been started, or was already stopped
> at
> org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1410)
> at
> org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1368)
> at
> org.atmosphere.container.GlassFishWebSocketSupport$GrizzlyApplication.onConnect(GlassFishWebSocketSupport.java:118)
> at
> com.sun.grizzly.websockets.BaseWebSocket.onConnect(BaseWebSocket.java:119)
> at
> com.sun.grizzly.websockets.ServerNetworkHandler.handshake(ServerNetworkHandler.java:102)
> at
> com.sun.grizzly.websockets.WebSocketEngine.upgrade(WebSocketEngine.java:147)
> at
> com.sun.grizzly.websockets.WebSocketAsyncFilter.doFilter(WebSocketAsyncFilter.java:52)
> at
> com.sun.grizzly.arp.DefaultAsyncExecutor.invokeFilters(DefaultAsyncExecutor.java:171)
> at
> com.sun.grizzly.arp.DefaultAsyncExecutor.interrupt(DefaultAsyncExecutor.java:143)
> at
> com.sun.grizzly.arp.AsyncProcessorTask.doTask(AsyncProcessorTask.java:94)
> ... 14 more
>
> - On Jetty 8 M3 the client tells me:
>
> jquery...here.js (line 266)
> Firefox can't establish a connection to the server at
> ws://localhost:8080/atmosphere-jquery-pubsub/pubsub/bbb.
> websocket = new WebSocket(location);
>
> and it downgrades to streaming.
>
> I also tried both servers with Chrome and I get the same error both when
> trying to access the Jetty service and the Glassfish service.
>
> I tried that with both Atmosphere 7.2 and the 8.0 snapshot.
>
> Any clue? Anyone did manage to make it work?
>
>
> --
> View this message in context: http://atmosphere-users-mailling-list.2493822.n2.nabble.com/JQuery-Plugin-and-atmosphere-websockets-not-working-tp6466079p6466079.html
> Sent from the Atmosphere users mailling list mailing list archive at Nabble.com.