Another sparkweb auth problem

I am running openfire 3.6a without any problems. Spark and Miranda clients can authenticate and a jwchat client can authenticate also.

Now I want to use sparkweb instead of jwchat, but I can not authenticate.

My sparkweb config looks like this:

return {
server: “jabber.dmz.uni-wh.de”,
location:window.location.href,
connectionType: “http”,
port: “7070”,
bindPath:"/http-bind/,
autoLogin: “false”
};

http://jabber.dmz.uni-wh.de:7070/http-bind/ shows:

HTTP ERROR: 400

BAD_REQUEST

RequestURI=/http-bind/

Powered by Jetty://

I think this OK.

When putting username und password in the sparkweb loginpage it says:

Problem authenticatingwith the server or you are not authorized to perform this operation.

What can be wrong?

Thank you for helping

Peter

my openfire warlog shows the following after trying to connect via sparkweb:

2008.10.08 13:52:12 Closing session due to exception: (SOCKET, R: /10.5.0.9:3122, L: /193.175.243.73:5222, S: 0.0.0.0/0.0.0.0:5222)
org.apache.mina.filter.codec.ProtocolDecoderException: java.lang.Exception: Disallowed character (Hexdump: 3C 70 6F 6C 69 63 79 2D 66 69 6C 65 2D 72 65 71 75 65 73 74 2F 3E 00)

Does this help finding what is going wrong?

Thank you,

Peter

Hello,

I’ve the same problem.

Try this instead:

return {

server: “jabber.dmz.uni-wh.de”,

bindPath: “/http-bind/”,

connectionType : “http”,

port: “7070”,

autoLogin: “false”

};

make sure there are no no-breaking spaces in your code.

The problem continues.

I’m using Openfire like a WebServer itself, so http://srmdespl01:9090/sparkweb/SparkWeb.html

warn.log

2008.10.21 17:03:15 Closing session due to exception: (SOCKET, R: /10.201.164.106:3831, L: /10.201.121.70:5222, S: 0.0.0.0/0.0.0.0:5222)
org.apache.mina.filter.codec.ProtocolDecoderException: java.lang.Exception: Disallowed character (Hexdump: 3C 70 6F 6C 69 63 79 2D 66 69 6C 65 2D 72 65 71 75 65 73 74 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(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
at java.lang.Thread.run(Unknown Source)
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

Thanks

I do not even know if this is possible. First sparkweb requires a fully qualified domain name (i.e. srmdespl01.domain.com). Second you are double porting it by doing that. You have port 9090 and 7070. You really should have it on a separate web server even if it is on the same box.