Http polling issues with Mozilla Firefox browser ?

Hey guys,

Are there any known http polling issues when connecting to ejabberd via Apache web server and using the Firefox browser ? I am running:
- ejabberd version 0.9.1 on windows
- Erlang 5.4/OTP R10B-6

Have any works working on implementing/configuring applications to work with ejabberd run into issues with Firefox ?

Thanks

What do you mean when saying

What do you mean when saying connecting via Apache and using the Firefox browser? 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.

Re: Http polling error through client

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:
RewriteRule ^/http-poll/ http://mychatserver:5280/http-poll/ [P]

When i do a http://mychatserver/http-poll/ in Mozilla Firefox, i get the following error:
******************************
XML Parsing Error: no element found
Location: http://mychatserver/http-poll/
Line Number 1, Column 1:
*************************
and i get an http polling component error when i connect using JsJAC client libraries with Firefox. Anyone encountered something similar ?

Thanks for your help.

Have you tried to connect to

Have you tried to connect to http://mychatserver/http-poll/ 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.

tried without Apache and with IIS, same prob

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.

One question for you: What happens when you guys connect to http://mychatserver/http-poll/, does it bring up some page loaded by the http polling port of ejabberd or give any other message ?

Thanks

Re: tried without Apache and with IIS, same prob

rsonak wrote:

One question for you: What happens when you guys connect to http://mychatserver/http-poll/, does it bring up some page loaded by the http polling port of ejabberd or give any other message ?

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 jwchat@conference.jwchat.org

im also on JSJaC

im also using JWChat's JSJaC api without problems.

No News?

Are there no news on that issue?
--
wifiseeker

.htaccess file for jwchat http polling

I'm using jwchat too and it's working fine with that .htaccess file :

AddDefaultCharset UTF-8
Options +MultiViews

# RewriteLog "/tmp/rewrite.log"
# RewriteLogLevel 3
RewriteEngine On
RewriteRule http-poll/ http://127.0.0.1:5280/http-poll/ [P]
RewriteRule admin(.*) http://127.0.0.1:5280/admin$1 [P]

Disable the # for any logging
The "admin" line allow you to connect to the administration web service of ejabberd.
Good luck

try removing the

try removing the '/'

RewriteRule http-poll http://chat.mindfields.nl:5280/http-poll/ [P]

works for me ..

Re: Http polling error through client

rsonak wrote:

I have the following Rewrite rule in Apache:
RewriteRule ^/http-poll/ http://mychatserver:5280/http-poll/ [P]

I have an .htaccess file with something like this in it:

       <IfModule mod_rewrite.c>
         RewriteEngine On
         RewriteRule http-poll/ http://example.org:5280/http-poll/ [P]
       </IfModule>

So, maybe you need to remove the ^.

Apache plays nice

rsonak wrote:

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:
RewriteRule ^/http-poll/ http://mychatserver:5280/http-poll/ [P]

When i do a http://mychatserver/http-poll/ in Mozilla Firefox, i get the following error:
******************************
XML Parsing Error: no element found
Location: http://mychatserver/http-poll/
Line Number 1, Column 1:
*************************
and i get an http polling component error when i connect using JsJAC client libraries with Firefox. Anyone encountered something similar ?

Thanks for your help.

I'm doing the same exact thing, and it works perfectly in Firefox. I would take a closer look at your configuration.

<stream>

rsonak wrote:

Hey guys,

Are there any known http polling issues when connecting to ejabberd via Apache web server and using the Firefox browser ? I am running:
- ejabberd version 0.9.1 on windows
- Erlang 5.4/OTP R10B-6

Have any works working on implementing/configuring applications to work with ejabberd run into issues with Firefox ?

Thanks

I had a similar "<stream>" 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.

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.

Just a couple idea's worth giving a shot.

Syndicate content