"Authorization failed" when connecting with jwchat

jwchat, openfire and wamp. “Authorization failed”

Whenever I try to log into jwchat I get “Authorization failed”.

information from config.js

var SITENAME = “localhost”;

var BACKENDS =

[

{

name:“OpenFire”,

httpbase:“http-bind/”,

type:“binding”,

servers_allowed:[SITENAME]

}

];

information from jsjac.js

// Options specific to HTTP Binding (BOSH)

var JSJACHBC_BOSH_VERSION = “1.6”;

var JSJACHBC_USE_BOSH_VER = true;

information from httpd.conf

LoadModule proxy_http_module modules/mod_proxy_http.so

LoadModule proxy_module modules/mod_proxy.so

<Directory “c:/wamp/www/”>

Options FollowSymLinks MultiViews

AllowOverride None

Order allow,deny

Allow from all

RewriteEngine on

RewriteRule /http-bind/ http://127.0.0.1:7070/http-bind/ [P]

AddDefaultCharset UTF-8

my openfire has

xmpp.httpbind.client.requests.polling = 0

xmpp.httpbind.client.requests.wait = 10

http binding is enabled to port 7070

Script Syntax is enabled.

on apache2 I have mod_rewrite, mod_proxy and mod_proxy_http enabled

here is information from the debugger

[Thursday, April 22, 2010 3:46:08 AM] (level 2) func: init

jid: test@localhost/jwchat

pass: test

[Thursday, April 22, 2010 3:46:08 AM] (level 2) func: unknown

registered handler for event ‘iq’

[Thursday, April 22, 2010 3:46:09 AM] (level 2) func: unknown

registered handler for event ‘presence’

[Thursday, April 22, 2010 3:46:09 AM] (level 2) func: unknown

registered handler for event ‘message’

[Thursday, April 22, 2010 3:46:09 AM] (level 2) func: unknown

registered handler for event ‘message’

[Thursday, April 22, 2010 3:46:10 AM] (level 2) func: unknown

registered handler for event ‘ondisconnect’

[Thursday, April 22, 2010 3:46:10 AM] (level 2) func: unknown

registered handler for event ‘onconnect’

[Thursday, April 22, 2010 3:46:10 AM] (level 2) func: unknown

registered handler for event ‘onerror’

[Thursday, April 22, 2010 3:46:10 AM] (level 3) func: unknown

incoming event ‘onstatuschanged’

[Thursday, April 22, 2010 3:46:10 AM] (level 3) func: unknown

incoming event ‘status_changed’

[Thursday, April 22, 2010 3:46:11 AM] (level 4) func: JSJaCKeys

1: 8f3fec75eda3d3926b8297ea4d4b8f8d393f7628

[Thursday, April 22, 2010 3:46:11 AM] (level 4) func: JSJaCKeys

2: d279f5bc621038f8460f59a20d5cc4e97a7616cb

[Thursday, April 22, 2010 3:46:11 AM] (level 4) func: JSJaCKeys

3: d0e0f6c2fefc53970ec1ee5f76b4d1117416e3a2

[Thursday, April 22, 2010 3:46:11 AM] (level 4) func: JSJaCKeys

4: 2c58e46be8a63b91c75ca06e08e90b651e6d5e53

[Thursday, April 22, 2010 3:46:11 AM] (level 4) func: JSJaCKeys

5: f5be229d44269c46b498fb0e446a36ccb4cf552d

[Thursday, April 22, 2010 3:46:11 AM] (level 4) func: JSJaCKeys

6: fd55fa3836fffaa447d87cda0f75d8fe4b4a643a

[Thursday, April 22, 2010 3:46:11 AM] (level 4) func: JSJaCKeys

7: 65a453a2e8789e26b42247470ddfe829e1cb0ee3

[Thursday, April 22, 2010 3:46:11 AM] (level 4) func: JSJaCKeys

8: 08c7788839dc3bc0a788b2859cdf4ff759938d3a

[Thursday, April 22, 2010 3:46:11 AM] (level 4) func: JSJaCKeys

9: 768b48b3814e60114359299fe1212b41772d0547

