That's definitely a problem. You can't really expect the REST interface to work when it can't actually connect with the broker. :)
As noted in the documentation the REST interface will attempt to connect to the broker via an im-vm connection using the url "vm://0". Do you have an in-vm acceptor configured with this url? If not, you should. Justin On Thu, Feb 22, 2018 at 1:23 PM, tcomprak <tcomp...@gmail.com> wrote: > When I start the artemis service, I see this > > 11:21:32,464 INFO [io.hawt.system.ProxyWhitelist] Initial proxy > whitelist: > [localhost, 127.0.0.1, 10.140.129.24, qa-centos7x64-102.sv.splunk.com] > 11:21:33,763 WARN [org.eclipse.jetty.webapp.WebAppContext] Failed startup > of context > o.e.j.w.WebAppContext@27494e46{/artemis-rest,file:///home/ > vncuser/artemis-brokers/broker1/tmp/jetty-localhost- > 8161-artemis-rest.war-_artemis-rest-any-1297401241729321808.dir/ > webapp/,UNAVAILABLE}{/home/vncuser/apache-artemis-2.4.0/ > web/artemis-rest.war}: > java.lang.RuntimeException: > ActiveMQNotConnectedException[errorType=NOT_CONNECTED message=AMQ119007: > Cannot connect to server(s). Tried with all available servers.] > at > org.apache.activemq.artemis.rest.integration. > RestMessagingBootstrapListener.contextInitialized( > RestMessagingBootstrapListener.java:54) > [artemis-rest-2.4.0.jar:2.4.0] > at > org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized( > ContextHandler.java:876) > [jetty-all-9.4.3.v20170317-uber.jar:9.4.3.v20170317] > at > org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized( > ServletContextHandler.java:532) > [jetty-all-9.4.3.v20170317-uber.jar:9.4.3.v20170317] > at > org.eclipse.jetty.server.handler.ContextHandler. > startContext(ContextHandler.java:839) > [jetty-all-9.4.3.v20170317-uber.jar:9.4.3.v20170317] > at > org.eclipse.jetty.servlet.ServletContextHandler.startContext( > ServletContextHandler.java:344) > [jetty-all-9.4.3.v20170317-uber.jar:9.4.3.v20170317] > at > org.eclipse.jetty.webapp.WebAppContext.startWebapp( > WebAppContext.java:1480) > [jetty-all-9.4.3.v20170317-uber.jar:9.4.3.v20170317] > at > org.eclipse.jetty.webapp.WebAppContext.startContext( > WebAppContext.java:1442) > [jetty-all-9.4.3.v20170317-uber.jar:9.4.3.v20170317] > at > org.eclipse.jetty.server.handler.ContextHandler. > doStart(ContextHandler.java:799) > [jetty-all-9.4.3.v20170317-uber.jar:9.4.3.v20170317] > at > org.eclipse.jetty.servlet.ServletContextHandler.doStart( > ServletContextHandler.java:261) > [jetty-all-9.4.3.v20170317-uber.jar:9.4.3.v20170317] > at > org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:540) > [jetty-all-9.4.3.v20170317-uber.jar:9.4.3.v20170317] > at > org.eclipse.jetty.util.component.AbstractLifeCycle. > start(AbstractLifeCycle.java:68) > [jetty-all-9.4.3.v20170317-uber.jar:9.4.3.v20170317] > at > org.eclipse.jetty.util.component.ContainerLifeCycle. > start(ContainerLifeCycle.java:131) > [jetty-all-9.4.3.v20170317-uber.jar:9.4.3.v20170317] > at > org.eclipse.jetty.util.component.ContainerLifeCycle. > doStart(ContainerLifeCycle.java:113) > [jetty-all-9.4.3.v20170317-uber.jar:9.4.3.v20170317] > at > org.eclipse.jetty.server.handler.AbstractHandler. > doStart(AbstractHandler.java:113) > [jetty-all-9.4.3.v20170317-uber.jar:9.4.3.v20170317] > at > org.eclipse.jetty.util.component.AbstractLifeCycle. > start(AbstractLifeCycle.java:68) > [jetty-all-9.4.3.v20170317-uber.jar:9.4.3.v20170317] > at > org.eclipse.jetty.util.component.ContainerLifeCycle. > start(ContainerLifeCycle.java:131) > [jetty-all-9.4.3.v20170317-uber.jar:9.4.3.v20170317] > at org.eclipse.jetty.server.Server.start(Server.java:452) > [jetty-all-9.4.3.v20170317-uber.jar:9.4.3.v20170317] > at > org.eclipse.jetty.util.component.ContainerLifeCycle. > doStart(ContainerLifeCycle.java:105) > [jetty-all-9.4.3.v20170317-uber.jar:9.4.3.v20170317] > at > org.eclipse.jetty.server.handler.AbstractHandler. > doStart(AbstractHandler.java:113) > [jetty-all-9.4.3.v20170317-uber.jar:9.4.3.v20170317] > at org.eclipse.jetty.server.Server.doStart(Server.java:419) > [jetty-all-9.4.3.v20170317-uber.jar:9.4.3.v20170317] > at > org.eclipse.jetty.util.component.AbstractLifeCycle. > start(AbstractLifeCycle.java:68) > [jetty-all-9.4.3.v20170317-uber.jar:9.4.3.v20170317] > at > org.apache.activemq.artemis.component.WebServerComponent. > start(WebServerComponent.java:134) > [artemis-web-2.4.0.jar:2.4.0] > at org.apache.activemq.artemis.cli.commands.Run.execute(Run. > java:92) > [artemis-cli-2.4.0.jar:2.4.0] > at > org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:149) > [artemis-cli-2.4.0.jar:2.4.0] > at org.apache.activemq.artemis.cli.Artemis.execute(Artemis. > java:96) > [artemis-cli-2.4.0.jar:2.4.0] > at org.apache.activemq.artemis.cli.Artemis.execute(Artemis. > java:123) > [artemis-cli-2.4.0.jar:2.4.0] > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > [rt.jar:1.8.0_161] > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: > 62) > [rt.jar:1.8.0_161] > at > sun.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:43) > [rt.jar:1.8.0_161] > at java.lang.reflect.Method.invoke(Method.java:498) > [rt.jar:1.8.0_161] > at > org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:129) > [artemis-boot.jar:2.4.0] > at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:49) > [artemis-boot.jar:2.4.0] > Caused by: ActiveMQNotConnectedException[errorType=NOT_CONNECTED > message=AMQ119007: Cannot connect to server(s). Tried with all available > servers.] > at > org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl. > createSessionFactory(ServerLocatorImpl.java:790) > [artemis-core-client-2.4.0.jar:2.4.0] > at > org.apache.activemq.artemis.rest.MessageServiceManager. > start(MessageServiceManager.java:150) > [artemis-rest-2.4.0.jar:2.4.0] > at > org.apache.activemq.artemis.rest.integration. > RestMessagingBootstrapListener.contextInitialized( > RestMessagingBootstrapListener.java:50) > [artemis-rest-2.4.0.jar:2.4.0] > ... 31 more > 11:21:33,782 INFO [org.apache.activemq.artemis] AMQ241001: HTTP Server > started at http://localhost:8161 > 11:21:33,783 INFO [org.apache.activemq.artemis] AMQ241002: Artemis Jolokia > REST API available at http://localhost:8161/console/jolokia > 11:21:33,783 INFO [org.apache.activemq.artemis] AMQ241004: Artemis Console > available at http://localhost:8161/console > > > > > -- > Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User- > f2341805.html >