Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jquery-pubsub: Websocket transport fails #28

Closed
lfryc opened this issue Sep 22, 2011 · 7 comments
Closed

jquery-pubsub: Websocket transport fails #28

lfryc opened this issue Sep 22, 2011 · 7 comments

Comments

@lfryc
Copy link

lfryc commented Sep 22, 2011

Environment:
Atmosphere 0.8-SNAPSHOT
atmosphere-jquery-pubsub
Tomcat 7.0.14
Firefox 6.0.2 / Chrome 14.0.835.126 (Linux)

I have checked that AsynchronousProcessor#action(...) is invoked for websocket request.

Firebug console:

Chrome console:

  • Invoking executeWebSocket
  • Unexpected response code: 501
  • Websocket failed. Downgrading to Comet and resending
@jfarcand
Copy link
Member

Tomcat doesn't support WebSocket, so that's expected to fail. Let me know if I missed something. Thanks!

@lfryc
Copy link
Author

lfryc commented Oct 17, 2011

Jean-Francois, is there any list of supported containers then?

I have got impression that Tomcat is supported from following statement:

"Atmosphere is a POJO based framework using Inversion of Control (IoC) to bring Push/Comet and Websocket to the masses! Finally a framework which can run on any Java based Web Server, including Tomcat, Jetty, GlassFish, Weblogic, Grizzly, JBossWeb and JBoss, Resin, etc. without having to learn how Comet or WebSocket support has been differently implemented by all those Containers."

@jfarcand
Copy link
Member

Salut,

I will write one. Currently all server are supported, but since only Jetty and GlassFish supports WebSocket, then under the hood Atmosphere is using streaming as a fallback. As soon as Tomcat supports WebSocket it will start working. But I agree I will clarify what i ssupported on that page. Thanks!

@lfryc
Copy link
Author

lfryc commented Oct 18, 2011

Thanks for clarification, Jean-Francois!

@tanyashah
Copy link

I also tried running the jquery-pubsub sample on firefox 11 today having jboss server already running.
I too faced the same issue.

Firefox can't establish a connection to the server at ws://localhost:8080/atmosphere-jquery-pubsub/pubsub/test. http://localhost:8080/atmosphere-jquery-pubsub/jquery/jquery.atmosphere.js Line 410

Is there a solution to this now? If not then how are we supposed to run the jquery-pubsub sample having the support of websocket protocols?

Waiting for reply.
Thanks in advance.

@tanyashah
Copy link

I am sorry a for not being clear with my question, I wanted to know how can we run the jquery-pubsub sample on jboss/tomcat with the support of websocket protocols?

@jfarcand
Copy link
Member

jfarcand commented Jun 1, 2012

You need to use Tomcat 7.0.23. Please ask your question on the atmosphere-framework@googlegroups.com. I've just tested 0.9.5 and it works fine on both platform. JBoss Websocket support is not yet there as JBoss doesn't support Websocket. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants