AnsweredAssumed Answered

Openfire 3.4.5 with JWChat

Question asked by bearcathk on Mar 17, 2008
Latest reply on May 4, 2008 by seaq

 

Hey everyone,

 

 

Myself, and the rest of the IT department here at my job are trying to get Openfire and JWChat working together.  We've got Openfire up and running, and have been able to connect to it with Miranda just fine.  The problem lays in connecting via http-bind with JWChat.  I'll copy and paste the settings and log files below.  We're at our wit's end, we've been working on this for quite some time, and are no closer to getting it to work than when we started.  Thanks so much for any and all help.

 

 

 

 

 

-


httpd.conf: -

-


Directory Section

 

<Directory "/var/www/jwchat/jwchat_1">

 

Options +Includes

 

Options +Indexes +MultiViews

 

Options ExecCGI FollowSymLinks

 

Order allow,deny

 

Allow from all

 

</Directory>

 

AddHandler cgi-wrapper .cgi .pl

 

AddHandler cgi-script .cgi .pl

 

AddHandler server-parsed .shtml

 

AddType text/html .shtml

 

AddOutputFilter INCLUDE .shtml

 

XBitHack on

 

 

 

-


Virtual Hosts Section

 

<VirtualHost 150.20.55.66:8080>

 

ServerName jwchat.dev1.com

 

DocumentRoot "/var/www/jwchat/jwchat_1"

 

DirectoryIndex index.php index.html index.htm index.shtml

 

ProxyPass /http-bind/ http://127.0.0.1:5280/http-bind/

 

ErrorLog "/var/log/httpd/jwchat.error_log"

 

RewriteEngine on

 

</VirtualHost>

 

-


OpenFire Settings: -

 

Server Ports Interface      Port             Type      Description All addresses      5222           Client to Server All addresses      5223           Client to Server All addresses      9090           Admin Console All addresses      9091           Admin Console All addresses      5280           HTTP Binding All addresses      8483           HTTP Binding All addresses      3478 & 3479      STUN Service All addresses      5229           Flash Cross Domain <!-- google_ad_section_end -->

 

 

-


config.js: -

var SITENAME = "jwchat.dev1.com";

 

var BACKENDS = 

[

 

];

 

 

Here are the logs we get from JWChat when we run it in debug mode.  They're different depending on what browser we're using:

 

 

 

 

 

-


IE: -

 

 

(level 2) func: unknown

jid: testuser@jwchat.dev1.com/jwchat

pass: &lt;removed&gt;

(level 2) func: unknown

registered handler for event 'iq'

(level 2) func: unknown

registered handler for event 'presence'

(level 2) func: unknown

registered handler for event 'message'

(level 2) func: unknown

registered handler for event 'message'

(level 2) func: unknown

registered handler for event 'ondisconnect'

(level 2) func: unknown

registered handler for event 'onconnect'

(level 2) func: unknown

registered handler for event 'onerror'

(level 3) func: unknown

incoming event 'onstatuschanged'

(level 3) func: unknown

incoming event 'status_changed'

(level 2) func: unknown

httpbase: http://jwchat.dev1.com/http-bind/domain:jwchat.dev1.com

(level 4) func: unknown

1: b30c5a02f23294fc2bbe1c5de35197c2d882f421

(level 4) func: unknown

2: 60919b3eba42f9b11abcf957957061674d89f278

(level 4) func: unknown

3: 058704c45b1dbc313ea934bdd4c63216bbf6cf1c

(level 4) func: unknown

4: c945f2c57892239f8fa21c78a1235a316ff6aa78

(level 4) func: unknown

5: 9cad1be271d3dbea1e597f389fbdd8168bc51f0a

(level 4) func: unknown

6: e11e305f00fce25566b53c6038d701913cce0ff7

(level 4) func: unknown

7: d94bf59372939a02c85ff0b444dc3489a6758324

(level 4) func: unknown

8: 40cba61f0657ea19d78ed781d8a116c9d9648719

(level 4) func: unknown

9: e9519dae8990ec93d592a78ef7f98719a6e829e3

(level 4) func: unknown

10: 9586c330647e4c5e2baeff52734df0bd78614759

(level 4) func: unknown

