2014-06-22 15 views
0

我只是試圖通過安裝到CentOS 6.5(清除最小的操作系統)安裝openshift,安裝過程成功完成,但它看起來像'經紀人'沒有運行。我試圖瞭解這部分壞了,發現 ActiveMQ是不是在啓動過程中,它有這個錯誤在/var/log/activemq/activemq.log如何解決oo-install腳本成功完成後出現的activemq錯誤?

2014-06-22 16:45:28,085 [erSimpleAppMain] INFO XBeanBrokerFactory$1   - Refreshing org.apache.activemq.xbean. [email protected]: startup date [Sun Jun 22 16:45:28 YEKT 2014]; root of context hierarchy 
2014-06-22 16:45:34,239 [erSimpleAppMain] ERROR XBeanBrokerFactory    - Failed to load: class path resource [activemq.xml],  reason: Invalid bean definition with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class path resource [activemq. xml]: Could not resolve placeholder 'activemq.data' in string value "${activemq.data}" 
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'org.apache.activemq.xbean. XBeanBrokerService#0' defined in class path resource [activemq.xml]: Could not resolve placeholder 'activemq.data' in string value  "${activemq.data}" 
    at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:209) 
    at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:220) 
    at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:84) 
    at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext. java:687) 
    at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext. java:662) 
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:454) 
    at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64) 
    at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52) 
    at org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:101) 
    at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:101) 
    at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:65) 
    at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71) 
    at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54) 
    at org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:125) 
    at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:84) 
    at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) 
    at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:150) 
    at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) 
    at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104) 
    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:262) 
    at org.apache.activemq.console.Main.main(Main.java:115) 
    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.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:290) 
    at java.lang.Thread.run(Thread.java:744) 

而且在/ var /日誌/ ActiveMQ的/ wrapper.log存在另一條錯誤消息:

