我刚刚开始研究 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提到的域名。但是,我只能让 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) - 单击注册新帐户(服务器名称:围兜,单击手动指定服务器主机/端口 - 主机:围兜端口: 52222) 它会抱怨
“与 XMPP 服务器通信时出错。详细信息:连接错误:无法连接到服务器”
不知道为什么只有 localhost 有效,而不是 bib 作为 tigase 服务器的域名。
平台:Windows 8 版本:tigase-server-5.1.5-b3164
任何建议表示赞赏,谢谢 D