Problem with jwchat login proc with openfire

Help
shaselai
2011-02-21
2013-05-08
  • shaselai
    shaselai
    2011-02-21

    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:

    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
        </Directory>

        RewriteEngine on
         RewriteRule /http-bind/ http://localhost/index.html
        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

    </VirtualHost>

    jwchat: index.html

    <tr><td>&nbsp;</td><td><button type="submit" id='login_button' tabindex=5 enabled>Login</button></td></tr>  <- changed from disabled to enabled so the Login button on the main page can be enabled.

    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:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

    Error: syntax error
    Source File: http://openfirejwchat/http-bind/browsercheck.js
    Line: 1
    Source Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

    Error: syntax error
    Source File: http://openfirejwchat/http-bind/shared.js
    Line: 1
    Source Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

    Error: syntax error
    Source File: http://openfirejwchat/http-bind/switchStyle.js
    Line: 1
    Source Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

    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!