我的 activemq 代理使用了以下模式:-
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:amq="http://activemq.apache.org/schema/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
file:////u//amqgod//schema//spring-beans.xsd
http://activemq.apache.org/schema/core
file:////u//amqgod//schema//activemq.xsd">
如果我从命令行启动我的应用程序,它运行良好,但在通过 initd 机制启动时失败并出现以下错误:-
错误:java.lang.RuntimeException:无法执行启动任务。原因:org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:来自 URL [file:/prod/tools/base/etc/config/activemq/amq_prod_broker_config.xml] 的 X ML 文档中的第 23 行无效;嵌套异常是 org.xml.sax.SAXParseException;行号:23;列号:52;cvc-elt.1:找不到元素“beans”的声明。java.lang.RuntimeException:无法执行启动任务。原因:org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:来自 URL [file:/prod/tools/base/etc/config/activemq/amq_prod_broker_config.xml] 的 XML 文档中的第 23 行无效;嵌套异常是 org.xml.sax.SAXParseException;行号:23;列号:52;cvc-elt.1:找不到元素“beans”的声明。在组织。
initd 只不过是在重新启动 linux 服务器时自动运行我的脚本的配置。请帮忙?