我使用 commons-deamon 在 Windows 2008 64 位服务器上安装了 ActiveMQ 作为服务。
当我尝试启动服务时,出现此错误:
ACTIVEMQ_HOME: C:\apache-activemq-5.7.0
ACTIVEMQ_BASE: C:\apache-activemq-5.7.0
ACTIVEMQ_CONF: C:\apache-activemq-5.7.0\conf
ACTIVEMQ_DATA: C:\apache-activemq-5.7.0\data
Loading message broker from: xbean:activemq.xml
INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@17494c8: startup date [Wed Jan 09 16:45:52 IST 2013]; root of context hierarchy
ERROR | Failed to load: class path resource [activemq.xml], reason: Could not load properties; nested exception is java.io.FileNotFoundException: ${activemq.conf}\credentials.properties (The system cannot find the path specified)
org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: ${activemq.conf} \credentials.properties (The system cannot find the path specified)
好像找不到文件
ACTIVEMQ_HOME\conf\credentials.properties
但该文件确实存在于我的文件夹中。
我需要手动定义环境变量或类似的东西吗?
谢谢!