My openfire http-binding with jwchat sucks

Hi, I plan to use openfire and jwchat to make a web-im system.I can make sure that all I have done is according to the URL:

http://chromus.kajigger.com/?p=100

My apache and openfire both run at localhost.

When I input http://localhost/ in the browser i can see the jwchat login interface,however when i input the username and password, the page will give me an alert of “service unavailable”. I can see the error message is a 404 error of http://127.0.0.1/http-bind, that is to say, if I input http://127.0.0.1/http-bind , the openfire server will report error to me with this:

HTTP ERROR: 404

NOT_FOUND

RequestURI=/spark/

Powered by Jetty://

I am sure I have enabled the function of http-binding with the port of default 8080

Has any here met such error as above?

Tks.

Just a idea…there is a difference between “http-bind/” and “http-bind” for apache mod_rewrite / mod_proxy. So you should make sure it is overall equal.

openfire server will report error to me with this:

HTTP ERROR: 404

NOT_FOUND

RequestURI=/spark/

Powered by Jetty://

this is correct, it means that your apache redirects to openfire. Are you sure, that RequestURI=/spark/ is correct? Then you httpbase in JWChat config should be “/spark/”, too.

sorry,i made a spelling mistake…

following is my apache httpd.conf:

<VirtualHost *>

ServerName localhost

DocumentRoot /var/www/jwchat

<Directory /var/www/jwchat>

Options +Indexes +MultiViews

</Directory>

AddDefaultCharset UTF-8

ProxyRequests On

ProxyPass /http-bind/ http://127.0.0.1:8080/http-bind/

ProxyPassReverse / localhost

</VirtualHost>

and following is my config.sys

var SITENAME = “localhost”;

var BACKENDS =

[

];

and here is the error message when inputing http:/127.0.0.1/http-bind/

HTTP ERROR: 404NOT_FOUND

RequestURI=/http-bind/

Powered by Jetty://

It does not allow me to login using jwchat

It is ok now. Thanks Amish Mehta from

https://sourceforge.net/forum/forum.php?thread_id=1802250&forum_id=317560

jwchat can now be used through both apache(http://localhost) and openfire jetty (http://localhost:8080/jwchat/index.html)

Following is the relative complete configuration. And my software version is jwchat 1.0 beta3 + openfire 3.3.3

1 config the httpd.conf file of apache

LoadModule proxy_module modules/mod_proxy.so

LoadModule proxy_http_module modules/mod_proxy_http.so

<VirtualHost *>

ServerName localhost

DocumentRoot /var/www/jwchat

<Directory /var/www/jwchat>

Options +MultiViews

</Directory>

AddDefaultCharset UTF-8

ProxyPass /http-bind/ http://127.0.0.1:8080/http-bind/[http://127.0.0.1:8080/http-bind/]

</VirtualHost>

2

Open config.js and comment all BACKENDS except ‘Native Binding’

3 Edit jsjac.js and set

var JSJACHBC_USE_BOSH_VER = false; /* true; */

4

Edit jwchat.html and just before line:

con.connect(oArg);

Add this line:

oArg.authtype = ‘nonsasl’;

5

Log into OpenFire as an administrator and add two server properties:

xmpp.httpbind.client.requests.polling = 0

xmpp.httpbind.client.requests.wait = 10

6 restart openfire and apache,then login through http://localhost

it is ok

try http://jeti.jabberstudio.org/ es un applet muy simple

this method works for me too.

Thank you!

Hi,

I agree that it has some strange problems, so one may really use another solution - for example Openfire Enterprise (which should become open source soon).

LG

Hi

… this method is working for me…but have small problem!

while accesing the web page at localhost, jwchat’s “Login Button” is disabled…

do i need to additionally configure anything in OpenFire or apache for this?or add anything?

plzz suggest…

I have Apache 2.2.

OpenFire 3.5.1

JWChat 1.0 beta3

thank you…