The problem is that the webchat client does not check SRV records. For me it worked just fine when xmpp.domain was set to “jabber.example.org”, but when set to “example.org” and xmpp.fqdn to “jabber.example.org”, the webchat plugin fails to work.
If you set the server host to “example.org”, it can’t connect (well, it tries connecting to the IP address of “example.org”, which does not host an XMPP server, so it fails.)
If you set it to “jabber.example.org” the webchat setup finishes OK, but does not show available queues, and the following shows in the logs:
2008.08.04 15:07:12 Closing session due to incorrect hostname in stream header. Host: jabber.example.org. Connection: org.jivesoftware.openfire.net.SocketConnection@b4ee66 socket: Socket[addr=/xx.xx.xx.xx,port=39285,localport=5269] session: null
Is there a workaround that I’m not aware of? I’m just looking at the SparkWeb source, will post if I find anything useful. Moving the “example.org” website to the server hosting openfire is not an option
EDIT: I tried changing XMPPConnection(xmppConfig) to XMPPConnection(domain) in setup-index.jsp, which should check for SRV records, but it still does not work. Is restarting Openfire enough after changes to jsp files or do I have to do anything else? I also changed test-connection.jsp in a similar way.