tigase XMPP服务器的域连接问题 [英] domain connection issues with tigase XMPP Server

查看:545
本文介绍了tigase XMPP服务器的域连接问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始研究tigase XMPP服务器,并在配置服务器以供Spark客户端连接时遇到问题.

服务器打印输出:

C:\Tigase>java -cp "jars/tigase-server.jar;libs/*" -Djdbc.drivers=com.mysql.jdbc.Driver tigase.server.XMPPServer --property-file etc/init.properties
2013-09-18 00:39:14  DNSResolver.<clinit>()              WARNING:  Resolving default host name took: 935
2013-09-18 00:39:14  ConfiguratorAbstract.parseArgs()    CONFIG:   Setting defaults: --property-file=etc/init.properties
2013-09-18 00:39:14  ConfiguratorAbstract.parseArgs()    CONFIG:   Loading initial properties from property file: etc/init.properties
2013-09-18 00:39:14  ConfiguratorAbstract.parseArgs()    CONFIG:   Added default config parameter: (--user-db=pgsql)
2013-09-18 00:39:14  ConfiguratorAbstract.parseArgs()    CONFIG:   Added default config parameter: (--admins=admin@BIB)
2013-09-18 00:39:14  ConfiguratorAbstract.parseArgs()    CONFIG:   Added default config parameter: (--user-db-uri=jdbc:postgresql://localhost/tigasedb?user=tigase&password=bib)
2013-09-18 00:39:14  ConfiguratorAbstract.parseArgs()    CONFIG:   Added default config parameter: (config-type=--gen-config-def)
2013-09-18 00:39:14  ConfiguratorAbstract.parseArgs()    CONFIG:   Added default config parameter: (--virt-hosts=BIB)
2013-09-18 00:39:14  ConfiguratorAbstract.parseArgs()    CONFIG:   Added default config parameter: (--debug=server)
2013-09-18 00:39:14  MessageRouter.addRegistrator()      INFO:     Adding registrator: Configurator
2013-09-18 00:39:14  MessageRouter.addComponent()        INFO:     Adding component: Configurator
2013-09-18 00:39:14  ConfiguratorAbstract.componentAdded()  CONFIG:  component: basic-conf
2013-09-18 00:39:14  ConfiguratorAbstract.setup()        CONFIG:   Setting up component: basic-conf
2013-09-18 00:39:14  ConfiguratorAbstract.setup()        CONFIG:   Component basic-conf defaults: {component-id=basic-conf@blos1, def-hostname=blos1, admins=[Ljava.lang.String;@506c6ce7, scripts-dir=scripts/admin, command/ALL=ADMIN, logging/.level=CONFIG, logging/handlers=java.util.logging.ConsoleHandler java.util.logging.FileHandler, logging/java.util.logging.ConsoleHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.ConsoleHandler.level=WARNING, logging/java.util.logging.FileHandler.append=true, logging/java.util.logging.FileHandler.count=5, logging/java.util.logging.FileHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.FileHandler.limit=10000000, logging/java.util.logging.FileHandler.pattern=logs/tigase.log, logging/tigase.useParentHandlers=true, logging/java.util.logging.FileHandler.level=ALL, logging/tigase.server.level=ALL, user-domain-repo-pool=tigase.db.UserRepositoryMDImpl, auth-domain-repo-pool=tigase.db.AuthRepositoryMDImpl, user-repo-po
ol-size=1, user-repo-class=pgsql, user-repo-url=jdbc:postgresql://localhost/tigasedb?user=tigase&password=bib, auth-repo-class=tigase.db.jdbc.TigaseCustomAuth, auth-repo-url=jdbc:postgresql://localhost/tigasedb?user=tigase&password=bib, ssl-container-class=tigase.io.SSLContextContainer, ssl-certs-location=certs/, ssl-def-cert-domain=default}
2013-09-18 00:39:14  ConfiguratorAbstract.setup()        CONFIG:   Component basic-conf configuration: {component-id=basic-conf@blos1, def-hostname=blos1, admins=[Ljava.lang.String;@506c6ce7, scripts-dir=scripts/admin, command/ALL=ADMIN, logging/.level=CONFIG, logging/handlers=java.util.logging.ConsoleHandler java.util.logging.FileHandler, logging/java.util.logging.ConsoleHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.ConsoleHandler.level=WARNING, logging/java.util.logging.FileHandler.append=true, logging/java.util.logging.FileHandler.count=5, logging/java.util.logging.FileHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.FileHandler.limit=10000000, logging/java.util.logging.FileHandler.pattern=logs/tigase.log, logging/tigase.useParentHandlers=true, logging/java.util.logging.FileHandler.level=ALL, logging/tigase.server.level=ALL, user-domain-repo-pool=tigase.db.UserRepositoryMDImpl, auth-domain-repo-pool=tigase.db.AuthRepositoryMDImpl, user-re
po-pool-size=1, user-repo-class=pgsql, user-repo-url=jdbc:postgresql://localhost/tigasedb?user=tigase&password=bib, auth-repo-class=tigase.db.jdbc.TigaseCustomAuth, auth-repo-url=jdbc:postgresql://localhost/tigasedb?user=tigase&password=bib, ssl-container-class=tigase.io.SSLContextContainer, ssl-certs-location=certs/, ssl-def-cert-domain=default}
Loading plugin: session-close=4 ...
Loading plugin: session-open=4 ...
Loading plugin: default-handler=4 ...
Loading plugin: jabber:iq:register=2 ...
Loading plugin: jabber:iq:auth=8 ...
Loading plugin: urn:ietf:params:xml:ns:xmpp-sasl=8 ...
Loading plugin: urn:ietf:params:xml:ns:xmpp-bind=2 ...
Loading plugin: urn:ietf:params:xml:ns:xmpp-session=2 ...
Loading plugin: jabber:iq:roster=16 ...
Loading plugin: jabber:iq:privacy=2 ...
Loading plugin: jabber:iq:version=2 ...
Loading plugin: http://jabber.org/protocol/stats=2 ...
Loading plugin: starttls=2 ...
Loading plugin: vcard-temp=2 ...
Loading plugin: http://jabber.org/protocol/commands=2 ...
Loading plugin: jabber:iq:private=2 ...
Loading plugin: urn:xmpp:ping=2 ...
Loading plugin: presence=16 ...
Loading plugin: disco=2 ...
Loading plugin: pep=2 ...
Loading plugin: amp=2 ...

我正在Windows上运行此版本,并尝试与XMPP客户端连接.我已经尝试过Spark和建议的PSI.

我刚刚组成了一个域"BIB",并试图通过admin @ BIB用户帐户连接到tigase服务器.但是,我看不到它完全连接或服务器没有任何反应.我可能错过了一些很小的东西.我看了tigase网站上的文档.这是基于从网站下载的.exe.我已经验证了在postgres库中也已经创建了该用户.因此,从这个角度来看,它是有效的.

已更新------------------ 因此,问题必须处理诸如Artur Mentioned之类的域名.但是,我只能让localhost运行,并且不确定为什么.我需要做一些外部窗口设置来使域可被psi识别吗

C:\Tigase>java -cp "jars/tigase-server.jar;libs/*" -Djdbc.drivers=com.mysql.jdbc.Driver tigase.server.XMPPServer --property-file etc/init.properties
2013-09-18 12:47:51  DNSResolver.<clinit>()              WARNING:  Resolving default host name took: 23
2013-09-18 12:47:51  ConfiguratorAbstract.parseArgs()    CONFIG:   Setting defaults: --property-file=etc/init.properties
2013-09-18 12:47:51  ConfiguratorAbstract.parseArgs()    CONFIG:   Loading initial properties from property file: etc/init.properties
2013-09-18 12:47:51  ConfiguratorAbstract.parseArgs()    CONFIG:   Added default config parameter: (--user-db=pgsql)
2013-09-18 12:47:51  ConfiguratorAbstract.parseArgs()    CONFIG:   Added default config parameter: (--admins=admin@localhost,admin@bib)
2013-09-18 12:47:51  ConfiguratorAbstract.parseArgs()    CONFIG:   Added default config parameter: (--user-db-uri=jdbc:postgresql://localhost/tigasedb?user=tigase&password=bib)
2013-09-18 12:47:51  ConfiguratorAbstract.parseArgs()    CONFIG:   Added default config parameter: (config-type=--gen-config-def)
2013-09-18 12:47:51  ConfiguratorAbstract.parseArgs()    CONFIG:   Added default config parameter: (--virt-hosts=bib,localhost,any-other-domain,BLOS1)
2013-09-18 12:47:51  ConfiguratorAbstract.parseArgs()    CONFIG:   Added default config parameter: (--debug=server,xmpp.XMPPIOService,cluster)
2013-09-18 12:47:51  MessageRouter.addRegistrator()      INFO:     Adding registrator: Configurator
2013-09-18 12:47:51  MessageRouter.addComponent()        INFO:     Adding component: Configurator
2013-09-18 12:47:51  ConfiguratorAbstract.componentAdded()  CONFIG:  component: basic-conf
2013-09-18 12:47:51  ConfiguratorAbstract.setup()        CONFIG:   Setting up component: basic-conf
2013-09-18 12:47:51  ConfiguratorAbstract.setup()        CONFIG:   Component basic-conf defaults: {component-id=basic-conf@blos1.bacn0.net, def-hostname=blos1.bacn0.net, admins=[Ljava.lang.String;@56a3ed9f, scripts-dir=scripts/admin, command/ALL=ADMIN, logging/.level=CONFIG, logging/handlers=java.util.logging.ConsoleHandler java.util.logging.FileHandler, logging/java.util.logging.ConsoleHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.ConsoleHandler.level=WARNING, logging/java.util.logging.FileHandler.append=true, logging/java.util.logging.FileHandler.count=5, logging/java.util.logging.FileHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.FileHandler.limit=10000000, logging/java.util.logging.FileHandler.pattern=logs/tigase.log, logging/tigase.useParentHandlers=true, logging/java.util.logging.FileHandler.level=ALL, logging/tigase.server.level=ALL, logging/tigase.xmpp.XMPPIOService.level=ALL, logging/tigase.cluster.level=ALL, user-domain-repo-pool
=tigase.db.UserRepositoryMDImpl, auth-domain-repo-pool=tigase.db.AuthRepositoryMDImpl, user-repo-pool-size=1, user-repo-class=pgsql, user-repo-url=jdbc:postgresql://localhost/tigasedb?user=tigase&password=bib, auth-repo-class=tigase.db.jdbc.TigaseCustomAuth, auth-repo-url=jdbc:postgresql://localhost/tigasedb?user=tigase&password=bib, ssl-container-class=tigase.io.SSLContextContainer, ssl-certs-location=certs/, ssl-def-cert-domain=default}
2013-09-18 12:47:51  ConfiguratorAbstract.setup()        CONFIG:   Component basic-conf configuration: {component-id=basic-conf@blos1.bacn0.net, def-hostname=blos1.bacn0.net, admins=[Ljava.lang.String;@56a3ed9f, scripts-dir=scripts/admin, command/ALL=ADMIN, logging/.level=CONFIG, logging/handlers=java.util.logging.ConsoleHandler java.util.logging.FileHandler, logging/java.util.logging.ConsoleHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.ConsoleHandler.level=WARNING, logging/java.util.logging.FileHandler.append=true, logging/java.util.logging.FileHandler.count=5, logging/java.util.logging.FileHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.FileHandler.limit=10000000, logging/java.util.logging.FileHandler.pattern=logs/tigase.log, logging/tigase.useParentHandlers=true, logging/java.util.logging.FileHandler.level=ALL, logging/tigase.server.level=ALL, logging/tigase.xmpp.XMPPIOService.level=ALL, logging/tigase.cluster.level=ALL, user-domain-repo
-pool=tigase.db.UserRepositoryMDImpl, auth-domain-repo-pool=tigase.db.AuthRepositoryMDImpl, user-repo-pool-size=1, user-repo-class=pgsql, user-repo-url=jdbc:postgresql://localhost/tigasedb?user=tigase&password=bib, auth-repo-class=tigase.db.jdbc.TigaseCustomAuth, auth-repo-url=jdbc:postgresql://localhost/tigasedb?user=tigase&password=bib, ssl-container-class=tigase.io.SSLContextContainer, ssl-certs-location=certs/, ssl-def-cert-domain=default}
Loading plugin: session-close=4 ...
Loading plugin: session-open=4 ...
Loading plugin: default-handler=4 ...
Loading plugin: jabber:iq:register=2 ...
Loading plugin: jabber:iq:auth=8 ...
Loading plugin: urn:ietf:params:xml:ns:xmpp-sasl=8 ...
Loading plugin: urn:ietf:params:xml:ns:xmpp-bind=2 ...
Loading plugin: urn:ietf:params:xml:ns:xmpp-session=2 ...
Loading plugin: jabber:iq:roster=16 ...
Loading plugin: jabber:iq:privacy=2 ...
Loading plugin: jabber:iq:version=2 ...
Loading plugin: http://jabber.org/protocol/stats=2 ...
Loading plugin: starttls=2 ...
Loading plugin: vcard-temp=2 ...
Loading plugin: http://jabber.org/protocol/commands=2 ...
Loading plugin: jabber:iq:private=2 ...
Loading plugin: urn:xmpp:ping=2 ...
Loading plugin: presence=16 ...
Loading plugin: disco=2 ...
Loading plugin: pep=2 ...
Loading plugin: amp=2 ...
2013-09-18 12:48:15  SocketThread.<clinit>()             WARNING:  33 socketReadThreads started.
2013-09-18 12:48:15  SocketThread.<clinit>()             WARNING:  33 socketWriteThreads started.

初始化文件:

--user-db = pgsql
--admins = admin@localhost,admin@bib    
--user-db-uri = jdbc:postgresql://localhost/tigasedb?user=tigase&password=bib
config-type = --gen-config-def
--virt-hosts = bib,localhost,any-other-domain,BLOS1
--debug = server,xmpp.XMPPIOService,cluster

使用当前配置,本地主机可以连接,但是当我尝试添加新帐户时 -Psi:添加帐户(名称:围嘴) -单击注册新帐户(服务器名称:bib,单击手动指定服务器主机/端口-主机:bib端口:52222),它将报错

与XMPP服务器通信时出错.详细信息:连接错误:无法连接到服务器"

不确定为什么只有本地主机可以工作,而不能将Bib作为tigase服务器的域名使用.

平台:Windows 8 版本:tigase-server-5.1.5-b3164

任何建议表示赞赏,谢谢 D

解决方案

K,所以我没有考虑,也缺少对网络/IP的了解.

在Windows上,您需要在主机文件中注册域名,也就是将您的窗口网络配置为重新识别域名

要查找您的主机文件: http://www.jafaloo.com/windows-hosts-file/

添加您要使用的任何域.

有关主机文件功能的更多信息: http://en.wikipedia.org/wiki/Hosts_%28file%29

这使一切正常.

I'm just started looking into the tigase XMPP server and having issue configuring the server for a spark client to connect.

server print out:

C:\Tigase>java -cp "jars/tigase-server.jar;libs/*" -Djdbc.drivers=com.mysql.jdbc.Driver tigase.server.XMPPServer --property-file etc/init.properties
2013-09-18 00:39:14  DNSResolver.<clinit>()              WARNING:  Resolving default host name took: 935
2013-09-18 00:39:14  ConfiguratorAbstract.parseArgs()    CONFIG:   Setting defaults: --property-file=etc/init.properties
2013-09-18 00:39:14  ConfiguratorAbstract.parseArgs()    CONFIG:   Loading initial properties from property file: etc/init.properties
2013-09-18 00:39:14  ConfiguratorAbstract.parseArgs()    CONFIG:   Added default config parameter: (--user-db=pgsql)
2013-09-18 00:39:14  ConfiguratorAbstract.parseArgs()    CONFIG:   Added default config parameter: (--admins=admin@BIB)
2013-09-18 00:39:14  ConfiguratorAbstract.parseArgs()    CONFIG:   Added default config parameter: (--user-db-uri=jdbc:postgresql://localhost/tigasedb?user=tigase&password=bib)
2013-09-18 00:39:14  ConfiguratorAbstract.parseArgs()    CONFIG:   Added default config parameter: (config-type=--gen-config-def)
2013-09-18 00:39:14  ConfiguratorAbstract.parseArgs()    CONFIG:   Added default config parameter: (--virt-hosts=BIB)
2013-09-18 00:39:14  ConfiguratorAbstract.parseArgs()    CONFIG:   Added default config parameter: (--debug=server)
2013-09-18 00:39:14  MessageRouter.addRegistrator()      INFO:     Adding registrator: Configurator
2013-09-18 00:39:14  MessageRouter.addComponent()        INFO:     Adding component: Configurator
2013-09-18 00:39:14  ConfiguratorAbstract.componentAdded()  CONFIG:  component: basic-conf
2013-09-18 00:39:14  ConfiguratorAbstract.setup()        CONFIG:   Setting up component: basic-conf
2013-09-18 00:39:14  ConfiguratorAbstract.setup()        CONFIG:   Component basic-conf defaults: {component-id=basic-conf@blos1, def-hostname=blos1, admins=[Ljava.lang.String;@506c6ce7, scripts-dir=scripts/admin, command/ALL=ADMIN, logging/.level=CONFIG, logging/handlers=java.util.logging.ConsoleHandler java.util.logging.FileHandler, logging/java.util.logging.ConsoleHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.ConsoleHandler.level=WARNING, logging/java.util.logging.FileHandler.append=true, logging/java.util.logging.FileHandler.count=5, logging/java.util.logging.FileHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.FileHandler.limit=10000000, logging/java.util.logging.FileHandler.pattern=logs/tigase.log, logging/tigase.useParentHandlers=true, logging/java.util.logging.FileHandler.level=ALL, logging/tigase.server.level=ALL, user-domain-repo-pool=tigase.db.UserRepositoryMDImpl, auth-domain-repo-pool=tigase.db.AuthRepositoryMDImpl, user-repo-po
ol-size=1, user-repo-class=pgsql, user-repo-url=jdbc:postgresql://localhost/tigasedb?user=tigase&password=bib, auth-repo-class=tigase.db.jdbc.TigaseCustomAuth, auth-repo-url=jdbc:postgresql://localhost/tigasedb?user=tigase&password=bib, ssl-container-class=tigase.io.SSLContextContainer, ssl-certs-location=certs/, ssl-def-cert-domain=default}
2013-09-18 00:39:14  ConfiguratorAbstract.setup()        CONFIG:   Component basic-conf configuration: {component-id=basic-conf@blos1, def-hostname=blos1, admins=[Ljava.lang.String;@506c6ce7, scripts-dir=scripts/admin, command/ALL=ADMIN, logging/.level=CONFIG, logging/handlers=java.util.logging.ConsoleHandler java.util.logging.FileHandler, logging/java.util.logging.ConsoleHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.ConsoleHandler.level=WARNING, logging/java.util.logging.FileHandler.append=true, logging/java.util.logging.FileHandler.count=5, logging/java.util.logging.FileHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.FileHandler.limit=10000000, logging/java.util.logging.FileHandler.pattern=logs/tigase.log, logging/tigase.useParentHandlers=true, logging/java.util.logging.FileHandler.level=ALL, logging/tigase.server.level=ALL, user-domain-repo-pool=tigase.db.UserRepositoryMDImpl, auth-domain-repo-pool=tigase.db.AuthRepositoryMDImpl, user-re
po-pool-size=1, user-repo-class=pgsql, user-repo-url=jdbc:postgresql://localhost/tigasedb?user=tigase&password=bib, auth-repo-class=tigase.db.jdbc.TigaseCustomAuth, auth-repo-url=jdbc:postgresql://localhost/tigasedb?user=tigase&password=bib, ssl-container-class=tigase.io.SSLContextContainer, ssl-certs-location=certs/, ssl-def-cert-domain=default}
Loading plugin: session-close=4 ...
Loading plugin: session-open=4 ...
Loading plugin: default-handler=4 ...
Loading plugin: jabber:iq:register=2 ...
Loading plugin: jabber:iq:auth=8 ...
Loading plugin: urn:ietf:params:xml:ns:xmpp-sasl=8 ...
Loading plugin: urn:ietf:params:xml:ns:xmpp-bind=2 ...
Loading plugin: urn:ietf:params:xml:ns:xmpp-session=2 ...
Loading plugin: jabber:iq:roster=16 ...
Loading plugin: jabber:iq:privacy=2 ...
Loading plugin: jabber:iq:version=2 ...
Loading plugin: http://jabber.org/protocol/stats=2 ...
Loading plugin: starttls=2 ...
Loading plugin: vcard-temp=2 ...
Loading plugin: http://jabber.org/protocol/commands=2 ...
Loading plugin: jabber:iq:private=2 ...
Loading plugin: urn:xmpp:ping=2 ...
Loading plugin: presence=16 ...
Loading plugin: disco=2 ...
Loading plugin: pep=2 ...
Loading plugin: amp=2 ...

I'm running this version on windows and trying to connect with a XMPP client. I've tried with both spark and the suggested PSI.

I just made up a domain "BIB" and tried to connect to the tigase server through the admin@BIB user account. However, I don't see it connect at all or any reaction from the server. I'm probably missing something really small. I looked at the documentation on the tigase website. This is based off the .exe download from the website. I've verified that the user has been created in the postgres library as well. So from that standpoint it is working.

Updated------------------ So the problem has to deal with the domain name like Artur Mentioned. However, I can only get localhost to work and not sure why. Is there some external window settings i have to do to make the domain recognizable by psi

C:\Tigase>java -cp "jars/tigase-server.jar;libs/*" -Djdbc.drivers=com.mysql.jdbc.Driver tigase.server.XMPPServer --property-file etc/init.properties
2013-09-18 12:47:51  DNSResolver.<clinit>()              WARNING:  Resolving default host name took: 23
2013-09-18 12:47:51  ConfiguratorAbstract.parseArgs()    CONFIG:   Setting defaults: --property-file=etc/init.properties
2013-09-18 12:47:51  ConfiguratorAbstract.parseArgs()    CONFIG:   Loading initial properties from property file: etc/init.properties
2013-09-18 12:47:51  ConfiguratorAbstract.parseArgs()    CONFIG:   Added default config parameter: (--user-db=pgsql)
2013-09-18 12:47:51  ConfiguratorAbstract.parseArgs()    CONFIG:   Added default config parameter: (--admins=admin@localhost,admin@bib)
2013-09-18 12:47:51  ConfiguratorAbstract.parseArgs()    CONFIG:   Added default config parameter: (--user-db-uri=jdbc:postgresql://localhost/tigasedb?user=tigase&password=bib)
2013-09-18 12:47:51  ConfiguratorAbstract.parseArgs()    CONFIG:   Added default config parameter: (config-type=--gen-config-def)
2013-09-18 12:47:51  ConfiguratorAbstract.parseArgs()    CONFIG:   Added default config parameter: (--virt-hosts=bib,localhost,any-other-domain,BLOS1)
2013-09-18 12:47:51  ConfiguratorAbstract.parseArgs()    CONFIG:   Added default config parameter: (--debug=server,xmpp.XMPPIOService,cluster)
2013-09-18 12:47:51  MessageRouter.addRegistrator()      INFO:     Adding registrator: Configurator
2013-09-18 12:47:51  MessageRouter.addComponent()        INFO:     Adding component: Configurator
2013-09-18 12:47:51  ConfiguratorAbstract.componentAdded()  CONFIG:  component: basic-conf
2013-09-18 12:47:51  ConfiguratorAbstract.setup()        CONFIG:   Setting up component: basic-conf
2013-09-18 12:47:51  ConfiguratorAbstract.setup()        CONFIG:   Component basic-conf defaults: {component-id=basic-conf@blos1.bacn0.net, def-hostname=blos1.bacn0.net, admins=[Ljava.lang.String;@56a3ed9f, scripts-dir=scripts/admin, command/ALL=ADMIN, logging/.level=CONFIG, logging/handlers=java.util.logging.ConsoleHandler java.util.logging.FileHandler, logging/java.util.logging.ConsoleHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.ConsoleHandler.level=WARNING, logging/java.util.logging.FileHandler.append=true, logging/java.util.logging.FileHandler.count=5, logging/java.util.logging.FileHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.FileHandler.limit=10000000, logging/java.util.logging.FileHandler.pattern=logs/tigase.log, logging/tigase.useParentHandlers=true, logging/java.util.logging.FileHandler.level=ALL, logging/tigase.server.level=ALL, logging/tigase.xmpp.XMPPIOService.level=ALL, logging/tigase.cluster.level=ALL, user-domain-repo-pool
=tigase.db.UserRepositoryMDImpl, auth-domain-repo-pool=tigase.db.AuthRepositoryMDImpl, user-repo-pool-size=1, user-repo-class=pgsql, user-repo-url=jdbc:postgresql://localhost/tigasedb?user=tigase&password=bib, auth-repo-class=tigase.db.jdbc.TigaseCustomAuth, auth-repo-url=jdbc:postgresql://localhost/tigasedb?user=tigase&password=bib, ssl-container-class=tigase.io.SSLContextContainer, ssl-certs-location=certs/, ssl-def-cert-domain=default}
2013-09-18 12:47:51  ConfiguratorAbstract.setup()        CONFIG:   Component basic-conf configuration: {component-id=basic-conf@blos1.bacn0.net, def-hostname=blos1.bacn0.net, admins=[Ljava.lang.String;@56a3ed9f, scripts-dir=scripts/admin, command/ALL=ADMIN, logging/.level=CONFIG, logging/handlers=java.util.logging.ConsoleHandler java.util.logging.FileHandler, logging/java.util.logging.ConsoleHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.ConsoleHandler.level=WARNING, logging/java.util.logging.FileHandler.append=true, logging/java.util.logging.FileHandler.count=5, logging/java.util.logging.FileHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.FileHandler.limit=10000000, logging/java.util.logging.FileHandler.pattern=logs/tigase.log, logging/tigase.useParentHandlers=true, logging/java.util.logging.FileHandler.level=ALL, logging/tigase.server.level=ALL, logging/tigase.xmpp.XMPPIOService.level=ALL, logging/tigase.cluster.level=ALL, user-domain-repo
-pool=tigase.db.UserRepositoryMDImpl, auth-domain-repo-pool=tigase.db.AuthRepositoryMDImpl, user-repo-pool-size=1, user-repo-class=pgsql, user-repo-url=jdbc:postgresql://localhost/tigasedb?user=tigase&password=bib, auth-repo-class=tigase.db.jdbc.TigaseCustomAuth, auth-repo-url=jdbc:postgresql://localhost/tigasedb?user=tigase&password=bib, ssl-container-class=tigase.io.SSLContextContainer, ssl-certs-location=certs/, ssl-def-cert-domain=default}
Loading plugin: session-close=4 ...
Loading plugin: session-open=4 ...
Loading plugin: default-handler=4 ...
Loading plugin: jabber:iq:register=2 ...
Loading plugin: jabber:iq:auth=8 ...
Loading plugin: urn:ietf:params:xml:ns:xmpp-sasl=8 ...
Loading plugin: urn:ietf:params:xml:ns:xmpp-bind=2 ...
Loading plugin: urn:ietf:params:xml:ns:xmpp-session=2 ...
Loading plugin: jabber:iq:roster=16 ...
Loading plugin: jabber:iq:privacy=2 ...
Loading plugin: jabber:iq:version=2 ...
Loading plugin: http://jabber.org/protocol/stats=2 ...
Loading plugin: starttls=2 ...
Loading plugin: vcard-temp=2 ...
Loading plugin: http://jabber.org/protocol/commands=2 ...
Loading plugin: jabber:iq:private=2 ...
Loading plugin: urn:xmpp:ping=2 ...
Loading plugin: presence=16 ...
Loading plugin: disco=2 ...
Loading plugin: pep=2 ...
Loading plugin: amp=2 ...
2013-09-18 12:48:15  SocketThread.<clinit>()             WARNING:  33 socketReadThreads started.
2013-09-18 12:48:15  SocketThread.<clinit>()             WARNING:  33 socketWriteThreads started.

init file:

--user-db = pgsql
--admins = admin@localhost,admin@bib    
--user-db-uri = jdbc:postgresql://localhost/tigasedb?user=tigase&password=bib
config-type = --gen-config-def
--virt-hosts = bib,localhost,any-other-domain,BLOS1
--debug = server,xmpp.XMPPIOService,cluster

With this current configuration, localhost can connect but when i try to add a new account - Psi: Add Account (Name:bib) - clicked register new account (Server name: bib, clicked manually specify server host/port - Host: bib port: 52222) and it would complain

"There was error communicating with the XMPP server. Details: Connection Error: Unable to connect to server"

Not sure why only localhost works and not bib as domain names for the tigase server.

Platform: Windows 8 Version: tigase-server-5.1.5-b3164

Any advice appreciated, Thanks D

解决方案

K so I wasn't thinking and my knowledge of network/IP is lacking.

On windows you need to register the domain name with the host file aka configure your window network to recongize the domain

To find your host file: http://www.jafaloo.com/windows-hosts-file/

Add whatever domain you want to use.

For more information on what a host file does: http://en.wikipedia.org/wiki/Hosts_%28file%29

This made everything work.

这篇关于tigase XMPP服务器的域连接问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