[Thursday, April 22, 2010 3:46:12 AM] (level 4) func: JSJaCKeys

10: 9318379b73ebfd6a55d6085d3a663eedbf9b9f3d

[Thursday, April 22, 2010 3:46:12 AM] (level 4) func: JSJaCKeys

11: c5b844c2b699cbf33d976ae51ca933d8e3122be0

[Thursday, April 22, 2010 3:46:12 AM] (level 4) func: JSJaCKeys

12: 73562ce3bb32eac922d7e3894d21ac431380b64b

[Thursday, April 22, 2010 3:46:12 AM] (level 4) func: JSJaCKeys

13: ee550f3cc79601e78ee06f9724a93e6135741fdd

[Thursday, April 22, 2010 3:46:12 AM] (level 4) func: JSJaCKeys

14: 1b10582ba5ca537d581c23c13a6d6b6a919632a1

[Thursday, April 22, 2010 3:46:12 AM] (level 4) func: JSJaCKeys

15: a93d1ffa0952e24c2836f334d2f105382a82edd5

[Thursday, April 22, 2010 3:46:12 AM] (level 4) func: unknown

[Thursday, April 22, 2010 3:46:12 AM] (level 4) func: unknown

async recv: stream:featuresDIGEST-MD5PLAINANONYMOUSCRAM-MD5</mech anism>zlib</stream:features>

[Thursday, April 22, 2010 3:46:12 AM] (level 4) func: unknown

Date: Thu, 22 Apr 2010 10:46:08 GMT

Server: Jetty(6.1.x)

Content-Type: text/xml; charset=utf-8

Content-Length: 669

Keep-Alive: timeout=5, max=99

Connection: Keep-Alive

[Thursday, April 22, 2010 3:46:13 AM] (level 4) func: unknown

DIGEST-MD5PLAINANONYMOUSCRAM-MD5zlib

[Thursday, April 22, 2010 3:46:13 AM] (level 2) func: unknown

got sid: ec4324ff

[Thursday, April 22, 2010 3:46:13 AM] (level 2) func: unknown

set hold to 1

[Thursday, April 22, 2010 3:46:13 AM] (level 4) func: unknown

DIGEST-MD5PLAINANONYMOUSCRAM-MD5zlib

[Thursday, April 22, 2010 3:46:13 AM] (level 2) func: unknown

got streamid: ec4324ff

[Thursday, April 22, 2010 3:46:13 AM] (level 2) func: unknown

SASL detected

[Thursday, April 22, 2010 3:46:13 AM] (level 2) func: unknown

SASL using mechanism ‘DIGEST-MD5’

[Thursday, April 22, 2010 3:46:13 AM] (level 2) func: unknown

Found working slot at 0

[Thursday, April 22, 2010 3:46:14 AM] (level 4) func: unknown

sending:

[Thursday, April 22, 2010 3:46:14 AM] (level 3) func: unknown

incoming event ‘onstatuschanged’

[Thursday, April 22, 2010 3:46:14 AM] (level 3) func: unknown

incoming event ‘status_changed’

[Thursday, April 22, 2010 3:46:14 AM] (level 4) func: unknown

async recv: cmVhbG09ImJveHJhZGlvLm5vLWlwLmluZm8iLG 5vbmNlPSIrb0xTbVVBSGdvNFVCRUhISDJERUQ5U3dHQWtZSk4yMGU5d3pjRkNxIixxb3A9ImF1dGgiLG NoYXJzZXQ9dXRmLTgsYWxnb3JpdGhtPW1kNS1zZXNz

[Thursday, April 22, 2010 3:46:14 AM] (level 2) func: unknown

got challenge: realm=“boxradio.no-ip.info”,nonce="+oLSmUAHgo4UBEHHH2DED9SwGAkYJN20e9wzcFCq",qo p=“auth”,charset=utf-8,algorithm=md5-sess

[Thursday, April 22, 2010 3:46:14 AM] (level 2) func: unknown

nonce: +oLSmUAHgo4UBEHHH2DED9SwGAkYJN20e9wzcFCq

