Project

General

Profile

How to run HTTP API?

Maciej Bursztynowski
Added almost 6 years ago

It's not obvious for me how to run HTTP API.

Wiki says:Following libraries are needed [...]

I found it on Internet, but why there is no package with them?

Where to copy it? If jars directory is correct, I've added

--comp-name-3=rest

--comp-class-3=tigase.http.rest.RestMessageReceiver

rest/use-local-server=true

to init.properties.

Iptables rules are set to accept connection on port 8080.

Using: http://my.domain.com:8080/rest/avatar/mylogin@my.domain.com gives me nothing.

linux command "netstat -tunlp" doesn't show that some app is listening on 8080 port.

What else I can do ?


Replies (12)

Added by Wojciech Kapcia TigaseTeam over 5 years ago

Apologies for lack of dependencies archive - I've added such to the Files section of the project and updated wiki page.

jars/ directory is correct. Adding rest component to the init.properties is enough to run the component.

Are there any exceptions in the logs (tigase-console.log and tigase.log.0)?

On which ports tigase actually listen? (could you grep for tigase pid and share output?)

Added by Maciej Bursztynowski over 5 years ago

Hi, sorry for my absence, but there is netstat

  1. netstat -tunlp | grep 10417

tcp 0 0 :::5280 :::* LISTEN 10417/java

tcp 0 0 :::5222 :::* LISTEN 10417/java

tcp 0 0 :::5223 :::* LISTEN 10417/java

tcp 0 0 :::5290 :::* LISTEN 10417/java

tcp 0 0 :::5269 :::* LISTEN 10417/java

tcp 0 0 :::1080 :::* LISTEN 10417/java

I can't see any exceptions in the logs in tigase-console.log nor tigase.log.0

Added by Wojciech Kapcia TigaseTeam over 5 years ago

  • Can you list files in jars/ directory?

  • Do you have in the logs entries regarding loading rest component as message receiver? e.g.

MessageRouter.setProperties()      FINER:    Loading and registering message receiver: rest
MessageRouter.addRouter()          INFO:     Adding receiver: RestMessageReceiver

Added by Maciej Bursztynowski over 5 years ago

There is a problem, but I don't know why.

  1. grep rest tigase-console.log

@

2013-07-31 10:13:42.594 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--comp-name-4=rest)

2013-07-31 10:13:42.604 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--comp-class-4=tigase.http.rest.RestMessageReceiver

@

#grep rest tigase.log.0

@

2013-07-31 10:13:46.474 [main] BasicComponent.loadScripts() CONFIG: basic-conf: skipping admin script for component: rest

