Project

General

Profile

can not install tigase server and webapplication in the same server?

lv yulin
Added over 4 years ago

hello gays

can not install tigase server and webapplication in the same server?

my web app use a xmpp acount to login tigase to send server monitoring info to a gays,but get err like below in logs.

or domain configure wrong?

env

@ubuntu:~$ vi /opt/tigase/etc/init.properties

config-type=--gen-config-def

--admins=admin@p.long.com

--virt-hosts = p.long.com

--debug=server

java version "1.7.0_67"

Java(TM) SE Runtime Environment (build 1.7.0_67-b01)

Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

Ubuntu Version:

"Ubuntu 14.04 LTS"

logs

p.long.com:5622 Exception: XMPPError connecting to p.long.com:5622.; : remote-server-error(502)

    at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection.java:604)

    at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1026)

    at com.longmap.front.xmpp.XmppService$1.run(XmppService.java:282)

    at java.lang.Thread.run(Thread.java:745)

11:00:18.610 INFO com.octo.captcha.service.image.DefaultManageableImageCaptchaService - Init com.octo.captcha.service.captchastore.FastHashMapCaptchaStore

2014-08-19 11:00:18,826 [com.mchange.v2.log.MLog]-[INFO] MLog clients using log4j logging.


Replies (1)

Added by Wojciech Kapcia TigaseTeam over 4 years ago

lv yulin wrote:

p.long.com:5622 Exception: XMPPError connecting to p.long.com:5622.; : remote-server-error(502)

It seems you are trying to connect to Tigase or non-default port (5622) and by default, with minimal configuration Tigase supports only default ports: 5222,5223 (socket), 5280 (bosh), 5290 (websocket); hence exception in the client while trying to connect.

You can either:

  • configure your client to use default port;

  • configure Tigase to handle non-default ports:

--c2s-ports=5222,5223,5622
c2s/5622/port_type=plain

    (1-1/1)