Project

General

Profile

How do I get to run Tigase HTTP API

daobiao zhu
Added almost 4 years ago

I have downloaded the latest source of Tigase HTTP API ,and has been added to the source of Tigase XMPP Server . How do I get to the configuration can be accessed through a browser By Rest API

etc.rar (9.36 KB) etc.rar this is my configuration

Replies (19)

Added by Wojciech Kapcia TigaseTeam almost 4 years ago

You need to include also tigase-web-ui.war (included in the tigase distribution) and after startup it is accessible under http://localhost:8080/ui/

Added by daobiao zhu almost 4 years ago

i can't acccess this url localhost:8080/rest/avatar/admin@top39

001.png (257 KB) 001.png my eclipse

Added by Wojciech Kapcia TigaseTeam almost 4 years ago

Could you elaborate on why you can't access it? Is Tigase listening on 8080 port? Have you placed rest scripts in proper location?

Added by daobiao zhu almost 4 years ago

yes tigase listening on 8080 when i access this url localhost:8080/ return results that 404 Not Found No context found for request ..and my rest scripts in this directory src/main/groovy/tigase/rest/

I think the problem should be out in the configuration . in config-dump.properties .i can't modify it .when i restart tigase server ,it will restore .I felt that it was not loaded rest module ,just load http module in config-

dump.properties.

Added by Wojciech Kapcia TigaseTeam almost 4 years ago

config-dump.properties is... a dump of the resulting configuration - including your own configuration and the defaults used by Tigase. Are there any exceptions in the logs?

Added by daobiao zhu almost 4 years ago

there is no log when i access this url localhost:8080/rest/avatar/admin@top39 .I think it should be the cause of this attribute is not set

http/api-keys[s]= . it's empty in config-dump.properties .But I do not know where to set its value . it should be http/api-keys[s]= open_access ?

Added by Wojciech Kapcia TigaseTeam almost 4 years ago

Please check tigase-console.log for exceptions. api-keys configuration has been described in Configuration wiki page, in principle if you don't want to use any API keys you should use @open_access@.

Added by daobiao zhu almost 4 years ago

to allow any request this property needs to be set to open_access ,

Added by daobiao zhu almost 4 years ago

componentInfo{Title=Tigase XML Tools, Version=3.5.0-SNAPSHOT-b231/8bf5e165, Class=tigase.xml.XMLUtils}

componentInfo{Title=Tigase Utils, Version=3.5.0-SNAPSHOT-b301/b165ba47, Class=tigase.util.ClassUtil}

componentInfo{Class=tigase.server.XMPPServer}

2015-03-24 16:34:59.247 [main] DNSResolver.() WARNING: Resolving default host name: top39 took: 15

2015-03-24 16:34:59.310 [main] ConfiguratorAbstract.parseArgs() CONFIG: Setting defaults: --property-file = etc/init-mysql.properties

2015-03-24 16:34:59.310 [main] ConfiguratorAbstract.parseArgs() CONFIG: Loading initial properties from property file: etc/init-mysql.properties

2015-03-24 16:34:59.310 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--comp-class-1=tigase.http.HttpMessageReceiver)

2015-03-24 16:34:59.310 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--user-db=mysql)

2015-03-24 16:34:59.310 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--admins=admin@10.0.1.129)

2015-03-24 16:34:59.310 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--user-db-uri=jdbc:mysql://localhost/tigasedb?user=root&password=root)

2015-03-24 16:34:59.310 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (config-type=--gen-config-def)

2015-03-24 16:34:59.310 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--virt-hosts=10.0.1.129)

2015-03-24 16:34:59.310 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--debug=server)

2015-03-24 16:34:59.310 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--comp-name-1=http)

2015-03-24 16:34:59.310 [main] AbstractMessageReceiver.setMaxQueueSize() FINEST: message-router maxQueueSize: 466, maxInQueueSize: 58, maxOutQueueSize: 932

2015-03-24 16:34:59.325 [main] MessageRouter.addRegistrator() INFO: Adding registrator: Configurator

2015-03-24 16:34:59.325 [main] MessageRouter.addComponent() INFO: Adding component:

2015-03-24 16:34:59.325 [main] ConfiguratorAbstract.componentAdded() CONFIG: component: basic-conf

2015-03-24 16:34:59.325 [main] ConfiguratorAbstract.setup() CONFIG: Setting up component: basic-conf

2015-03-24 16:34:59.325 [main] ConfiguratorAbstract.setup() CONFIG: Component basic-conf defaults: {component-id=basic-conf@top39, def-hostname=top39, admins=[Ljava.lang.String;@6763058b, 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-pool-size=10, data-repo-pool-size=10, user-repo-class=mysql, user-repo-url=jdbc:mysql://localhost/tigasedb?user=root&password=root, auth-repo-class=tigase.db.jdbc.TigaseCustomAuth, auth-repo-url=jdbc:mysql://localhost/tigasedb?user=root&password=root, ssl-container-class=tigase.io.SSLContextContainer, ssl-certs-location=certs/, ssl-def-cert-domain=default, config-dump-file=etc/config-dump.properties}

2015-03-24 16:34:59.325 [main] ConfiguratorAbstract.setup() CONFIG: Component basic-conf configuration: {component-id=basic-conf@top39, def-hostname=top39, admins=[Ljava.lang.String;@6763058b, 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-pool-size=10, data-repo-pool-size=10, user-repo-class=mysql, user-repo-url=jdbc:mysql://localhost/tigasedb?user=root&password=root, auth-repo-class=tigase.db.jdbc.TigaseCustomAuth, auth-repo-url=jdbc:mysql://localhost/tigasedb?user=root&password=root, ssl-container-class=tigase.io.SSLContextContainer, ssl-certs-location=certs/, ssl-def-cert-domain=default, config-dump-file=etc/config-dump.properties}

2015-03-24 16:34:59.325 [main] ConfiguratorAbstract.setProperties() INFO: Propeties size is 33, and here are all propeties: {component-id=basic-conf@top39, def-hostname=top39, admins=[Ljava.lang.String;@6763058b, 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-pool-size=10, data-repo-pool-size=10, user-repo-class=mysql, user-repo-url=jdbc:mysql://localhost/tigasedb?user=root&password=root, auth-repo-class=tigase.db.jdbc.TigaseCustomAuth, auth-repo-url=jdbc:mysql://localhost/tigasedb?user=root&password=root, ssl-container-class=tigase.io.SSLContextContainer, ssl-certs-location=certs/, ssl-def-cert-domain=default, config-dump-file=etc/config-dump.properties, shared-user-repo=null, shared-user-repo-params=null, shared-auth-repo=null, shared-auth-repo-params=null}

2015-03-24 16:35:01.852 [main] VHostManager.setProperties() WARNING: {10.0.1.129=Domain: 10.0.1.129, enabled: true, anonym: true, register: true, maxusers: 0, tls: false, s2sSecret: 91b40e2e-7978-4cf2-bad0-ea159b4196a9, domainFilter: ALL, domainFilterDomains: null, c2sPortsAllowed: null, saslAllowedMechanisms: null}

Loading component: amp :: componentInfo{Class=tigase.server.amp.AmpComponent}

Loading component: bosh :: componentInfo{Class=tigase.server.bosh.BoshConnectionManager}

Loading component: c2s :: componentInfo{Class=tigase.server.xmppclient.ClientConnectionManager}

2015-03-24 16:35:01.996 [main] ConfigRepository.setProperties() WARNING: Items list is not set in the configuration file!!

2015-03-24 16:35:02.230 [main] ConfigRepository.setProperties() WARNING: Items list is not set in the configuration file!!

2015-03-24 16:35:02.245 [main] ConfigRepository.setProperties() WARNING: Items list is not set in the configuration file!!

2015-03-24 16:35:02.277 [main] ConfigRepository.setProperties() WARNING: Items list is not set in the configuration file!!

Loading component: http :: componentInfo{Class=tigase.http.HttpMessageReceiver}

Loading component: monitor :: componentInfo{Class=tigase.server.monitor.MonitorComponent}

Loading component: s2s :: componentInfo{Class=tigase.server.xmppserver.S2SConnectionManager}

Loading plugin: session-close=4:1165 ...

Loading plugin: session-open=4:1165 ...

Loading plugin: default-handler=4:1165 ...

Loading plugin: jabber:iq:register=4:1165 ...

Loading plugin: jabber:iq:auth=4:1165 ...

Loading plugin: urn:ietf:params:xml:ns:xmpp-sasl=4:1165 ...

Loading plugin: urn:ietf:params:xml:ns:xmpp-bind=4:1165 ...

Loading plugin: urn:ietf:params:xml:ns:xmpp-session=4:1165 ...

Loading plugin: jabber:iq:roster=8:582 ...

Loading plugin: jabber:iq:privacy=4:1165 ...

Loading plugin: jabber:iq:version=4:1165 ...

Loading plugin: http://jabber.org/protocol/stats=4:1165 ...

Loading plugin: starttls=4:1165 ...

Loading plugin: vcard-temp=4:1165 ...

Loading plugin: http://jabber.org/protocol/commands=4:1165 ...

Loading plugin: jabber:iq:private=4:1165 ...

Loading plugin: urn:xmpp:ping=4:1165 ...

Loading plugin: presence=8:582 ...

Loading plugin: disco=4:1165 ...

Loading plugin: zlib=4:1165 ...

Loading plugin: amp=4:1165 ...

Loading plugin: message-carbons=4:1165 ...

Loading component: sess-man :: componentInfo{Class=tigase.server.xmppsession.SessionManager}

Loading component: ws2s :: componentInfo{Class=tigase.server.websocket.WebSocketClientConnectionManager}

2015-03-24 16:35:03.578 [main] ConfigurationCache.store() WARNING: Dumping server configuration to: etc/config-dump.properties

2015-03-24 17:00:01.218 [ConnectionOpenThread] SocketThread.() WARNING: 17 socketReadThreads started.

2015-03-24 17:00:01.234 [ConnectionOpenThread] SocketThread.() WARNING: 17 socketWriteThreads started.

this is my console log.

Added by daobiao zhu almost 4 years ago

why not have rest component ?

Added by Wojciech Kapcia TigaseTeam almost 4 years ago

It should be working correctly as it was loaded:

Loading component: http :: componentInfo{Class=tigase.http.HttpMessageReceiver}

in the current logs there is not enough indication why it doesn't work.

However I've just noticed that you've wrote:

and my rest scripts in this directory src/main/groovy/tigase/rest/

they need to be placed in scripts/admin/rest

Added by peirong jiang over 3 years ago

daobiao zhu wrote:

I have downloaded the latest source of Tigase HTTP API ,and has been added to the source of Tigase XMPP Server . How do I get to the configuration can be accessed through a browser By Rest API

I have resloved this problem. now is ok (I have used this version:7.0.2 release)

show log:

Loading component: amp :: componentInfo{Class=tigase.server.amp.AmpComponent}

Loading component: bosh :: componentInfo{Class=tigase.server.bosh.BoshConnectionManager}

Loading component: c2s :: componentInfo{Class=tigase.server.xmppclient.ClientConnectionManager}

Loading component: http :: componentInfo{Title=Tigase HTTP API component: Tigase HTTP API component, Version=1.1.0-b83/d51e1db6, Class=tigase.http.HttpMessageReceiver}

Loading component: monitor :: componentInfo{Class=tigase.server.monitor.MonitorComponent}

Loading component: muc :: componentInfo{Title=Tigase MUC, Version=2.3.0-b389/879168a9, Class=tigase.muc.MUCComponent}

Loading component: s2s :: componentInfo{Class=tigase.server.xmppserver.S2SConnectionManager}

Loading plugin: session-close=4:1165 ...

...

2015-08-13 16:20:34.652 [main] ConfigurationCache.store() WARNING: Dumping server configuration to: etc/config-dump.properties

my init.properties:

config-type=--gen-config-def

--admins=admin@10.5.1.48

--virt-hosts = 10.5.1.48

--debug=server

#--user-db=mysql

#--user-db-uri=jdbc:mysql://127.0.0.1:3306/tigasedb?user=root&password=waiqin365&useUnicode=true&characterEncoding=UTF-8&autoCreateUser=true

--user-db=pgsql

--user-db-uri=jdbc:postgresql://10.5.1.12/tigasedb?user=postgres&password=123456&useUnicode=true&characterEncoding=UTF-8&autoCreateUser=true

#http-api

--comp-name-1=http

--comp-class-1=tigase.http.HttpMessageReceiver

http/http/port[I]=8080

http/dns-webservice/active[B]=false

http/server-class[S]=tigase.http.java.JavaStandaloneHttpServer

hope can help you!

Added by peirong jiang over 3 years ago

I have resovled it.

it's fault to set request url to

http://10.5.1.12:8080/rest/adhoc/*admin*@10.5.1.12

must be the following (this's is correct):

http://10.5.1.12:8080/rest/adhoc/*sess-man*@10.5.1.12

  • +sess-man is a component.+*

you can found it ,'sess-man' has been loaded in the log file:/logs/tigase.log.0

.....(locally omit)

2015-08-19 13:35:16.199 [main] BasicComponent.loadScripts() CONFIG: basic-conf: skipping admin script scripts/admin/example_HelloWorld.groovy, id: hello, descr: [example] Hello World Script., group: null for component: sess-man or class: null

2015-08-19 13:35:16.199 [main] BasicComponent.loadScripts() CONFIG: basic-conf: skipping admin script scripts/admin/CreateNode.groovy, id: create-node, descr: Create node, group: null for component: pubsub or class: null

2015-08-19 13:35:16.199 [main] BasicComponent.loadScripts() CONFIG: basic-conf: skipping admin script scripts/admin/GetUserRoster.groovy, id: http://jabber.org/protocol/admin#get-user-roster, descr: Get User Roster, group: null for component: sess-man or class: null

2015-08-19 13:35:16.204 [main] BasicComponent.loadScripts() CONFIG: basic-conf: skipping admin script scripts/admin/PublishItem.groovy, id: publish-item, descr: Publish item to node, group: null for component: pubsub or class: null

2015-08-19 13:35:16.204 [main] BasicComponent.loadScripts() CONFIG: basic-conf: skipping admin script scripts/admin/GetListOfActiveUsers.groovy, id: http://jabber.org/protocol/admin#get-active-users, descr: Get list of active users, group: Statistics for component: sess-man or class: null

2015-08-19 13:35:16.205 [main] BasicComponent.loadScripts() CONFIG: basic-conf: skipping admin script scripts/admin/OAuthCredentials.groovy, id: oauth-credentials, descr: OAuth credentials, group: null for component: sess-man or class: null

..... (locally omit)

2015-08-19 13:35:22.136 [main] BasicComponent.loadScripts() CONFIG: http: Loading scripts from directory: scripts/admin/http

2015-08-19 13:35:22.137 [main] AbstractMessageReceiver.setProperties() CONFIG: http loaded incoming filter: tigase.server.filters.PacketCounter

2015-08-19 13:35:22.137 [main] AbstractMessageReceiver.setProperties() CONFIG: http loaded outgoing filter: tigase.server.filters.PacketCounter

2015-08-19 13:35:22.152 [main] ServerImpl.() CONFIG: HttpServer created http 0.0.0.0/0.0.0.0:8080

2015-08-19 13:35:22.157 [main] ConfigRepository.setProperties() CONFIG: Loading config item: open_access

2015-08-19 13:35:22.158 [main] ConfigRepository.setProperties() CONFIG: Loaded config item: tigase.http.rest.ApiKeyItem@1416cf9f

2015-08-19 13:35:22.158 [main] UserRepoRepository.setProperties() CONFIG: Using shared repository instance.

2015-08-19 13:35:22.734 [main] java_util_logging_Logger$info.call() INFO: loading handler from file = /IM/Tigase/tigase-server-7.0.2-b3821/scripts/rest/adhoc/AdHoc.groovy

2015-08-19 13:35:23.022 [main] java_util_logging_Logger$info.call() INFO: handler loaded

groovy scripts loaded info.

my note address:[[http://note.youdao.com/share/?id=d1a1c03230b98746de17de4ea7f0b685&type=note]],fyi.

Added by 连生 张 3 months ago

2018-12-13 16:26:46.187 [main]             MessageRouter.addRegistrator()     INFO:     Adding registrator: Configurator
2018-12-13 16:26:46.188 [main]             MessageRouter.addComponent()       INFO:     Adding component: 
2018-12-13 16:26:46.188 [main]             ConfiguratorAbstract.componentAdded()  CONFIG:  component: basic-conf
2018-12-13 16:26:46.188 [main]             ConfiguratorAbstract.setup()       CONFIG:   Setting up component: basic-conf
Class name: org.groovy.debug.hotswap.ResetAgent$TimestampFieldRemover
java.lang.LinkageError: loader (instance of  sun/misc/Launcher$AppClassLoader): attempted  duplicate class definition for name: "org/groovy/debug/hotswap/ResetAgent$TimestampFieldRemover"
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:348)
    at tigase.util.ClassUtil.getClassesFromNames(ClassUtil.java:222)
    at tigase.util.ClassUtil.getClassesFromClassPath(ClassUtil.java:173)
    at tigase.util.ClassUtil.getClassesImplementing(ClassUtil.java:288)
    at tigase.db.RepositoryFactory.<clinit>(RepositoryFactory.java:300)
    at tigase.conf.ConfiguratorAbstract.getDefaults(ConfiguratorAbstract.java:602)
    at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:492)
    at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:152)
    at tigase.conf.Configurator.componentAdded(Configurator.java:50)
    at tigase.conf.Configurator.componentAdded(Configurator.java:33)
    at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
    at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:138)
    at tigase.server.MessageRouter.setConfig(MessageRouter.java:644)
    at tigase.server.XMPPServer.start(XMPPServer.java:142)
    at tigase.server.XMPPServer.main(XMPPServer.java:112)
2018-12-13 16:26:48.715 [main]             ConfiguratorAbstract.setup()       CONFIG:   Component basic-conf defaults: {component-id=basic-conf@zhangliansheng, def-hostname=zhangliansheng, admins=[Ljava.lang.String;@4797023d, 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.level=ALL, logging/tigase.io.level=ALL, logging/tigase.net.level=ALL, logging/tigase.component.level=ALL, user-domain-repo-pool=tigase.db.UserRepositoryMDImpl, auth-domain-repo-pool=tigase.db.AuthRepositoryMDImpl, user-repo-pool-size=24, data-repo-pool-size=24, user-repo-class=mysql, user-repo-url=jdbc:mysql://localhost:3306/tigasedb?user=root&password=root, auth-repo-class=tigase.db.jdbc.TigaseCustomAuth, auth-repo-url=jdbc:mysql://localhost:3306/tigasedb?user=root&password=root, ssl-container-class=tigase.io.jdk18.SNISSLContextContainer, ssl-certs-location=certs/, ssl-def-cert-domain=default, config-dump-file=etc/config-dump.properties}
2018-12-13 16:26:48.715 [main]             ConfiguratorAbstract.setup()       CONFIG:   Component basic-conf configuration: {component-id=basic-conf@zhangliansheng, def-hostname=zhangliansheng, admins=[Ljava.lang.String;@4797023d, 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.level=ALL, logging/tigase.io.level=ALL, logging/tigase.net.level=ALL, logging/tigase.component.level=ALL, user-domain-repo-pool=tigase.db.UserRepositoryMDImpl, auth-domain-repo-pool=tigase.db.AuthRepositoryMDImpl, user-repo-pool-size=24, data-repo-pool-size=24, user-repo-class=mysql, user-repo-url=jdbc:mysql://localhost:3306/tigasedb?user=root&password=root, auth-repo-class=tigase.db.jdbc.TigaseCustomAuth, auth-repo-url=jdbc:mysql://localhost:3306/tigasedb?user=root&password=root, ssl-container-class=tigase.io.jdk18.SNISSLContextContainer, ssl-certs-location=certs/, ssl-def-cert-domain=default, config-dump-file=etc/config-dump.properties}
2018-12-13 16:26:48.716 [main]             ConfiguratorAbstract.setProperties()  INFO:  Propeties size is 37, and here are all propeties: {component-id=basic-conf@zhangliansheng, def-hostname=zhangliansheng, admins=[Ljava.lang.String;@4797023d, 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.level=ALL, logging/tigase.io.level=ALL, logging/tigase.net.level=ALL, logging/tigase.component.level=ALL, user-domain-repo-pool=tigase.db.UserRepositoryMDImpl, auth-domain-repo-pool=tigase.db.AuthRepositoryMDImpl, user-repo-pool-size=24, data-repo-pool-size=24, user-repo-class=mysql, user-repo-url=jdbc:mysql://localhost:3306/tigasedb?user=root&password=root, auth-repo-class=tigase.db.jdbc.TigaseCustomAuth, auth-repo-url=jdbc:mysql://localhost:3306/tigasedb?user=root&password=root, ssl-container-class=tigase.io.jdk18.SNISSLContextContainer, ssl-certs-location=certs/, ssl-def-cert-domain=default, config-dump-file=etc/config-dump.properties, shared-user-repo=null, shared-user-repo-params=null, shared-auth-repo=null, shared-auth-repo-params=null}
Thu Dec 13 16:26:49 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Thu Dec 13 16:26:49 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Thu Dec 13 16:26:49 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Thu Dec 13 16:26:49 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Thu Dec 13 16:26:49 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Thu Dec 13 16:26:49 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Thu Dec 13 16:26:49 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Thu Dec 13 16:26:49 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Thu Dec 13 16:26:49 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Thu Dec 13 16:26:49 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Thu Dec 13 16:26:49 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Thu Dec 13 16:26:49 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Thu Dec 13 16:26:49 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Thu Dec 13 16:26:49 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Thu Dec 13 16:26:49 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Thu Dec 13 16:26:49 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Thu Dec 13 16:26:49 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Thu Dec 13 16:26:49 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Thu Dec 13 16:26:49 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Thu Dec 13 16:26:49 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Thu Dec 13 16:26:49 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Thu Dec 13 16:26:49 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Thu Dec 13 16:26:49 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Thu Dec 13 16:26:49 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2018-12-13 16:26:49.318 [main]             SimpleCache.<init>()               WARNING:  Tigase cache turned off.
2018-12-13 16:26:50.302 [main]             VHostManager.setProperties()       WARNING:  RepoItems, size=1, items=[zhangliansheng]
2018-12-13 16:26:50.311 [main]             MessageRouterConfig.hasClassForServerComponent()  WARNING: Can't load component rest: tigase.http.rest.RestMessageReceiver
2018-12-13 16:26:50.358 [main]             SimpleCache.<init>()               WARNING:  Tigase cache turned off.
Loading component: amp :: componentInfo{Class=tigase.cluster.AmpComponentClustered}
2018-12-13 16:26:50.448 [main]             ConnectionManager.setProperties()  WARNING:  bosh last_minute_packets_limit = 2500
2018-12-13 16:26:50.448 [main]             ConnectionManager.setProperties()  WARNING:  bosh total_packets_limit = 0
2018-12-13 16:26:50.448 [main]             ConnectionManager.setProperties()  WARNING:  bosh last_minute_bin_limit = 20971520
2018-12-13 16:26:50.448 [main]             ConnectionManager.setProperties()  WARNING:  bosh total_bin_limit = 0
2018-12-13 16:26:50.449 [main]             ConnectionManager.setProperties()  WARNING:  Delaying opening ports of component: bosh
Loading component: bosh :: componentInfo{Class=tigase.cluster.BoshConnectionClustered}
Loading component: c2s :: componentInfo{Class=tigase.cluster.ClientConnectionClustered}
2018-12-13 16:26:50.459 [main]             ConnectionManager.setProperties()  WARNING:  c2s last_minute_packets_limit = 2500
2018-12-13 16:26:50.459 [main]             ConnectionManager.setProperties()  WARNING:  c2s total_packets_limit = 0
2018-12-13 16:26:50.459 [main]             ConnectionManager.setProperties()  WARNING:  c2s last_minute_bin_limit = 20971520
2018-12-13 16:26:50.460 [main]             ConnectionManager.setProperties()  WARNING:  c2s total_bin_limit = 0
2018-12-13 16:26:50.460 [main]             ConnectionManager.setProperties()  WARNING:  Delaying opening ports of component: c2s
2018-12-13 16:26:50.590 [main]             ConnectionManager.setProperties()  WARNING:  cl-comp last_minute_packets_limit = 26214400
2018-12-13 16:26:50.591 [main]             ConnectionManager.setProperties()  WARNING:  cl-comp total_packets_limit = 0
2018-12-13 16:26:50.591 [main]             ConnectionManager.setProperties()  WARNING:  cl-comp last_minute_bin_limit = 20971520000
2018-12-13 16:26:50.591 [main]             ConnectionManager.setProperties()  WARNING:  cl-comp total_bin_limit = 0
Loading component: cl-comp :: componentInfo{Class=tigase.cluster.ClusterConnectionManager}
2018-12-13 16:26:50.628 [main]             SimpleCache.<init>()               WARNING:  Tigase cache turned off.
Loading component: eventbus :: componentInfo{Class=tigase.disteventbus.component.EventBusComponent}
2018-12-13 16:26:51.014 [main]             RequestHandler.registerServlet()   WARNING:  null
java.lang.NullPointerException: Cannot get property 'length' on null object
    at org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:57)
    at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:169)
    at org.codehaus.groovy.runtime.callsite.NullCallSite.getProperty(NullCallSite.java:44)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:293)
    at tigase.http.rest.RestExtServlet.loadHandlers(RestExtServlet.groovy:56)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:166)
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:56)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:151)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:163)
    at tigase.http.rest.RestServlet.init(RestServlet.groovy:64)
    at javax.servlet.GenericServlet.init(GenericServlet.java:244)
    at tigase.http.java.RequestHandler.registerServlet(RequestHandler.java:173)
    at tigase.http.java.RequestHandler.<init>(RequestHandler.java:79)
    at tigase.http.java.JavaStandaloneHttpServer.deploy(JavaStandaloneHttpServer.java:154)
    at tigase.http.java.JavaStandaloneHttpServer.deploy(JavaStandaloneHttpServer.java:104)
    at tigase.http.HttpServer.deploy(HttpServer.java:102)
    at tigase.http.rest.RestModule.start(RestModule.java:162)
    at tigase.http.HttpMessageReceiver.reconfigure(HttpMessageReceiver.java:265)
    at tigase.http.HttpMessageReceiver.setProperties(HttpMessageReceiver.java:221)
    at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:519)
    at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:152)
    at tigase.conf.Configurator.componentAdded(Configurator.java:50)
    at tigase.conf.Configurator.componentAdded(Configurator.java:33)
    at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
    at tigase.server.MessageRouter.addComponent(MessageRouter.java:115)
    at tigase.server.MessageRouter.addRouter(MessageRouter.java:152)
    at tigase.server.MessageRouter.setProperties(MessageRouter.java:745)
    at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:519)
    at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:152)
    at tigase.conf.Configurator.componentAdded(Configurator.java:50)
    at tigase.conf.Configurator.componentAdded(Configurator.java:33)
    at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
    at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:138)
    at tigase.server.MessageRouter.setConfig(MessageRouter.java:644)
    at tigase.server.XMPPServer.start(XMPPServer.java:142)
    at tigase.server.XMPPServer.main(XMPPServer.java:112)

