You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by pgarg <pg...@gridgain.com> on 2015/05/09 19:35:18 UTC

Starting Jetty for REST API

/asked by colin duggan/

I'm testing two versions of Ignite one is the open source version and the
other is an enterprise version (gridgain)

When i start the open source version the REST service starts on Jetty and I
see the following debug information [GridJettyRestProtocol] Command protocol
successfully started [name=Jetty REST, host=/0.0.0.0, port=8090]

When i start gridgain i can see that REST is enabled [IgniteKernal] Remote
Management [restart: on, REST: on, JMX (remote: on, port: 49127, auth: off,
ssl: off)]

however there is no debug info indicating that Jetty has started and when I
try get version info from port 8080 the request fails.

Can anyone suggest any ideas? i already tried setting
-DIGNITE_JETTY_PORT="8080" in my ignite.sh startup file but this does not
start the Jetty server

----- 
/This post is migrated from now discontinued Apache Ignite forum at 
http://apacheignite.readme.io/v1.0/discuss/




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Starting-Jetty-for-REST-API-tp191.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Starting Jetty for REST API

Posted by pgarg <pg...@gridgain.com>.
/commented by yakov zhdanov/

It seems you do not have dependency to ignite-rest-http in the project that
uses GridGain. Can you provide reproducible example if I am wrong?

If ignite-rest-http module is on class path you should see the following (in
verbose mode):

..... [14:57:48,212][INFO ][main][GridTcpRestProtocol] Command protocol
successfully started [name=TCP binary, host=/127.0.0.1, port=11211]
[14:57:48,295][INFO ][main][GridJettyRestProtocol] Command protocol
successfully started [name=Jetty REST, host=/127.0.0.1, port=8080]
<<<<<<<<<<< JETTY server started
.......

+---------------------------------+ Ignite ver. 1.0.0#19700101-sha1:DEV
+---------------------------------+ OS name: Mac OS X 10.9.5 x86_64 CPU(s):
8 Heap: 3.6GB VM name: 13570@mbp.local Grid name: null Local node
[ID=73C8BA58-73DB-4E01-A760-2F071DEB123C, order=1] Local node addresses:
[/127.0.0.1] Local ports: TCP:8080 TCP:11211 TCP:47100 UDP:47400 TCP:47500
<<<<<<<<<< 8080 port is reported as used Ignite documentation:
http://ignite.incubator.apache.org

----- 
/This post is migrated from now discontinued Apache Ignite forum at 
http://apacheignite.readme.io/v1.0/discuss/




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Starting-Jetty-for-REST-API-tp191p192.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.