ActiveMQ does not start on ubuntu 14.04

asked 2016-04-27 09:20:33 -0600

hKothuri gravatar image

Hi , I'm in process of installing Mcollective and ActiveMQ and i couldn't start ActiveMQ service I could see that the problem is "activemq.xml" file is not found. But it is located in /etc/activemq/instances-available/activemq.xml Can someone please help me in fixing this path problem?

INFO: Loading '/usr/share/activemq/activemq-options' INFO: Using java '/usr/bin/java' INFO: Starting in foreground, this is just for debugging purposes (stop process by pressing CTRL+C) INFO: changing to user 'activemq' to invoke java mkdir: missing operand Try 'mkdir --help' for more information. Java Runtime: Oracle Corporation 1.7.095 /usr/lib/jvm/java-7-openjdk-amd64/jre Heap sizes: current=503296k free=495369k max=503296k JVM args: -Xms512M -Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Dcom.sun.management.jmxremote -Djava.io.tmpir=/var/lib/activemq/tmp -Dactivemq.classpath=/var/lib/activemq/conf; -Dactivemq.home=/usr/share/activemq -Dactivemq.base=/varlib/activemq/ -Dactivemq.conf=/var/lib/activemq/conf -Dactivemq.data=/var/lib/activemq/data ACTIVEMQHOME: /usr/share/activemq ACTIVEMQBASE: /var/lib/activemq ACTIVEMQCONF: /var/lib/activemq/conf ACTIVEMQ_DATA: /var/lib/activemq/data Loading message broker from: xbean:activemq.xml log4j:WARN No appenders could be found for logger (org.apache.activemq.xbean.XBeanBrokerFactory). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/f... for more info. ERROR: java.lang.RuntimeException: Failed to execute start task. Reason: org.springframework.beans.factory.BeanDefinitionStorexception: IOException parsing XML document from class path resource [activemq.xml]; nested exception is java.io.FileNotFoundExeption: *

> class path resource [activemq.xml] > cannot be opened because it does not > exist


java.lang.RuntimeException: Failed to execute start task. Reason: org.springframework.beans.factory.BeanDefinitionStoreExceptin: IOException parsing XML document from class path resource [activemq.xml]; nested exception is java.io.FileNotFoundException class path resource [activemq.xml] cannot be opened because it does not exist at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:98) at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:148) at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:90) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.activemq.console.Main.runTaskClass(Main.java:257) at org.apache.activemq.console.Main.main(Main.java:111) Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path reource [activemq.xml]; nested exception is java.io.FileNotFoundException: class path resource [activemq.xml] cannot be opened bcause it does not exist at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:341) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.jav:111) at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.jav ... (more)

edit retag flag offensive close merge delete