STATUS | wrapper | 2014/06/22 16:45:08 | --> Wrapper Started as Daemon 
STATUS | wrapper | 2014/06/22 16:45:08 | Java Service Wrapper Community Edition 64-bit 3.5.9 
STATUS | wrapper | 2014/06/22 16:45:08 | Copyright (C) 1999-2011 Tanuki Software, Ltd. All Rights Reserved. 
STATUS | wrapper | 2014/06/22 16:45:08 |  http://wrapper.tanukisoftware.com 
STATUS | wrapper | 2014/06/22 16:45:08 | 
STATUS | wrapper | 2014/06/22 16:45:08 | Launching a JVM... 
INFO | jvm 1 | 2014/06/22 16:45:19 | WrapperManager: Initializing... 
INFO | jvm 1 | 2014/06/22 16:45:21 | Java Runtime: Oracle Corporation 1.7.0_55 /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.55.x86_64/ jre 
INFO | jvm 1 | 2014/06/22 16:45:21 | Heap sizes: current=44608k free=40256k max=506816k 
INFO | jvm 1 | 2014/06/22 16:45:21 |  JVM args: -Dactivemq.home=/usr/share/activemq -Dactivemq.base=/usr/share/activemq -Dcom. sun.management.jmxremote -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Xmx512m -Djava.library.path=/usr/lib:/usr/lib64 -Dwrapper. key=8FoxAdsYaZZj3A_f -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper. disable_console_input=TRUE -Dwrapper.pid=993 -Dwrapper.version=3.5.9 -Dwrapper.native_library=wrapper -Dwrapper.service=TRUE -Dwrapper .cpu.timeout=10 -Dwrapper.jvmid=1 
INFO | jvm 1 | 2014/06/22 16:45:21 | Extensions classpath: 
INFO | jvm 1 | 2014/06/22 16:45:21 | [/usr/share/activemq/lib,/usr/share/activemq/lib/camel,/usr/share/activemq/lib/optional,/ usr/share/activemq/lib/web,/usr/share/activemq/lib/extra] 
INFO | jvm 1 | 2014/06/22 16:45:21 | ACTIVEMQ_HOME: /usr/share/activemq 
INFO | jvm 1 | 2014/06/22 16:45:21 | ACTIVEMQ_BASE: /usr/share/activemq 
INFO | jvm 1 | 2014/06/22 16:45:21 | ACTIVEMQ_CONF: /usr/share/activemq/conf 
INFO | jvm 1 | 2014/06/22 16:45:21 | ACTIVEMQ_DATA: /usr/share/activemq/data 
INFO | jvm 1 | 2014/06/22 16:45:25 | Loading message broker from: xbean:activemq.xml 
INFO | jvm 1 | 2014/06/22 16:45:34 | ERROR: java.lang.RuntimeException: Failed to execute start task. Reason: org.springframework .beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'org.apache.activemq.xbean.XBeanBrokerService#0'  defined in class path resource [activemq.xml]: Could not resolve placeholder 'activemq.data' in string value "${activemq.data}" 
INFO | jvm 1 | 2014/06/22 16:45:34 | java.lang.RuntimeException: Failed to execute start task. Reason: org.springframework.beans. factory.BeanDefinitionStoreException: Invalid bean definition with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in  class path resource [activemq.xml]: Could not resolve placeholder 'activemq.data' in string value "${activemq.data}" 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:108) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:150) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at java.lang.reflect.Method.invoke(Method.java:606) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.console.Main.runTaskClass(Main.java:262) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.console.Main.main(Main.java:115) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at java.lang.reflect.Method.invoke(Method.java:606) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:290) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at java.lang.Thread.run(Thread.java:744) 
INFO | jvm 1 | 2014/06/22 16:45:34 | Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean  definition with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class path resource [activemq.xml]: Could not  resolve placeholder 'activemq.data' in string value "${activemq.data}" 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.springframework.beans.factory.config.PlaceholderConfigurerSupport. doProcessProperties(PlaceholderConfigurerSupport.java:209) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer. processProperties(PropertyPlaceholderConfigurer.java:220) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.springframework.beans.factory.config.PropertyResourceConfigurer. postProcessBeanFactory(PropertyResourceConfigurer.java:84) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.springframework.context.support.AbstractApplicationContext. invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:687) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.springframework.context.support.AbstractApplicationContext. invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:662) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.springframework.context.support.AbstractApplicationContext.refresh( AbstractApplicationContext.java:454) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>( ResourceXmlApplicationContext.java:64) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>( ResourceXmlApplicationContext.java:52) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:101) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext( XBeanBrokerFactory.java:101) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:65) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:125) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:84) 
INFO | jvm 1 | 2014/06/22 16:45:34 | ... 16 more 
INFO | jvm 1 | 2014/06/22 16:45:34 | ERROR: java.lang.Exception: org.springframework.beans.factory.BeanDefinitionStoreException:  Invalid bean definition with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class path resource [activemq.xml]:  Could not resolve placeholder 'activemq.data' in string value "${activemq.data}" 
INFO | jvm 1 | 2014/06/22 16:45:34 | java.lang.Exception: org.springframework.beans.factory.BeanDefinitionStoreException:  Invalid bean definition with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class path resource [activemq.xml]:  Could not resolve placeholder 'activemq.data' in string value "${activemq.data}" 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:109) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:150) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at java.lang.reflect.Method.invoke(Method.java:606) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.console.Main.runTaskClass(Main.java:262) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.console.Main.main(Main.java:115) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at java.lang.reflect.Method.invoke(Method.java:606) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:290) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at java.lang.Thread.run(Thread.java:744) 
INFO | jvm 1 | 2014/06/22 16:45:34 | Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean  definition with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class path resource [activemq.xml]: Could not  resolve placeholder 'activemq.data' in string value "${activemq.data}" 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.springframework.beans.factory.config.PlaceholderConfigurerSupport. doProcessProperties(PlaceholderConfigurerSupport.java:209) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer. processProperties(PropertyPlaceholderConfigurer.java:220) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.springframework.beans.factory.config.PropertyResourceConfigurer. postProcessBeanFactory(PropertyResourceConfigurer.java:84) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.springframework.context.support.AbstractApplicationContext. invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:687) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.springframework.context.support.AbstractApplicationContext. invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:662) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.springframework.context.support.AbstractApplicationContext.refresh( AbstractApplicationContext.java:454) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>( ResourceXmlApplicationContext.java:64) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>( ResourceXmlApplicationContext.java:52) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:101) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext( XBeanBrokerFactory.java:101) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:65) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:125) 
INFO | jvm 1 | 2014/06/22 16:45:34 | at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:84) 
INFO | jvm 1 | 2014/06/22 16:45:34 | ... 16 more 
STATUS | wrapper | 2014/06/22 16:45:36 | <-- Wrapper Stopped 

我完全新的ActiveMQ和不具備這樣的錯誤性質的任何想法,所以我想知道的任何方式來理解和解決這個問題。

PS。 爲什麼oo-install工具永遠不能正常工作?我試圖在幾個月前將openshift安裝到不同的操作系統,比如fedora19,幾個CentOS 6x版本,並且在安裝完成之後,openshift在重啓後沒有啓動。

回答

1

我找到答案在這裏https://lists.openshift.redhat.com/openshift-archives/dev/2014-January/msg00056.html

我認爲問題的根源是,我針對你的PuppetLabs 回購安裝木偶。這是我的錯誤。木偶是 可通過EPEL,這將是正確的方式 安裝它。相反,因爲你的經紀人上面有puppetlabs-deps repo ,所以安裝了錯誤的Puppet軟件包。

要糾正這一點, * yum erase activemq *禁用puppetlabs-DEPS回購(最簡單的方式,變 '啓用= 1' 到 '啓用= 0' 在puppetlabs-deps.repo在/etc/yum.repos文件.D /) *重新運行yum install activemq

這解決了我的問題,開始的ActiveMQ沒有錯誤。但無論如何,經紀人還沒有工作。

相關問題