11: 6be7149240de6fb9f0090f512f408018ed65d6fa

(level 4) func: unknown

12: b34beb92bdfc68f940af44dce3d8888a26eb4760

(level 4) func: unknown

13: 6ea96658073cfb534b9801d064beb6d2b3c9312a

(level 4) func: unknown

14: 886c14f49691b9dccc69e4d5b41ff58c57bc2914

(level 4) func: unknown

15: a4a54aa6b3ab9244a71a4e920b9c3d47f51d0f3d

(level 4) func: unknown

&lt;body hold='1' xmlns='http://jabber.org/protocol/httpbind'

to='jwchat.dev1.com' wait='300' rid='171828'

route='xmpp:jwchat.dev1.com:8080'

newkey='a4a54aa6b3ab9244a71a4e920b9c3d47f51d0f3d' ver='1.6'

xmpp:xmlns='urn:xmpp:xbosh' xmpp:version='1.0'/&gt;

(level 4) func: unknown

async recv: &lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&gt;

&lt;html&gt;&lt;head&gt;

&lt;title&gt;404 Not Found&lt;/title&gt;

&lt;/head&gt;&lt;body&gt;

&lt;h1&gt;Not Found&lt;/h1&gt;

&lt;p&gt;The requested URL /http-bind/ was not found on this server.&lt;/p&gt;

&lt;p&gt;Additionally, a 404 Not Found

error was encountered while trying to use an ErrorDocument to handle the request.&lt;/p&gt;

&lt;/body&gt;&lt;/html&gt;

 

(level 4) func: unknown

Date: Fri, 14 Mar 2008 14:48:15 GMT 

Server: GetLost/1.0 

Content-Length: 327 

Keep-Alive: timeout=15, max=100 

Connection: Keep-Alive 

Content-Type: text/html; charset=iso-8859-1 

 

 

(level 4) func: unknown

&lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&gt;

&lt;html&gt;&lt;head&gt;

&lt;title&gt;404 Not Found&lt;/title&gt;

&lt;/head&gt;&lt;body&gt;

&lt;h1&gt;Not Found&lt;/h1&gt;

&lt;p&gt;The requested URL /http-bind/ was not found on this server.&lt;/p&gt;

&lt;p&gt;Additionally, a 404 Not Found

error was encountered while trying to use an ErrorDocument to handle the request.&lt;/p&gt;

&lt;/body&gt;&lt;/html&gt;

 

(level 1) func: unknown

initial response broken (status: 404)

(level 3) func: unknown

incoming event 'onerror'

(level 2) func: unknown

handling event 'onerror'

 

-


Firefox: -

 

(level 2) func: init

jid: testuser@jwchat.dev1.com/jwchat

pass: &lt;removed&gt;

(level 2) func: unknown

registered handler for event 'iq'

(level 2) func: unknown

registered handler for event 'presence'

(level 2) func: unknown

registered handler for event 'message'

(level 2) func: unknown

registered handler for event 'message'

(level 2) func: unknown

registered handler for event 'ondisconnect'

(level 2) func: unknown

registered handler for event 'onconnect'

(level 2) func: unknown

registered handler for event 'onerror'

(level 3) func: unknown

incoming event 'onstatuschanged'

(level 3) func: unknown

incoming event 'status_changed'

(level 2) func: JSJaCHBCConnect

httpbase: http://jwchat.dev1.com/http-bind/domain:jwchat.dev1.com

(level 1) func: JSJaCHBCSetupRequest

Permission denied to call method XMLHttpRequest.open

(level 4) func: JSJaCKeys

15: 639a72a7a4a72ff01bfd02ced59359d27762acea

(level 4) func: JSJaCHBCConnect

&lt;body hold='1' xmlns='http://jabber.org/protocol/httpbind'

to='jwchat.dev1.com' wait='300' rid='872669'

route='xmpp:fenmrdev01.maritz.com:5280'

newkey='639a72a7a4a72ff01bfd02ced59359d27762acea' ver='1.6'

xmpp:xmlns='urn:xmpp:xbosh' xmpp:version='1.0'/&gt;

 

So, in Firefox I get an XMLHttpRequest.open error, and in IE I get a 404 error on /http-bind/<!-- google_ad_section_end -->

 

 

Outcomes