You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "dunite (JIRA)" <ji...@apache.org> on 2013/07/24 16:27:49 UTC

[jira] [Commented] (AMQ-4649) D:\Apache\ActiveMQ\apache-activemq-5.6.0\bin>activemq-admin start xbean:conf/activemq-security.xml can not start broker

    [ https://issues.apache.org/jira/browse/AMQ-4649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13718411#comment-13718411 ] 

dunite commented on AMQ-4649:
-----------------------------

it is very easy reproduce
                
> D:\Apache\ActiveMQ\apache-activemq-5.6.0\bin>activemq-admin start xbean:conf/activemq-security.xml  can not  start broker
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-4649
>                 URL: https://issues.apache.org/jira/browse/AMQ-4649
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.6.0
>         Environment: windows xp
> apache-activemq-5.6.0
> jdk1.6.0_33
>            Reporter: dunite
>
> D:\Apache\ActiveMQ\apache-activemq-5.6.0\bin>activemq-admin start xbean:conf/activemq-security.xml
> Java Runtime: Sun Microsystems Inc. 1.6.0_33 D:\Java\jdk\jdk1.6.0_33\jre
>   Heap sizes: current=15872k  free=14539k  max=506816k
>     JVM args: -Dcom.sun.management.jmxremote -Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.properties -Dactivemq.classpath=D:\Apache\ActiveMQ\apache-activemq-5.6.0\bin\..\conf;D:\Apache\ActiveMQ\apache-activemq-5.6.0\bin\..\data; -Dactivemq.home=D:\Apache\ActiveMQ\apache-activemq-5.6.0\bin\.. -Dactivemq.base=D:\Apache\ActiveMQ\apache-activemq-5.6.0\bin\.. -Dactivemq.data=D:\Apache\ActiveMQ\apache-activemq-5.6.0\bin\..\data -Djava.io.tmpdir=D:\Apache\ActiveMQ\apache-activemq-5.6.0\bin\..\data\tmp -Dactivemq.conf=D:\Apache\ActiveMQ\apache-activemq-5.6.0\bin\..\conf
> ACTIVEMQ_HOME: D:\Apache\ActiveMQ\apache-activemq-5.6.0\bin\..
> ACTIVEMQ_BASE: D:\Apache\ActiveMQ\apache-activemq-5.6.0\bin\..
> ACTIVEMQ_CONF: D:\Apache\ActiveMQ\apache-activemq-5.6.0\bin\..\conf
> ACTIVEMQ_DATA: D:\Apache\ActiveMQ\apache-activemq-5.6.0\bin\..\data
> Loading message broker from: xbean:conf/activemq-security.xml
>  INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@a61164: startup date [Wed Jul 24 22:19:39 CST 2013]; root of context hierarchy
> 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.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:341)
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
> 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:111)
> 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:104)
> 	at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
> 	at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)
> 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)
> 	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:108)
> 	at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:108)
> 	at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:72)
> 	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:115)
> 	at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:91)
> 	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> 	at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:148)
> 	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> 	at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:90)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.activemq.console.Main.runTaskClass(Main.java:257)
> 	at org.apache.activemq.console.Main.main(Main.java:111)
> Caused by: java.io.FileNotFoundException: class path resource [conf/activemq-security.xml] cannot be opened because it does not exist
> 	at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:158)
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:328)
> 	... 25 more
> ERROR: java.lang.RuntimeException: Failed to execute start task. Reason: 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
> java.lang.RuntimeException: Failed to execute start task. Reason: 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.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:98)
> 	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> 	at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:148)
> 	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> 	at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:90)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.activemq.console.Main.runTaskClass(Main.java:257)
> 	at org.apache.activemq.console.Main.main(Main.java:111)
> Caused by: 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:341)
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
> 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:111)
> 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:104)
> 	at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
> 	at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)
> 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)
> 	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:108)
> 	at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:108)
> 	at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:72)
> 	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:115)
> 	at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:91)
> 	... 10 more
> Caused by: java.io.FileNotFoundException: class path resource [conf/activemq-security.xml] cannot be opened because it does not exist
> 	at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:158)
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:328)
> 	... 25 more
> ERROR: java.lang.Exception: 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
> java.lang.Exception: 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.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:99)
> 	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> 	at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:148)
> 	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> 	at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:90)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.activemq.console.Main.runTaskClass(Main.java:257)
> 	at org.apache.activemq.console.Main.main(Main.java:111)
> Caused by: 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:341)
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
> 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:111)
> 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:104)
> 	at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
> 	at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)
> 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)
> 	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:108)
> 	at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:108)
> 	at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:72)
> 	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:115)
> 	at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:91)
> 	... 10 more
> Caused by: java.io.FileNotFoundException: class path resource [conf/activemq-security.xml] cannot be opened because it does not exist
> 	at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:158)
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:328)
> 	... 25 more
> D:\Apache\ActiveMQ\apache-activemq-5.6.0\bin>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira