ejabberd - Comments for "Http polling issues with Mozilla Firefox browser ?" https://www.ejabberd.im/node/529 en <stream> https://www.ejabberd.im/node/529#comment-51489 <div class="quote-msg"> <div class="quote-author"><em>rsonak</em> wrote:</div> <p>Hey guys,</p> <p>Are there any known http polling issues when connecting to ejabberd via Apache web server and using the Firefox browser ? I am running:<br /> - ejabberd version 0.9.1 on windows<br /> - Erlang 5.4/OTP R10B-6 </p> <p>Have any works working on implementing/configuring applications to work with ejabberd run into issues with Firefox ?</p> <p>Thanks</p></div> <p>I had a similar "&lt;stream&gt;" error earlier today, after a little digging it turns out the Users table has an incorrect value. In my case the password wasn't the same as the user was typing in and it was causing the auth error.</p> <p>If you're getting a "stream" packet back it means you have successfully hit the Ejabberd server, so I wouldn't spend much more time messing with your rewrite rule (it looks fine as is)... maybe take some time to analyze your auth settings... if using ODBC make sure you are getting to the DB correctly, if using local mensia DB maybe try flushing it and readding your username and pass combo.</p> <p>Just a couple idea's worth giving a shot.</p> Fri, 21 Dec 2007 00:37:42 +0000 chadillac comment 51489 at https://www.ejabberd.im Apache plays nice https://www.ejabberd.im/node/529#comment-51487 <div class="quote-msg"> <div class="quote-author"><em>rsonak</em> wrote:</div> <p>sorry my bad in the original quote teo. I am using a javascript client library, JsJAC (same one that JWChat uses), to connect to ejabberd through my web app. I have the following Rewrite rule in Apache:<br /> RewriteRule ^/http-poll/ <noindex><a href="http://mychatserver:5280/http-poll/" title="http://mychatserver:5280/http-poll/" rel="nofollow" >http://mychatserver:5280/http-poll/</a></noindex> [P]</p> <p>When i do a <noindex><a href="http://mychatserver/http-poll/" title="http://mychatserver/http-poll/" rel="nofollow" >http://mychatserver/http-poll/</a></noindex> in Mozilla Firefox, i get the following error:<br /> ******************************<br /> XML Parsing Error: no element found<br /> Location: <noindex><a href="http://mychatserver/http-poll/" title="http://mychatserver/http-poll/" rel="nofollow" >http://mychatserver/http-poll/</a></noindex><br /> Line Number 1, Column 1:<br /> *************************<br /> and i get an http polling component error when i connect using JsJAC client libraries with Firefox. Anyone encountered something similar ?</p> <p>Thanks for your help. </p></div> <p>I'm doing the same exact thing, and it works perfectly in Firefox. I would take a closer look at your configuration.</p> Thu, 20 Dec 2007 20:01:34 +0000 chadillac comment 51487 at https://www.ejabberd.im try removing the https://www.ejabberd.im/node/529#comment-51468 <p>try removing the '/'</p> <p>RewriteRule http-poll <noindex><a href="http://chat.mindfields.nl:5280/http-poll/" title="http://chat.mindfields.nl:5280/http-poll/" rel="nofollow" >http://chat.mindfields.nl:5280/http-poll/</a></noindex> [P]</p> <p>works for me ..</p> Sun, 16 Dec 2007 12:15:58 +0000 Anonymous comment 51468 at https://www.ejabberd.im .htaccess file for jwchat http polling https://www.ejabberd.im/node/529#comment-1581 <p>I'm using jwchat too and it's working fine with that .htaccess file :</p> <p>AddDefaultCharset UTF-8<br /> Options +MultiViews</p> <p># RewriteLog "/tmp/rewrite.log"<br /> # RewriteLogLevel 3<br /> RewriteEngine On<br /> RewriteRule http-poll/ <noindex><a href="http://127.0.0.1:5280/http-poll/" title="http://127.0.0.1:5280/http-poll/" rel="nofollow" >http://127.0.0.1:5280/http-poll/</a></noindex> [P]<br /> RewriteRule admin(.*) http://127.0.0.1:5280/admin$1 [P]</p> <p>Disable the # for any logging<br /> The "admin" line allow you to connect to the administration web service of ejabberd.<br /> Good luck</p> Thu, 20 Apr 2006 15:06:22 +0000 pyros comment 1581 at https://www.ejabberd.im No News? https://www.ejabberd.im/node/529#comment-1561 <p>Are there no news on that issue?<br /> --<br /> <noindex><a href="http://www.wifiseeker.de/" rel="nofollow" >wifiseeker</a></noindex></p> Thu, 13 Apr 2006 07:25:14 +0000 netuno comment 1561 at https://www.ejabberd.im im also on JSJaC https://www.ejabberd.im/node/529#comment-1255 <p>im also using JWChat's JSJaC api without problems.</p> Tue, 17 Jan 2006 05:56:26 +0000 marc@amessage.nl comment 1255 at https://www.ejabberd.im Re: tried without Apache and with IIS, same prob https://www.ejabberd.im/node/529#comment-1150 <div class="quote-msg"> <div class="quote-author"><em>rsonak</em> wrote:</div> <p>One question for you: What happens when you guys connect to <noindex><a href="http://mychatserver/http-poll/" title="http://mychatserver/http-poll/" rel="nofollow" >http://mychatserver/http-poll/</a></noindex>, does it bring up some page loaded by the http polling port of ejabberd or give any other message ?</p></div> <p>I get a blanc page. Btw, it is maybe easier to get assistence from the JWChat author (it is probably some misconfiguration of JWChat). You can find him sometimes in the chatroom <noindex><a href="/xmpp:jwchat%40conference.jwchat.org?join" rel="nofollow" >jwchat@conference.jwchat.org</a></noindex></p> Mon, 12 Dec 2005 23:59:16 +0000 sander comment 1150 at https://www.ejabberd.im tried without Apache and with IIS, same prob https://www.ejabberd.im/node/529#comment-1148 <p>sander, teo: thanks for the replies. I tried the configurations you mentioned sander but no luck, same issue. Teo, i also tried connecting to the URL in the previous log using IIS instead of Apache as my webserver but same problem again. I have not yet tried a different client. </p> <p>One question for you: What happens when you guys connect to <noindex><a href="http://mychatserver/http-poll/" title="http://mychatserver/http-poll/" rel="nofollow" >http://mychatserver/http-poll/</a></noindex>, does it bring up some page loaded by the http polling port of ejabberd or give any other message ? </p> <p>Thanks</p> Mon, 12 Dec 2005 21:42:57 +0000 rsonak comment 1148 at https://www.ejabberd.im Re: Http polling error through client https://www.ejabberd.im/node/529#comment-1145 <div class="quote-msg"> <div class="quote-author"><em>rsonak</em> wrote:</div> <p>I have the following Rewrite rule in Apache:<br /> RewriteRule ^/http-poll/ <noindex><a href="http://mychatserver:5280/http-poll/" title="http://mychatserver:5280/http-poll/" rel="nofollow" >http://mychatserver:5280/http-poll/</a></noindex> [P] </p></div> <p>I have an .htaccess file with something like this in it:</p> <pre> &lt;IfModule mod_rewrite.c&gt; RewriteEngine On RewriteRule http-poll/ <noindex><a href="http://example.org:5280/http-poll/" title="http://example.org:5280/http-poll/" rel="nofollow" >http://example.org:5280/http-poll/</a></noindex> [P] &lt;/IfModule&gt; </pre><p> So, maybe you need to remove the ^.</p> Sat, 10 Dec 2005 17:45:27 +0000 sander comment 1145 at https://www.ejabberd.im Have you tried to connect to https://www.ejabberd.im/node/529#comment-1142 <p>Have you tried to connect to <noindex><a href="http://mychatserver/http-poll/" title="http://mychatserver/http-poll/" rel="nofollow" >http://mychatserver/http-poll/</a></noindex> without Apache? Have you tried another client with HTTP-polling support? It's not obvious to me what is going wrong, Apache or client or ejabberd itself.</p> Sat, 10 Dec 2005 08:55:15 +0000 teo comment 1142 at https://www.ejabberd.im Re: Http polling error through client https://www.ejabberd.im/node/529#comment-1141 <p>sorry my bad in the original quote teo. I am using a javascript client library, JsJAC (same one that JWChat uses), to connect to ejabberd through my web app. I have the following Rewrite rule in Apache:<br /> RewriteRule ^/http-poll/ <noindex><a href="http://mychatserver:5280/http-poll/" title="http://mychatserver:5280/http-poll/" rel="nofollow" >http://mychatserver:5280/http-poll/</a></noindex> [P]</p> <p>When i do a <noindex><a href="http://mychatserver/http-poll/" title="http://mychatserver/http-poll/" rel="nofollow" >http://mychatserver/http-poll/</a></noindex> in Mozilla Firefox, i get the following error:<br /> ******************************<br /> XML Parsing Error: no element found<br /> Location: <noindex><a href="http://mychatserver/http-poll/" title="http://mychatserver/http-poll/" rel="nofollow" >http://mychatserver/http-poll/</a></noindex><br /> Line Number 1, Column 1:<br /> *************************<br /> and i get an http polling component error when i connect using JsJAC client libraries with Firefox. Anyone encountered something similar ?</p> <p>Thanks for your help.</p> Sat, 10 Dec 2005 01:15:27 +0000 rsonak comment 1141 at https://www.ejabberd.im What do you mean when saying https://www.ejabberd.im/node/529#comment-1138 <p>What do you mean when saying <em>connecting via Apache</em> and <em>using the Firefox browser</em>? Ejabberd doesn't require external HTTP-server to support HTTP-polling. And HTTP-polling is a way of Jabber-client (not Web-browser) connect to Jabber-server.</p> Fri, 09 Dec 2005 07:05:22 +0000 teo comment 1138 at https://www.ejabberd.im