Project

General

Profile

Unable using REST API

Cyrille Voluter
Added over 3 years ago

Hello,

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$log.call() 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$1.run(CachedClass.java:84)

[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(SessionManager.java:2211)

    at tigase.server.AbstractMessageReceiver$3.run(AbstractMessageReceiver.java:1247)

    at java.util.TimerThread.mainLoop(Timer.java:555)

Here my configuration (init.properties) file :

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

--virt-hosts = tigasebridge.cloudapp.net, newco.com, activation.newco.com

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

--user-db = mysql

--admins = admin@tigasebridge.cloudapp.net, admin@newco.com

--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

stun/stun-primary-ip=10.0.0.1

stun/stun-primary-port[I]=3478

stun/stun-secondary-ip=10.0.0.2

stun/stun-secondary-port[I]=7001

.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)

    (1-1/1)