rickilama54 / gwt-comet

Automatically exported from code.google.com/p/gwt-comet
0 stars 0 forks source link

No response #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. No problem on local computer (tomcat & client in the same computer).
2. Server side have the good HttpSession and a valid CometSession.
3. Server send a serialized object 
4. If i try (client side) on another computer... i don't have server's response.

What is the expected output? What do you see instead?
On distance computer :
onError with this exception message : http://xxx/myprogram/comet.srv timeout 
has expired after 10000ms
But if i trace TCP packets (with wireshark software) i have several response 
from the server with my serialized object, it's like client don't reconize them.

What version of the product are you using? On what operating system?
The last one (1.2.3) with GWT 2.3, server is Tomcat 6 and browser (last stable 
Chrome and Firefox 5.0)

Original issue reported on code.google.com by skalim...@gmail.com on 26 Jul 2011 at 6:10

GoogleCodeExporter commented 9 years ago
I found the problem.

The problem is in AJP protocol use to connect Apache to Tomcat via mod_jk on 
Linux platform.

To develop my program, i use a computer under Windows and for testing i use 
Apache 2.2 and Tomcat 6 (with mod_jk to connect them) on this computer and on a 
Linux server.

On windows platform the protocole AJP use to connect apache and tomcat is the 
AjpAprProtocol by default. But on linux the default protocol is JkCoyoteHandler 
and this one don't implement all features of AJP protocol and Comet don't work.

Conclusion : 

If you want to have comet application on a linux server (with apache and 
mod_jk) edit server.xml (tomcat configuration file) and replace :
   <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
by
   <Connector port="8009" protocol="org.apache.coyote.ajp.AjpAprProtocol" redirectPort="8443" />

Original comment by skalim...@gmail.com on 27 Jul 2011 at 6:47

GoogleCodeExporter commented 9 years ago
Hi, I have the same problem. I replaced the AJP connector as you indicated but 
the problem keeps on. The server runs Ubuntu. have you changed another 
configuration on the server?

Original comment by ariel...@gmail.com on 9 Sep 2011 at 10:10

GoogleCodeExporter commented 9 years ago
try this protocol : "org.apache.coyote.ajp.AjpProtocol"

Original comment by skalim...@gmail.com on 10 Sep 2011 at 8:23

GoogleCodeExporter commented 9 years ago
Hi, thank you for your help! The problem was the Avast! Antivirus :S 

Original comment by ariel...@gmail.com on 14 Sep 2011 at 2:44

GoogleCodeExporter commented 9 years ago
Hi there. Had similar problems. Is there anything that one can do to bypass 
antivirus issues?

Original comment by mavrikis@gmail.com on 2 Jul 2012 at 9:48