Problem Openfire 3.5.2 & JWChat from CVS

Hello

I got a lot of Problems with Openfire & JWChat

My Sytem Configuration ist

Ubuntu 8.04, Apache 2.2.8, Openfire 3.5.2, JWChat from CVS today + Red5 Patches

I try to open JWChat from a WindowsXP Client with Firefox and IE7 through http://IpAdressServer/jwchat/ and get following Debug Information

Donnerstag, 26. Juni 2008 18:07:48] (level 2) func: unknown

jid: bk@localhost/jwchat

pass: 12345

(level 2) func:

unknown

registered handler for event ‘iq’[Donnerstag, 26. Juni 2008 18:07:48] (level 2) func:

unknown

registered handler for event ‘presence’[Donnerstag, 26. Juni 2008 18:07:48] (level 2) func:

unknown

registered handler for event ‘message’[Donnerstag, 26. Juni 2008 18:07:48] (level 2) func:

unknown

registered handler for event ‘ondisconnect’

(level 2) func:

unknown

registered handler for event ‘onconnect’[Donnerstag, 26. Juni 2008 18:07:48] (level 2) func:

unknown

registered handler for event ‘onerror’

Here is my Configuration

Apache:

mod_proxy and mod_proxy_http are enabled

<VirtualHost *>

DocumentRoot “/var/www/jwchat”

<Directory “/var/www/jwchat”>

allow from all

Options +Indexes +MultiViews

</Directory>

AddDefaultCharset UTF-8

ProxyTimeout 10000

RewriteEngine on

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

ProxyPassReverse /http-bind/ http://127.0.0.1:7070/http-bind/

</VirtualHost>

JWChat:

config.js

var SITENAME = “localhost”;

var BACKENDS =

[

,

};

var DEFAULTRESOURCE = “jwchat”;

var DEFAULTPRIORITY = “10”;

var DEFAULTCONFERENCEROOM = “talks”;

var DEFAULTCONFERENCESERVER = “conference.”+SITENAME;

var DEBUG = true; // turn debugging on

var DEBUG_LVL = 2; // debug-level 0…4 (4 = very noisy)

var USE_DEBUGJID = false; // if true only DEBUGJID gets the debugger

var DEBUGJID = “admin@”+SITENAME; // which user get’s debug messages

var timerval = 2000; // poll frequency in msec

var stylesheet = “jwchat.css”;

var THEMESDIR = “themes”;

var GUEST_ACC = “”;

var GUEST_PWD = “”;

Openfire:

System Properties

xmpp.httpbind.client.requests.polling = 0

xmpp.httpbind.client.requests.wait = 60

Http-Bind Settings:

Enabled

Port = 7070

Secure Port = 7443

Script Syntax

Disable

I tried several types of configuration, searched the Discussiongroup on igniterealtime.org and jwchat.sourceforge.net and I don’t have a clue why it doesn’t work. I wouldn’t ask if I wouldn’t have tried every configuration I found.

I don’t understand why it won’t work.

Can anybody help?

HI did you ever resolve this issue? I am stuck with the exact same issue any help/sujestions would greatly be appreciated.

Hello Drubin!

I got it solved today. It was an issue with the apache configuration.

Follow the steps from ethan in this post http://www.igniterealtime.org/community/message/172738#172738 then correct your apache configuration as following

AddDefaultCharset UTF-8

ProxyPass /http-bind/ http://127.0.0.1:(your Http-bind Port)/http-bind/

ProxyRequests Off

<Proxy *>

Order deny,allow

Allow from all

</Proxy>

Test your apache configuration like this:

Open your Webbrowser and try to connec:

  1. http://nameofyourserver:httpbindport/http-bind/

  2. http://nameofyourserver/http-bind/

In both cases you should get the same site an errorcode response from Openfire. If this works. JWChat must work.

The configuration of JWChat should be made in the default configuration file of Apache except you have a working Virtual Host Configuration.TheVirtualhost Configuration was my Problem in the end.

If you have any further questions just ask maybe I can help.

Thanks. For some reason it just started working last night. (I had already put all those steps in place…)