[Thursday, April 22, 2010 3:46:14 AM] (level 2) func: unknown

response: username=“test”,realm=“localhost”,nonce="+oLSmUAHgo4UBEHHH2DED9SwGAkYJN20e9wzcF Cq",cnonce=“2WlCJibihjO9Os”,nc=“00000001”,qop=auth,digest-uri=“xmpp/localhost”,r esponse=“77e760003c2197a915b670ca1985b48d”,charset=utf-8

[Thursday, April 22, 2010 3:46:14 AM] (level 2) func: unknown

Found working slot at 0

[Thursday, April 22, 2010 3:46:14 AM] (level 4) func: unknown

sending: dXNlcm5hbWU9InRlc3QiLHJlYWxtPSJsb2NhbG hvc3QiLG5vbmNlPSIrb0xTbVVBSGdvNFVCRUhISDJERUQ5U3dHQWtZSk4yMGU5d3pjRkNxIixjbm9uY2 U9IjJXbENKaWJpaGpPOU9zIixuYz0iMDAwMDAwMDEiLHFvcD1hdXRoLGRpZ2VzdC11cmk9InhtcHAvbG 9jYWxob3N0IixyZXNwb25zZT0iNzdlNzYwMDAzYzIxOTdhOTE1YjY3MGNhMTk4NWI0OGQiLGNoYXJzZX Q9dXRmLTgA

[Thursday, April 22, 2010 3:46:15 AM] (level 4) func: unknown

scheduling next poll in 100 msec

[Thursday, April 22, 2010 3:46:15 AM] (level 2) func: unknown

all slots busy, standby …

[Thursday, April 22, 2010 3:46:15 AM] (level 4) func: unknown

async recv:

[Thursday, April 22, 2010 3:46:16 AM] (level 1) func: unknown

auth error:

[Thursday, April 22, 2010 3:46:16 AM] (level 3) func: unknown

incoming event ‘onerror’

[Thursday, April 22, 2010 3:46:16 AM] (level 2) func: unknown

handling event ‘onerror’

[Thursday, April 22, 2010 3:46:16 AM] (level 3) func: unknown

incoming event ‘onstatuschanged’

[Thursday, April 22, 2010 3:46:16 AM] (level 3) func: unknown

incoming event ‘status_changed’

[Thursday, April 22, 2010 3:46:16 AM] (level 4) func: unknown

Disconnecting:

[Thursday, April 22, 2010 3:46:16 AM] (level 2) func: unknown

Disconnected:

[Thursday, April 22, 2010 3:46:16 AM] (level 3) func: unknown

incoming event ‘ondisconnect’

[Thursday, April 22, 2010 3:46:17 AM] (level 2) func: unknown

handling event ‘ondisconnect’

[Thursday, April 22, 2010 3:46:17 AM] (level 4) func: unknown

scheduling next poll in 100 msec

[Thursday, April 22, 2010 3:46:17 AM] (level 1) func: unknown

Connection lost …

What am I missing or doing wrong?

thank you

Hello Goldust,

i have this Problem too but i have change the

var SITENAME = “localhost”;

in the config.js on jwchat to original servername on openfire

My config.js:

var BACKENDS =

[

{

name:“Normale Verbindung”,

description:“Einfach und schnell”,

httpbase:"/http-bind/",

type:“binding”,

servers_allowed:[SITENAME]

},

{

name:“Native Polling”,

description:“Ejabberd’s native HTTP Polling backend”,

httpbase:“http-poll/”,

type:“polling”,

servers_allowed:[SITENAME]

}

];

My httpdconfig:

<Directory “c:/xampp/htdocs/jwchat”>

Options FollowSymLinks MultiViews

AllowOverride None

Order allow,deny

Allow from all

RewriteEngine on

RewriteRule /http-bind/ http://127.0.0.1:7070/http-bind/ [P]

AddDefaultCharset UTF-8

<VirtualHost *>

ServerName localhost

ProxyRequests On

ProxyPass /http-bind/ http://127.0.0.1:7070/http-bind/

ProxyPassReverse / localhost

and its run fine !