This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (5 pts)
9 Replies Last post: Mar 31, 2008 10:08 PM by it0511  
Josh Bronze 11 posts since
Sep 3, 2007
Currently Being Moderated

Oct 3, 2007 7:15 PM

Openfire and JWChat?

 

Hello again all,

 

 

I recently got Openfire 3.3.3 up and working fine on my local system.  I'm currently trying to figure this with apache, but it doesn't seem to be working correctly.  I've found very little useful information on making the two systems play nice together. 

 

 

I've configured the httpd to include a <VirtualHost> entry that looks like this.  This is running on localhost.

 

 

<VirtualHost *>

ServerName localhost

DocumentRoot "C:/mysite/jwchat/"

<Directory "C:/mysite/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>

 

 

JWChat itself is installed in the directory C:/mysite/jwchat.  It's config file looks like this (config.js)

 

 

var SITENAME = "localhost";

 

 

var BACKENDS = 

];

 

 

 

 

I can hit localhost:8080 and I see the login for jwchat, however I'm not able to actually log in to jwchat.  Is there any support available from openfire to make these two things work together?

 

 

Thanks.

 

 

Sabine Dinis Blochberger Gold 285 posts since
Oct 21, 2005
Currently Being Moderated
Oct 4, 2007 3:46 AM in response to: Josh
Re: Openfire and JWChat?
csciguy wrote:

 

Corrected code:

 


<VirtualHost *>
  ServerName localhost
  DocumentRoot "C:/mysite/jwchat/"
  <Directory "C:/mysite/jwchat/">
    Options +MultiViews
  </Directory>
  AddDefaultCharset UTF-8
  ProxyPass /http-bind/ http://127.0.0.1:8080/http-bind/
</VirtualHost>

//----

 var SITENAME = "localhost";
 
 
 var BACKENDS =  
  [  
   {  
     name:"OpenFire",  
     httpbase:"/http-bind/",  
     type:"binding",  
     servers_allowed:[SITENAME]  
   } 
  ];

 

Sabine Dinis Blochberger Gold 285 posts since
Oct 21, 2005
Currently Being Moderated
Oct 10, 2007 5:58 AM in response to: Josh
Re: Openfire and JWChat?

Turn on JwChats debugger, and check what the packet says right before the error. It's either a message from your webserver or OpenFire.

Sabine Dinis Blochberger Gold 285 posts since
Oct 21, 2005
Currently Being Moderated
Oct 15, 2007 4:26 AM in response to: Josh
Re: Openfire and JWChat?

In the file "config.js" change the lines


/* debugging options */
var DEBUG = true; // turn debugging on
var DEBUG_LVL = 4; // debug-level 0..4 (4 = very noisy)

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

 

just change

var DEBUG=false;

once you're done.

 

Edit: you need the files

DebugBottom.html
Debugger.html
Debugger.js
DebugTop.html

for the debugger to work

Sabine Dinis Blochberger Gold 285 posts since
Oct 21, 2005
Currently Being Moderated
Oct 17, 2007 3:45 AM in response to: Josh
Re: Openfire and JWChat?

Ok, I can see at least these issues.

 

Port 8080 is reserved for OpenFire, Apache has no business listening on it. I would expect OpenFire to write in the error log for not being able to open the port, depending on which server you start first.

 

If you use localhost as servername, you must set this as OpenFires FQDN, and use JIDs such as joe@localhost

 

For security, add the following to your VirtualHost paragraph


ProxyRequests Off
  <Proxy *>
    Order deny,allow
    Allow from all
  </Proxy>

 

Formatting your post is explained in the help (a blue circle with a question mark on it on top of where you write).

Bryan Tebow Bronze 1 posts since
Jan 9, 2008
Currently Being Moderated
Jan 9, 2008 10:11 AM in response to: Josh
Re: Openfire and JWChat?

Were you able to find a solution to the  "Service unavailable" error? I have prerry much the same setup WAMP/Openfire and I'm also getting the unavailable error.

it0511 Bronze 3 posts since
Mar 31, 2008
Currently Being Moderated
Mar 31, 2008 10:08 PM in response to: Josh
Re: Openfire and JWChat?

 

My God , There is a " Service Uavailable"  TOO!

 

 

Please help me!

 

 

DEBUG:

 

 

2008?4?1? 10:53:01 (level 2) func: unknown jid: test@localhost/jwchat pass: test 2008?4?1? 10:53:01 (level 2) func: unknown registered handler for event 'iq' 2008?4?1? 10:53:01 (level 2) func: unknown registered handler for event 'presence' 2008?4?1? 10:53:01 (level 2) func: unknown registered handler for event 'message' 2008?4?1? 10:53:01 (level 2) func: unknown registered handler for event 'message' 2008?4?1? 10:53:01 (level 2) func: unknown registered handler for event 'ondisconnect' 2008?4?1? 10:53:01 (level 2) func: unknown registered handler for event 'onconnect' 2008?4?1? 10:53:01 (level 2) func: unknown registered handler for event 'onerror' 2008?4?1? 10:53:01 (level 2) func: unknown httpbase: /http-bind/domain:localhost 2008?4?1? 10:53:02 (level 1) func: unknown initial response broken (status: 400) 2008?4?1? 10:53:02 (level 2) func: unknown handling event 'onerror'

 

 

More Like This

  • Retrieving data ...