Ok, i read through many threads and am not sure how to fix my current problem.
Settings:
config.js
var SITENAME = “openfirejwchat”;
Backends:
name:“Openfire binding”,
description:“Openfire server binding for JWChat”,
#httpbase:"/http-bind/",
httpbase:"/http-bind/",
type:“binding”,
servers_allowed:[SITENAME]
httpd.conf
<VirtualHost *>
ServerName openfirejwchat
DocumentRoot /usr/local/apache2/htdocs/jwchat-1.0
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory “/usr/local/apache2/htdocs/jwchat-1.0”>
Options +MultiViews -Indexes
RewriteEngine on
RewriteRule /http-bind/ http://localhost/index.html [P]
AddDefaultCharset UTF-8
ProxyRequests On
ProxyPass /http-bind/ http://127.0.0.1:8080/http-bind/
ProxyPass http-bind/ http://127.0.0.1:8080/http-bind/
ProxyPass /http-bind/ http://127.0.0.1:8080/http-bind/
ErrorLog /usr/local/apache2/logs/jwchat_log
LogLevel warn
ServerSignature Off
jwchat: index.html
So if I go to http://openfirejwchat/http-bind/ it takes me to the “Welcome to JWChat” page which is more or less stable. Here are some errors i saw on firefox error console when i LOADED the page:
Error: syntax error
Source File: http://openfirejwchat/http-bind/config.js
Line: 1
Source Code:
Error: syntax error
Source File: http://openfirejwchat/http-bind/browsercheck.js
Line: 1
Source Code:
Error: syntax error
Source File: http://openfirejwchat/http-bind/shared.js
Line: 1
Source Code:
Error: syntax error
Source File: http://openfirejwchat/http-bind/switchStyle.js
Line: 1
Source Code:
Error: SITENAME is not defined
Source File: http://openfirejwchat/http-bind/
Line: 249
Now after I inputted the username and password of existing user i got:
Error: DEFAULTRESOURCE is not defined
Source File: http://openfirejwchat/http-bind/?jid=admin&pass=password&res=&prio=10
Line: 113
AND the five errors from above.
I do not see any warnings/messages otherwise and openfire server doesn’t show any errors/warnings nor does Apache logs show any abnormality… i am not sure where to define the terms? am I suppose to hard code something? I ask because my setting is just like many others who got theirs working…
Openfire v 3.6.4
jwchat 1.0
apache 2.2
some help appreciated. thanks!