Spark web login problem

This is my first time with both openfire and sparkweb. I can see the login client which I access at:

http://localhost:7070/red5/sparkweb/ (from the machine that openfire and sparkweb is on)

or

http://myrealdomain.com:7070/red5/sparkweb/ (from a different machine to openfire and sparkweb)

but when I try to login I am taken back to the login page again. Very occassionally I get an ‘Accesss denied’ message but most of the time I get nothing.

In my warn.log file I get:

org.apache.mina.filter.codec.ProtocolDecoderException: java.lang.Exception: Disallowed character (Hexdump: 3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E 3D 22 31 2E 30 22 3F 3E 3C 66 6C 61 73 68 3A 73 74 72 65 61 6D 20 74 6F 3D 22 70 72 6F 64 69 61 2E 63 6F 2E 75 6B 22 20 78 6D 6C 6E 73 3D 22 6A 61 62 62 65 72 3A 63 6C 69 65 6E 74 22 20 78 6D 6C 6E 73 3A 66 6C 61 73 68 3D 22 68 74 74 70 3A 2F 2F 77 77 77 2E 6A 61 62 62 65 72 2E 63 6F 6D 2F 73 74 72 65 61 6D 73 2F 66 6C 61 73 68 22 20 76 65 72 73 69 6F 6E 3D 22 31 2E 30 22 20 2F 3E 00)
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecF ilter.java:170)
at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Ab stractIoFilterChain.java:299)
at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilt erChain.java:53)
at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceive d(AbstractIoFilterChain.java:648)
at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java :239)
at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(Execut orFilter.java:283)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java: 885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.Exception: Disallowed character
at org.jivesoftware.openfire.nio.XMLLightweightParser.read(XMLLightweightParser.ja va:210)
at org.jivesoftware.openfire.nio.XMPPDecoder.doDecode(XMPPDecoder.java:32)
at org.apache.mina.filter.codec.CumulativeProtocolDecoder.decode(CumulativeProtoco lDecoder.java:133)
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecF ilter.java:163)
… 9 more

I have tried quite a lot of different setting in SparkWeb.html but am not really sure what should go in there. The main ones I have tried are:

function jive_sparkweb_getConfig()
{
return {
server: “myrealdomain.com”,
connectionType: “socket”,
port: “5222”,
autologin: “false”
};
}

function jive_sparkweb_getConfig()
{
return {
server: “localhost”,
port: “7070”,
bindPath: "/http-bind/,
connectionType: “http”,
autologin: “false”
};
}

with various combinations of myrealdommain.com, localhost and spark.myrealdomain.com

Any suggestions?

I managed to solve this by looking at the igniterealtime.org configuration of their sparkweb application at:

http://www.igniterealtime.org/sparkweb/

The config I have used is simply:

function jive_sparkweb_getConfig()
{
     return {
          server: "mydomain.com",
          connectionType: "http",
          port: "7070"
     };
}

and I can now log in.

Thanks for the infor klogger! Helepd out big time and worked like magic!