Startup error: could not start service

Added by Wojciech Kapcia TigaseTeam 3 months ago

Please use our distribution packages available from https://projects.tigase.org/projects/tigase-server/files.
It looks like you modified some binaries.

Added by 连生 张 3 months ago

Could not get any response
There was an error connecting to localhost:8080/rest/adhoc/sess-man@zhangliansheng.
Why this might have happened:
The server couldn't send a response:
Ensure that the backend is working properly
Self-signed SSL certificates are being blocked:
Fix this by turning off 'SSL certificate verification' in Settings > General
Proxy configured incorrectly
Ensure that proxy is configured correctly in Settings > Proxy
Request timeout:
Change request timeout in Settings > General

Added by Wojciech Kapcia TigaseTeam 3 months ago

Is Tigase correctly starting HTTP API component? Is it listening on 8080 port?

You should also correct your configuration - you have errors / undesired characters there:

--comp-name-1=\u00A0http
…
http/dns-webservice/active[B]=true\u00A0

Added by 连生 张 3 months ago

Thank you very much for your reply, but I found the 11th file could not be found when launching
May I ask which version has the eleventh file

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam 2 months ago

None of the versions has the 11th file. Tigase while launching load files checking if there is a next file (file with a bigger number), so at the end it will fail trying to load non-existing file.

    (1-19/19)