Sparkweb don't connect with openfire 3.7.1 server (ubuntu 12.04)

Hello you tell me why the Spark program connects openfire server (Ubuntu Server 12.04) and if I try with sparkweb via browser, it tells me that they are not authorized? Sorry but I’m new and with all the advice I found on the internet I could not solve the problem. thanks