You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by Jaspreet Kaur <jk...@quark.com> on 2015/11/19 10:50:35 UTC

ActiveMQNotConnectedException on deploying REST Artemis in Tomcat

Hi,
 I am deploying Artemis REST webapp in Tomcat by creating web.xml & placing
dependencies into WEB-INF/lib folder.
On listener startup I get following error:
ov 19, 2015 3:26:31 PM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Exception sending context initialized event to listener instance of
class
org.apache.activemq.artemis.rest.integration.RestMessagingBootstrapListener
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:48)
	at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5003)
	at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5517)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
	at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263)
	at
org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1978)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
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:818)
	at
org.apache.activemq.artemis.rest.MessageServiceManager.start(MessageServiceManager.java:149)
	at
org.apache.activemq.artemis.rest.integration.RestMessagingBootstrapListener.contextInitialized(RestMessagingBootstrapListener.java:43)
	... 13 more


Why am I getting such an error ?
Does there exist any Artemis REST web app distribution?

Jaspreet



--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQNotConnectedException-on-deploying-REST-Artemis-in-Tomcat-tp4704085.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Re: ActiveMQNotConnectedException on deploying REST Artemis in Tomcat

Posted by Justin Bertram <jb...@apache.com>.
Can you share your web.xml?

There is no Artemis REST web app distribution, but it should be pretty simple to assemble yourself following the documentation.


Justin

----- Original Message -----
From: "Jaspreet Kaur" <jk...@quark.com>
To: dev@activemq.apache.org
Sent: Thursday, November 19, 2015 3:50:35 AM
Subject: ActiveMQNotConnectedException on deploying REST Artemis in Tomcat

Hi,
 I am deploying Artemis REST webapp in Tomcat by creating web.xml & placing
dependencies into WEB-INF/lib folder.
On listener startup I get following error:
ov 19, 2015 3:26:31 PM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Exception sending context initialized event to listener instance of
class
org.apache.activemq.artemis.rest.integration.RestMessagingBootstrapListener
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:48)
	at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5003)
	at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5517)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
	at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263)
	at
org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1978)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
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:818)
	at
org.apache.activemq.artemis.rest.MessageServiceManager.start(MessageServiceManager.java:149)
	at
org.apache.activemq.artemis.rest.integration.RestMessagingBootstrapListener.contextInitialized(RestMessagingBootstrapListener.java:43)
	... 13 more


Why am I getting such an error ?
Does there exist any Artemis REST web app distribution?

Jaspreet



--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQNotConnectedException-on-deploying-REST-Artemis-in-Tomcat-tp4704085.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.