Leonardo Reis created AMQ-8595:
--
Summary: activemq-security.xml not working
Key: AMQ-8595
URL: https://issues.apache.org/jira/browse/AMQ-8595
Project: ActiveMQ
Issue Type: Bug
Affects Versions: 5.15.13
Reporter: Leonardo Reis
Error starting broker "bin/activemq start xbean:conf/activemq-security.xml" no
process is spawned, unable to continue. Im respecting the documentation
(http://activemq.apache.org/encrypted-passwords.html)
inserting the encrypted password in the credential-enc.properties file:
--activemq.log--
2022-05-04 09:51:12,337 | ERROR | Failed to load: class path resource
[conf/activemq-security.xml], reason: IOException parsing XML document from
class path resource [conf/activemq-security.xml]; nested exception is
java.io.FileNotFoundException: class path resource [conf/activemq-security.xml]
cannot be opened because it does not exist |
org.apache.activemq.xbean.XBeanBrokerFactory | main
org.springframework.beans.factory.BeanDefinitionStoreException: IOException
parsing XML document from class path resource [conf/activemq-security.xml];
nested exception is java.io.FileNotFoundException: class path resource
[conf/activemq-security.xml] cannot be opened because it does not exist
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:344)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE]
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)[spring-beans-4.3.26.RELEASE.jar:4.3.26.RELEASE]
at
org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:111)[xbean-spring-4.17.jar:4.17]
at
org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:104)[xbean-spring-4.17.jar:4.17]
at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)[spring-context-4.3.26.RELEASE.jar:4.3.26.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:614)[spring-context-4.3.26.RELEASE.jar:4.3.26.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:514)[spring-context-4.3.26.RELEASE.jar:4.3.26.RELEASE]
at
org.apache.xbean.spring.context.ResourceXmlApplicationContext.(ResourceXmlApplicationContext.java:64)[xbean-spring-4.17.jar:4.17]
at
org.apache.xbean.spring.context.ResourceXmlApplicationContext.(ResourceXmlApplicationContext.java:52)[xbean-spring-4.17.jar:4.17]
at
org.apache.activemq.xbean.XBeanBrokerFactory$1.(XBeanBrokerFactory.java:104)[activemq-spring-5.15.13.jar:5.15.13]
at
org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)[activemq-spring-5.15.13.jar:5.15.13]
at
org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)[activemq-spring-5.15.13.jar:5.15.13]
at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)[activemq-broker-5.15.13.jar:5.15.13]
at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)[activemq-broker-5.15.13.jar:5.15.13]
at
org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:87)[activemq-console-5.15.13.jar:5.15.13]
at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.15.13.jar:5.15.13]
at
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:154)[activemq-console-5.15.13.jar:5.15.13]
at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.15.13.jar:5.15.13]
at
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)[activemq-console-5.15.13.jar:5.15.13]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_301]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_301]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_301]
at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_301]
at
org.apache.activemq.console.Main.runTaskClass(Main.java:262)[activemq.jar:5.15.13]
at
org.apache.activemq.console.Main.main(Main.java:115)[activemq.jar:5.15.13]
---file configuration
activemq-security--