How can i integrate jwchat on Tomcat with openfire?

Hi,

I am working to integrate tomcat+jwchat & connect it with openfire.I followed following steps:

  1. Installed openfire 3.7.0.exe on port 9090.
  2. Installed tomcat on port 8080.
  3. Downloaded jwchat.war & put it inside webapps folder of tomcat.
  4. Mentioned following entry into server.xml under conf folder of tomcat

** **

  1. Put following entry in config.js of jwchat

var SITENAME = “localhost”;

where openfire is installed using localhost as server name.

var BACKENDS =

[

{

name:“Open Relay”,

description:“HTTP Binding backend”,

httpbase:"/jwchat",

type:“binding”,

default_server: SITENAME

}

];

Finally i started openfire & then jwchat separately on separate servers and used following url

http://localhost:8080/jwchat

I can see login page of jwchat but whenever i am trying to login, it is not able to login & i am redirected again to login page.

I am stuck up here & googled a lot but could not find anything relevant.

Please help me here.

P.S. I found a lot of articles talking about apache+jwcat integration like

http://oxpedia.org/wiki/index.php?title=Integrating_Jabber_(Wildfire,jwchat, MUCkl%29

but nothing around tomcat+jwchat integration. Is jwchat not being used with tomcat or is it obsolete to be used now a days?

Hi,

Also i found about JHS servlet, so i downloaded JHB from http://blog.jwchat.org/jhb/ & put it inside webapps of tomcat server foloowed by following updation in config.js of jwchat:

var BACKENDS =

[

{

name:“Open Relay”,

description:“HTTP Binding backend”,

httpbase:"/jwchat/JHB",

type:“binding”,

default_server: SITENAME

}

];

But could not get any lucky. I got these links from google saying its working for them but i am still empty handed:

http://translate.google.com/translate?hl=en&sl=zh-CN&u=http://www.360doc.com/con tent/11/0213/17/4171006_92740636.shtml&ei=ATxWTtyJMpK3hAfA1KmkDA&sa=X&oi=transla te&ct=result&resnum=6&ved=0CD4Q7gEwBThQ&prev=/search%3Fq%3Djwchat%252Btomcat%26s tart%3D80%26hl%3Den%26client%3Dfirefox-a%26sa%3DN%26rls%3Dorg.mozilla:en-US:offi cial%26biw%3D1152%26bih%3D703%26prmd%3Divnsfd

http://translate.googleusercontent.com/translate_c?hl=en&prev=/search%3Fq%3Djwch at%252Btomcat%26start%3D80%26hl%3Den%26client%3Dfirefox-a%26sa%3DN%26rls%3Dorg.m ozilla:en-US:official%26biw%3D1152%26bih%3D703%26prmd%3Divnsfd&rurl=translate.go ogle.com&sl=zh-CN&twu=1&u=http://www.iteye.com/topic/154697&usg=ALkJrhjFylc1yfhV B4v-qEdDJhJ8pB5nLQ

Can anyone help me here anyway as gotta find out a solution asap.

Thx a lot.

Any help…what so ever…please…

Hi,

Finally i managed to log into jwchat on tomcat. Trick is delete all unnecessary files from jwchat(html & js). Also delete extra extensions as .html.html & .js.js from files.

Finally put computer name in** var SITENAME = “YOUR COMPUTER NAME” **in config.js.

But as soon as i login, i see service unavailable popup. Now i am trying to figure out how to crack it. I am checking it on IE 7 and FF 6.

What should i do now?Please hele me.

A while back I did work with JwChat. Search for JwChat5 . You might find the source code. I have since lost it.