2013-07-31 10:13:49.098 [main] ConfiguratorAbstract.setup() CONFIG: Component message-router defaults: {component-id=message-router@localhost.localdomain, def-hostname=localhost.localdomain, admins=[Ljava.lang.String;@628704, scripts-dir=scripts/admin, command/ALL=ADMIN, max-queue-size=5060, scheduler-threads=1, incoming-filters=tigase.server.filters.PacketCounter, outgoing-filters=tigase.server.filters.PacketCounter, components/msg-receivers/pubsub.class=tigase.pubsub.PubSubComponent, components/msg-receivers/pubsub.active=true, components/msg-receivers/rest.class=tigase.http.rest.RestMessageReceiver, components/msg-receivers/rest.active=true, components/msg-receivers/message-archive.class=tigase.archive.MessageArchiveComponent, components/msg-receivers/message-archive.active=true, components/msg-receivers/proxy.class=tigase.socks5.Socks5ProxyComponent, components/msg-receivers/proxy.active=true, components/msg-receivers/muc.class=tigase.muc.MUCComponent, components/msg-receivers/muc.active=true, components/msg-receivers/id-names=[Ljava.lang.String;@8e4805, components/msg-receivers/bosh.class=tigase.server.bosh.BoshConnectionManager, components/msg-receivers/bosh.active=true, components/msg-receivers/c2s.class=tigase.server.xmppclient.ClientConnectionManager, components/msg-receivers/c2s.active=true, components/msg-receivers/monitor.class=tigase.server.monitor.MonitorComponent, components/msg-receivers/monitor.active=true, components/msg-receivers/s2s.class=tigase.server.xmppserver.S2SConnectionManager, components/msg-receivers/s2s.active=true, components/msg-receivers/sess-man.class=tigase.server.xmppsession.SessionManager, components/msg-receivers/sess-man.active=true, components/msg-receivers/srecv.class=tigase.server.sreceiver.StanzaReceiver, components/msg-receivers/srecv.active=true, components/msg-receivers/ssend.class=tigase.server.ssender.StanzaSender, components/msg-receivers/ssend.active=true, components/msg-receivers/ws2s.class=tigase.server.websocket.WebSocketClientConnectionManager, components/msg-receivers/ws2s.active=true, components/registrators/id-names=[Ljava.lang.String;@11a4bd4, components/registrators/vhost-man.class=tigase.vhosts.VHostManager, components/registrators/vhost-man.active=true, components/registrators/stats.class=tigase.stats.StatisticsCollector, components/registrators/stats.active=true, hostnames=[Ljava.lang.String;@16877f8, disco-name=Tigase, disco-show-version=true, updates-checking=true, updates-checking-interval=7}

2013-07-31 10:13:49.099 [main] ConfiguratorAbstract.setup() CONFIG: Component message-router configuration: {component-id=message-router@localhost.localdomain, def-hostname=localhost.localdomain, admins=[Ljava.lang.String;@628704, scripts-dir=scripts/admin, command/ALL=ADMIN, max-queue-size=5060, scheduler-threads=1, incoming-filters=tigase.server.filters.PacketCounter, outgoing-filters=tigase.server.filters.PacketCounter, components/msg-receivers/pubsub.class=tigase.pubsub.PubSubComponent, components/msg-receivers/pubsub.active=true, components/msg-receivers/rest.class=tigase.http.rest.RestMessageReceiver, components/msg-receivers/rest.active=true, components/msg-receivers/message-archive.class=tigase.archive.MessageArchiveComponent, components/msg-receivers/message-archive.active=true, components/msg-receivers/proxy.class=tigase.socks5.Socks5ProxyComponent, components/msg-receivers/proxy.active=true, components/msg-receivers/muc.class=tigase.muc.MUCComponent, components/msg-receivers/muc.active=true, components/msg-receivers/id-names=[Ljava.lang.String;@8e4805, components/msg-receivers/bosh.class=tigase.server.bosh.BoshConnectionManager, components/msg-receivers/bosh.active=true, components/msg-receivers/c2s.class=tigase.server.xmppclient.ClientConnectionManager, components/msg-receivers/c2s.active=true, components/msg-receivers/monitor.class=tigase.server.monitor.MonitorComponent, components/msg-receivers/monitor.active=true, components/msg-receivers/s2s.class=tigase.server.xmppserver.S2SConnectionManager, components/msg-receivers/s2s.active=true, components/msg-receivers/sess-man.class=tigase.server.xmppsession.SessionManager, components/msg-receivers/sess-man.active=true, components/msg-receivers/srecv.class=tigase.server.sreceiver.StanzaReceiver, components/msg-receivers/srecv.active=true, components/msg-receivers/ssend.class=tigase.server.ssender.StanzaSender, components/msg-receivers/ssend.active=true, components/msg-receivers/ws2s.class=tigase.server.websocket.WebSocketClientConnectionManager, components/msg-receivers/ws2s.active=true, components/registrators/id-names=[Ljava.lang.String;@11a4bd4, components/registrators/vhost-man.class=tigase.vhosts.VHostManager, components/registrators/vhost-man.active=true, components/registrators/stats.class=tigase.stats.StatisticsCollector, components/registrators/stats.active=true, hostnames=[Ljava.lang.String;@16877f8, disco-name=Tigase, disco-show-version=true, updates-checking=true, updates-checking-interval=7}

2013-07-31 10:13:49.155 [main] BasicComponent.loadScripts() CONFIG: message-router: skipping admin script for component: rest

2013-07-31 10:13:49.612 [main] BasicComponent.loadScripts() CONFIG: vhost-man: skipping admin script for component: rest

2013-07-31 10:13:50.602 [main] BasicComponent.loadScripts() CONFIG: stats: skipping admin script for component: rest

2013-07-31 10:13:50.911 [main] ConnectionManager.getDefaults() CONFIG: bosh defaults: {--test=false, config-type=--gen-config-all, --property-file=etc/init.properties, --comp-class-1=tigase.muc.MUCComponent, --virt-hosts=labo.4prm.com, --user-db-uri=jdbc:mysql://localhost/tigase?user=root&password=labo4P&useUnicode=true&characterEncoding=UTF-8, --user-db=mysql, --amp-security-level=STRICT, --admins=maciek2@labo.4prm.com,kdabrowski@labo.4prm.com, --comp-name-5=pubsub, --comp-name-4=rest, --comp-name-3=message-archive, --comp-name-2=proxy, --comp-name-1=muc, --cluster-mode=false, --sm-plugins=-jabber:iq:register,jabber:iq:auth,+message-archive-xep-0136,amp,-message,-msgoffline,+jabber:iq:roster-dynamic,+pep,+pubsub, --amp-repo-uri=jdbc:mysql://localhost/tigase?user=root&password=labo4P, --debug=server, --comp-class-5=tigase.pubsub.PubSubComponent, --comp-class-4=tigase.http.rest.RestMessageReceiver, --comp-class-3=tigase.archive.MessageArchiveComponent, --comp-class-2=tigase.socks5.Socks5ProxyComponent}

2013-07-31 10:13:51.074 [main] BasicComponent.loadScripts() CONFIG: bosh: skipping admin script for component: rest

2013-07-31 10:13:51.266 [main] ConnectionManager.getDefaults() CONFIG: c2s defaults: {--test=false, config-type=--gen-config-all, --property-file=etc/init.properties, --comp-class-1=tigase.muc.MUCComponent, --virt-hosts=labo.4prm.com, --user-db-uri=jdbc:mysql://localhost/tigase?user=root&password=labo4P&useUnicode=true&characterEncoding=UTF-8, --user-db=mysql, --amp-security-level=STRICT, --admins=maciek2@labo.4prm.com,kdabrowski@labo.4prm.com, --comp-name-5=pubsub, --comp-name-4=rest, --comp-name-3=message-archive, --comp-name-2=proxy, --comp-name-1=muc, --cluster-mode=false, --sm-plugins=-jabber:iq:register,jabber:iq:auth,+message-archive-xep-0136,amp,-message,-msgoffline,+jabber:iq:roster-dynamic,+pep,+pubsub, --amp-repo-uri=jdbc:mysql://localhost/tigase?user=root&password=labo4P, --debug=server, --comp-class-5=tigase.pubsub.PubSubComponent, --comp-class-4=tigase.http.rest.RestMessageReceiver, --comp-class-3=tigase.archive.MessageArchiveComponent, --comp-class-2=tigase.socks5.Socks5ProxyComponent}

2013-07-31 10:13:51.337 [main] BasicComponent.loadScripts() CONFIG: c2s: skipping admin script for component: rest

2013-07-31 10:13:51.568 [main] BasicComponent.loadScripts() CONFIG: message-archive: skipping admin script for component: rest

2013-07-31 10:13:52.214 [main] BasicComponent.loadScripts() CONFIG: monitor: skipping admin script for component: rest

2013-07-31 10:13:52.850 [main] BasicComponent.loadScripts() CONFIG: muc: skipping admin script for component: rest

2013-07-31 10:13:53.132 [main] BasicComponent.loadScripts() CONFIG: proxy: skipping admin script for component: rest

2013-07-31 10:13:53.261 [main] BasicComponent.loadScripts() CONFIG: pubsub: skipping admin script for component: rest

2013-07-31 10:13:53.545 [main] ConnectionManager.getDefaults() CONFIG: s2s defaults: {--test=false, config-type=--gen-config-all, --property-file=etc/init.properties, --comp-class-1=tigase.muc.MUCComponent, --virt-hosts=labo.4prm.com, --user-db-uri=jdbc:mysql://localhost/tigase?user=root&password=labo4P&useUnicode=true&characterEncoding=UTF-8, --user-db=mysql, --amp-security-level=STRICT, --admins=maciek2@labo.4prm.com,kdabrowski@labo.4prm.com, --comp-name-5=pubsub, --comp-name-4=rest, --comp-name-3=message-archive, --comp-name-2=proxy, --comp-name-1=muc, --cluster-mode=false, --sm-plugins=-jabber:iq:register,jabber:iq:auth,+message-archive-xep-0136,amp,-message,-msgoffline,+jabber:iq:roster-dynamic,+pep,+pubsub, --amp-repo-uri=jdbc:mysql://localhost/tigase?user=root&password=labo4P, --debug=server, --comp-class-5=tigase.pubsub.PubSubComponent, --comp-class-4=tigase.http.rest.RestMessageReceiver, --comp-class-3=tigase.archive.MessageArchiveComponent, --comp-class-2=tigase.socks5.Socks5ProxyComponent}

2013-07-31 10:13:53.774 [main] BasicComponent.loadScripts() CONFIG: s2s: skipping admin script for component: rest

2013-07-31 10:13:59.483 [main] BasicComponent.loadScripts() CONFIG: sess-man: skipping admin script for component: rest

2013-07-31 10:14:09.054 [main] BasicComponent.loadScripts() CONFIG: srecv: skipping admin script for component: rest

2013-07-31 10:14:10.329 [main] StanzaReceiver.loadTasksFromRepository() INFO: Loaded data: subscription-restr, value: MODERATED

2013-07-31 10:14:10.331 [main] StanzaReceiver.loadTasksFromRepository() INFO: Loaded data: subscription-restr-regex, value: .*

2013-07-31 10:14:10.790 [main] BasicComponent.loadScripts() CONFIG: ssend: skipping admin script for component: rest

@

there is my full init.properties file:

@

--cluster-mode = false

config-type = --gen-config-all

--debug = server

--user-db = mysql

--admins = 1@mydomain.com, 2@mydomain.com

--user-db-uri = jdbc:mysql://localhost/tigase?user=u&password=p&useUnicode=true&characterEncoding=UTF-8

--virt-hosts = mydomain.com

--sm-plugins = -jabber:iq:register,+jabber:iq:auth,+message-archive-xep-0136,amp,-message,-msgoffline,+jabber:iq:roster-dynamic,+pep,+pubsub

--amp-repo-uri=jdbc:mysql://localhost/tigase?user=u&password=p

--amp-security-level=STRICT

sess-man/plugins-conf/amp/amp-jid=amp@mydomain.com

--comp-name-1 = muc

--comp-class-1 = tigase.muc.MUCComponent

--comp-name-2 = proxy

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

--comp-name-3 = message-archive

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

--comp-name-4 = rest

--comp-class-4 = tigase.http.rest.RestMessageReceiver

--comp-name-5 = pubsub

--comp-class-5 = tigase.pubsub.PubSubComponent

sess-man/plugins-conf/pubsub/pubsub-component = pubsub.mydomain.com

rest/use-local-server = true

message-archive/archive-repo-uri = jdbc:mysql://localhost/archiwum?user=u&password=p&useUnicode=true&characterEncoding=UTF-8

@

Added by Wojciech Kapcia TigaseTeam over 5 years ago

please try adding type to the configuratin property as follows:

rest/use-local-server[B]=true

right now it seems that the component is not loaded at all (no information about loading component) but there should be any kind of exception in the logs...

Added by Maciej Bursztynowski over 5 years ago

I've tried with rest/use-local-server[B]=true.

It doesn't chcange anything :(

I attach full logs.

tigase-console.log (9.17 KB) tigase-console.log Tigase-console.log
tigase.log.0 (1 MB) tigase.log.0 Tigase.log.0

Added by Wojciech Kapcia TigaseTeam over 5 years ago

  • which exact Tigase version are you using?

  • can you provide listings of jars/ and /libs directories?

Added by Maciej Bursztynowski over 5 years ago

  1. Tigase 5.2.0 beta 2

2.

# ls -l ./jars
razem 20288
-rw-r--r-- 1 root root 12255409 cze 27 19:01 groovy-all-2.1.0.jar
-rw-r--r-- 1 root root   200387 lip  1  2012 javax.servlet_3.0.0.v201112011016.jar
-rw-r--r-- 1 root root   200387 maj  6 17:16 javax.servlet.jar
-rw-r--r-- 1 root root  1171540 cze 27 19:01 jdbc-mysql.jar
-rw-r--r-- 1 root root  1946575 maj  6 22:36 jdmkrt.jar
-rw-r--r-- 1 root root    21146 maj  6 17:16 jetty-continuation.jar
-rw-r--r-- 1 root root    60749 lip 15 11:25 jetty-deploy.jar
-rw-r--r-- 1 root root    95691 maj  6 17:16 jetty-http.jar
-rw-r--r-- 1 root root   103285 maj  6 17:16 jetty-io.jar
-rw-r--r-- 1 root root    89693 maj  6 17:16 jetty-security.jar
-rw-r--r-- 1 root root   347872 maj  6 17:16 jetty-server.jar
-rw-r--r-- 1 root root    98935 maj  6 17:16 jetty-servlet.jar
-rw-r--r-- 1 root root   284472 maj  6 17:16 jetty-util.jar
-rw-r--r-- 1 root root   110161 lip 15 11:25 jetty-webapp.jar
-rw-r--r-- 1 root root    38982 lip 15 11:25 jetty-xml.jar
-rw-r--r-- 1 root root    28331 lip 24  2012 tclmt-1.0.0-SNAPSHOT.jar
-rw-r--r-- 1 root root    92900 lip  3 15:35 tigase-extras.jar
-rw-r--r-- 1 root root    44613 lip  3 15:35 tigase-message-archiving.jar
-rw-r--r-- 1 root root   145646 lip 10 16:11 tigase-muc.jar
-rw-r--r-- 1 root root   357636 lip  3 15:35 tigase-pubsub.jar
-rw-r--r-- 1 root root  2280560 lip  3 15:43 tigase-server.jar
-rw-r--r-- 1 root root    92669 lip  3 15:35 tigase-socks5.jar
-rw-r--r-- 1 root root    20376 lip  3 15:35 tigase-stun.jar
-rw-r--r-- 1 root root   371144 lip  3 15:34 tigase-utils.jar
-rw-r--r-- 1 root root    75497 lip  3 15:34 tigase-xmltools.jar
# ls -l ./libs
razem 6504
-rw-r--r-- 1 root root 6102283 sie  3  2011 groovy-all-1.8.1.jar
-rw-r--r-- 1 root root  399212 lip 24  2012 jaxmpp-core-2.0.0-SNAPSHOT.jar
-rw-r--r-- 1 root root   66427 lip 24  2012 jaxmpp-j2se-2.0.0-SNAPSHOT.jar
-rw-r--r-- 1 root root   47196 mar  3  2012 tigase-xmltools-3.3.6-SNAPSHOT.jar

Added by Wojciech Kapcia TigaseTeam over 5 years ago

First of all - remove duplicated components from libs/ directory (groovy-all and tigase-xmltools, I would also remove jaxmpp as it's pointless to have it in server classpath).

As for the HTTP component - you have the dependencies, but you are missing the component itself from the jars/ directory - you have to build it from sources available in the repository and then put resulting jar (build/libs/tigase-http-api-1.0.0-SNAPSHOT.jar) in the jars/ directory.

Added by Maciej Bursztynowski over 5 years ago

Hi,

I've tried to build tigase-http-api but there was a problem. I was using gradle.

# gradle dependencies
The groovy configuration has been deprecated and is scheduled to be removed in Gradle 2.0. Typically, usages of 'groovy' can simply be replaced with 'compile'. In some cases, it may be necessary to additionally configure the 'groovyClasspath' property of GroovyCompile and Groovydoc tasks.
:dependencies

------------------------------------------------------------
Root project
------------------------------------------------------------

archives - Configuration for archive artifacts.
No dependencies

compile - Compile classpath for source set 'main'.
Download http://repo1.maven.org/maven2/org/apache/felix/org.osgi.core/1.4.0/org.osgi.core-1.4.0.pom
Download http://repo1.maven.org/maven2/org/apache/felix/felix-parent/1.2.0/felix-parent-1.2.0.pom
Download http://repo1.maven.org/maven2/org/codehaus/groovy/groovy-all/2.1.0/groovy-all-2.1.0.pom
Download http://repo1.maven.org/maven2/javax/servlet/servlet-api/2.5/servlet-api-2.5.pom
Download http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-server/8.1.9.v20130131/jetty-server-8.1.9.v20130131.pom
Download http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-project/8.1.9.v20130131/jetty-project-8.1.9.v20130131.pom
Download http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-parent/20/jetty-parent-20.pom
Download http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-servlet/8.1.9.v20130131/jetty-servlet-8.1.9.v20130131.pom
Download http://repo1.maven.org/maven2/org/eclipse/jetty/orbit/javax.servlet/3.0.0.v201112011016/javax.servlet-3.0.0.v201112011016.pom
Download http://repo1.maven.org/maven2/org/eclipse/jetty/orbit/jetty-orbit/1/jetty-orbit-1.pom
Download http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-parent/18/jetty-parent-18.pom
Download http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-continuation/8.1.9.v20130131/jetty-continuation-8.1.9.v20130131.pom
Download http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-http/8.1.9.v20130131/jetty-http-8.1.9.v20130131.pom
Download http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-security/8.1.9.v20130131/jetty-security-8.1.9.v20130131.pom
Download http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-io/8.1.9.v20130131/jetty-io-8.1.9.v20130131.pom
Download http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-util/8.1.9.v20130131/jetty-util-8.1.9.v20130131.pom
+--- org.apache.felix:org.osgi.core:1.4.0
+--- org.codehaus.groovy:groovy-all:2.1.0
+--- javax.servlet:servlet-api:2.5
+--- org.eclipse.jetty:jetty-server:8.1.9.v20130131
|    +--- org.eclipse.jetty.orbit:javax.servlet:3.0.0.v201112011016
|    +--- org.eclipse.jetty:jetty-continuation:8.1.9.v20130131
|    \--- org.eclipse.jetty:jetty-http:8.1.9.v20130131
|         \--- org.eclipse.jetty:jetty-io:8.1.9.v20130131
|              \--- org.eclipse.jetty:jetty-util:8.1.9.v20130131
+--- org.eclipse.jetty:jetty-servlet:8.1.9.v20130131
|    \--- org.eclipse.jetty:jetty-security:8.1.9.v20130131
|         \--- org.eclipse.jetty:jetty-server:8.1.9.v20130131 (*)
\--- tigase:tigase-server:5.2.0-SNAPSHOT FAILED

default - Configuration for default artifacts.
+--- org.apache.felix:org.osgi.core:1.4.0
+--- org.codehaus.groovy:groovy-all:2.1.0
+--- javax.servlet:servlet-api:2.5
+--- org.eclipse.jetty:jetty-server:8.1.9.v20130131
|    +--- org.eclipse.jetty.orbit:javax.servlet:3.0.0.v201112011016
|    +--- org.eclipse.jetty:jetty-continuation:8.1.9.v20130131
|    \--- org.eclipse.jetty:jetty-http:8.1.9.v20130131
|         \--- org.eclipse.jetty:jetty-io:8.1.9.v20130131
|              \--- org.eclipse.jetty:jetty-util:8.1.9.v20130131
+--- org.eclipse.jetty:jetty-servlet:8.1.9.v20130131
|    \--- org.eclipse.jetty:jetty-security:8.1.9.v20130131
|         \--- org.eclipse.jetty:jetty-server:8.1.9.v20130131 (*)
\--- tigase:tigase-server:5.2.0-SNAPSHOT FAILED

groovy - The Groovy libraries to be used for this Groovy project. (Deprecated)
\--- org.codehaus.groovy:groovy-all:2.1.0

runtime - Runtime classpath for source set 'main'.
+--- org.apache.felix:org.osgi.core:1.4.0
+--- org.codehaus.groovy:groovy-all:2.1.0
+--- javax.servlet:servlet-api:2.5
+--- org.eclipse.jetty:jetty-server:8.1.9.v20130131
|    +--- org.eclipse.jetty.orbit:javax.servlet:3.0.0.v201112011016
|    +--- org.eclipse.jetty:jetty-continuation:8.1.9.v20130131
|    \--- org.eclipse.jetty:jetty-http:8.1.9.v20130131
|         \--- org.eclipse.jetty:jetty-io:8.1.9.v20130131
|              \--- org.eclipse.jetty:jetty-util:8.1.9.v20130131
+--- org.eclipse.jetty:jetty-servlet:8.1.9.v20130131
|    \--- org.eclipse.jetty:jetty-security:8.1.9.v20130131
|         \--- org.eclipse.jetty:jetty-server:8.1.9.v20130131 (*)
\--- tigase:tigase-server:5.2.0-SNAPSHOT FAILED

testCompile - Compile classpath for source set 'test'.
+--- org.apache.felix:org.osgi.core:1.4.0
+--- org.codehaus.groovy:groovy-all:2.1.0
+--- javax.servlet:servlet-api:2.5
+--- org.eclipse.jetty:jetty-server:8.1.9.v20130131
|    +--- org.eclipse.jetty.orbit:javax.servlet:3.0.0.v201112011016
|    +--- org.eclipse.jetty:jetty-continuation:8.1.9.v20130131
|    \--- org.eclipse.jetty:jetty-http:8.1.9.v20130131
|         \--- org.eclipse.jetty:jetty-io:8.1.9.v20130131
|              \--- org.eclipse.jetty:jetty-util:8.1.9.v20130131
+--- org.eclipse.jetty:jetty-servlet:8.1.9.v20130131
|    \--- org.eclipse.jetty:jetty-security:8.1.9.v20130131
|         \--- org.eclipse.jetty:jetty-server:8.1.9.v20130131 (*)
\--- tigase:tigase-server:5.2.0-SNAPSHOT FAILED

testRuntime - Runtime classpath for source set 'test'.
+--- org.apache.felix:org.osgi.core:1.4.0
+--- org.codehaus.groovy:groovy-all:2.1.0
+--- javax.servlet:servlet-api:2.5
+--- org.eclipse.jetty:jetty-server:8.1.9.v20130131
|    +--- org.eclipse.jetty.orbit:javax.servlet:3.0.0.v201112011016
|    +--- org.eclipse.jetty:jetty-continuation:8.1.9.v20130131
|    \--- org.eclipse.jetty:jetty-http:8.1.9.v20130131
|         \--- org.eclipse.jetty:jetty-io:8.1.9.v20130131
|              \--- org.eclipse.jetty:jetty-util:8.1.9.v20130131
+--- org.eclipse.jetty:jetty-servlet:8.1.9.v20130131
|    \--- org.eclipse.jetty:jetty-security:8.1.9.v20130131
|         \--- org.eclipse.jetty:jetty-server:8.1.9.v20130131 (*)
\--- tigase:tigase-server:5.2.0-SNAPSHOT FAILED

(*) - dependencies omitted (listed previously)

BUILD SUCCESSFUL

Due to some failures I've tried to build it, but it failed.

# gradle build
The groovy configuration has been deprecated and is scheduled to be removed in Gradle 2.0. Typically, usages of 'groovy' can simply be replaced with 'compile'. In some cases, it may be necessary to additionally configure the 'groovyClasspath' property of GroovyCompile and Groovydoc tasks.
:compileJava UP-TO-DATE
:compileGroovy

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all dependencies for configuration ':compile'.
> Could not find tigase:tigase-server:5.2.0-SNAPSHOT.
  Required by:
      tigase:tigase-http-api:1.0.0-SNAPSHOT

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 13.879 secs

Is there any chance to give me ready snapshot?

Added by Wojciech Kapcia TigaseTeam over 5 years ago

This was probably cause by the missing entry regarding SNAPSHOT repository thus missing tigase-server-5.2.0-SNAPSHOT.

I've added maven configuration for building tigase-http-api project as well as deployed current snapshot to the SNAPSHOT repository where you can grab latest snapshot

Added by Maciej Bursztynowski over 5 years ago

Thank you very much :)

It works now. If I had a question I'd ask it later.

    (1-12/12)