Unable using REST API

Cyrille Voluter
Added over 3 years ago


I have problems with using and setting up TIGASE HTTP REST API .

When I try to use send request with url like this :

http://myserver:8080/rest/user/admin@mydomain (with admin credential on basic authentication, with or without content-type header json or Xml)

I obtain only http error 500 (internal server fault)

In my server logs, I have:

java_util_logging_Logger$ SEVERE: exception processing request

java.lang.SecurityException: class "javax.servlet.http.HttpUpgradeHandler"'s signer information does not match signer information of other classes in the same package

at org.codehaus.groovy.reflection.CachedClass$3$

[sess-man tasks] ThreadExceptionHandler.uncaughtException() SEVERE: Uncaught thread: "sess-man tasks" exception

java.lang.NoSuchMethodError: java.util.concurrent.ConcurrentHashMap.keySet()Ljava/util/concurrent/ConcurrentHashMap$KeySetView;

   at tigase.server.xmppsession.SessionManager.everyMinute(

    at tigase.server.AbstractMessageReceiver$

    at java.util.TimerThread.mainLoop(

Here my configuration ( file :

--comp-class-1 = tigase.muc.cluster.MUCComponentClustered

--virt-hosts =,,

--user-db-uri = jdbc:mysql://localhost/tigasedb?user=tigase&password=Xmpp2015%21

--user-db = mysql

--admins =,

--comp-name-6 = message-archive

--comp-name-5 = http

--comp-name-4 = stun

--comp-name-3 = proxy

config-type = --gen-config-all

--comp-name-2 = pubsub

--comp-name-1 = muc

--cluster-mode = false

--sm-plugins = +message-archive-xep-0136,-jabber:iq:auth,+urn:ietf:params:xml:ns:xmpp-sasl,+urn:ietf:params:xml:ns:xmpp-bind,+urn:ietf:params:xml:ns:xmpp-session,+jabber:iq:register,+jabber:iq:roster,+prese$

--comp-class-6 = tigase.archive.MessageArchiveComponent

--debug = server,xmpp.impl,db,cluster

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

--comp-class-4 = tigase.stun.StunComponent

--comp-class-3 = tigase.socks5.Socks5ProxyComponent

--comp-class-2 = tigase.pubsub.cluster.PubSubComponentClustered





.jar-files are in ./home/user/jars

.html and .groovy-files are deployed into sub folders on ./home/user/scripts/rest

I used wizard installation on console mode, and all dependencies Jar-files needed for this modules ( servlet-api-3.1.jar and all into tigase-http-api-libraries.tar.gz).Does other file must be intalled ?

My configuration is :

Version : Tigase community ediion 7.0.2-b3821

Server : Linux UBUNTU 15.05 LTS on Azure VM over SSH

SGBD : MySQL 5.1 community edition in same server VM

Java and JDK version : java version "1.7.0_79", OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu1), OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode).

Thank you for helping to resolve those problems.

Replies (1)