日期:2014-05-16 浏览次数:20596 次
?
今天配置Pure master slave with activeMQ, 碰到如下错误:
C:\apache-activemq-5.4.3\bin>activemq xbean:file:../conf/pure_master.xml
Java Runtime: Sun Microsystems Inc. 1.6.0_24 C:\Program Files\Java\jre6
? Heap sizes: current=15872k ?free=14433k ?max=506816k
? ? JVM args: -Dcom.sun.management.jmxremote -Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.properties -Dactivemq.classpath=C:\apache-activemq-5.4.3\bin\../conf;C:\apache-activemq-5.4.3\bin\../conf; -Dactivemq.home=C:\apache-activemq-5.4.3\bin\.. -Dactivemq.base=C:\apache-activemq-5.4.3\bin\..
ACTIVEMQ_HOME: C:\apache-activemq-5.4.3\bin\..
ACTIVEMQ_BASE: C:\apache-activemq-5.4.3\bin\..
Loading message broker from: xbean:file:../conf/pure_master.xml
?INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@15e83f9: startup date [Thu Oct 27 12:41:12 CST 2011];root of context hierarchy
?WARN | destroyApplicationContextOnStop parameter is deprecated, please use shutdown hooks instead
?INFO | PListStore:C:\apache-activemq-5.4.3\bin\..\data\pure_master\tmp_storage started
?INFO | Using Persistence Adapter: KahaDBPersistenceAdapter[C:\apache-activemq-5.4.3\bin\..\data\kahadb_pure_master ]
?INFO | Database C:\apache-activemq-5.4.3\bin\..\data\kahadb_pure_master \lock is locked... waiting 10 seconds for the database to be unlocked. Reason: java.io.FileNotFoundException: C:\apache-activemq-5.4.3\bin\..\data\kahadb_pure_master \lock (The system cannot find the path specified)
?INFO | Database C:\apache-activemq-5.4.3\bin\..\data\kahadb_pure_master \lock is locked... waiting 10 seconds for the database to be unlocked. Reason: java.io.FileNotFoundException: C:\apache-activemq-5.4.3\bin\..\data\kahadb_pure_master \lock (The system cannot find the path specified)
?
?
原因竟是kahadb_pure_master 与 双引号" 之间多了一个空格.
?
错误: <persistenceAdapter> <kahaDB directory="${activemq.base}/data/kahadb_pure_master "/> </persistenceAdapter>?
?
?
正确 <persistenceAdapter> <kahaDB directory="${activemq.base}/data/kahadb_pure_master"/> </persistenceAdapter>?
?
?