Hey cool, works ... kind of. I've removed all three sections, and the broker started w/o problems. I was able to connect with my (amq-cpp-2.1.1-)app and send/receive some short (persistent-, not-acknowledged-)messages. however, once i restart the broker after those small tests, i get these exceptions:
> INFO KahaStore - Kaha Store using data directory > /home/.../apache-activemq-5.0.0/data/localhost/kr-store/data > ERROR BrokerService - Failed to start ActiveMQ JMS > Message Broker. Reason: java.lang.SecurityException: User is not > authenticated. > java.lang.SecurityException: User is not authenticated. > at > org.apache.activemq.security.AuthorizationBroker.addDestination(AuthorizationBroker.java:52) > at > org.apache.activemq.broker.MutableBrokerFilter.addDestination(MutableBrokerFilter.java:151) > at > org.apache.activemq.broker.region.AbstractRegion.start(AbstractRegion.java:93) > at > org.apache.activemq.broker.region.RegionBroker.start(RegionBroker.java:180) > at > org.apache.activemq.broker.jmx.ManagedRegionBroker.start(ManagedRegionBroker.java:103) > at > org.apache.activemq.broker.TransactionBroker.start(TransactionBroker.java:112) > at > org.apache.activemq.broker.BrokerFilter.start(BrokerFilter.java:153) > at > org.apache.activemq.broker.BrokerFilter.start(BrokerFilter.java:153) > at > org.apache.activemq.broker.BrokerFilter.start(BrokerFilter.java:153) > at > org.apache.activemq.broker.BrokerFilter.start(BrokerFilter.java:153) > at > org.apache.activemq.broker.MutableBrokerFilter.start(MutableBrokerFilter.java:163) > at > org.apache.activemq.broker.BrokerService.start(BrokerService.java:422) > at > org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:46) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425) > at > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) > at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287) > at > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) > 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.createApplicationContext(XBeanBrokerFactory.java:91) > at > org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:51) > 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:112) > at > org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:74) > at > org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:51) > at > org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:104) > at > org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:51) > at > org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:76) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.apache.activemq.console.Main.runTaskClass(Main.java:222) > at org.apache.activemq.console.Main.main(Main.java:106) > ERROR: java.lang.RuntimeException: Failed to execute start task. Reason: > org.springframework.beans.factory.BeanCreationException: Error creating > bean with name 'org.apache.activemq.xbean.XBean > BrokerService' defined in file > [/home/.../apache-activemq-5.0.0/conf/activemq.xml]: Invocation of init > method failed; nested exception is java.lang.SecurityE > xception: User is not authenticated. > java.lang.RuntimeException: Failed to execute start task. Reason: > org.springframework.beans.factory.BeanCreationException: Error creating > bean with name 'org.apache.activemq.xbean.XBeanBrokerS > ervice' defined in file > [/home/.../apache-activemq-5.0.0/conf/activemq.xml]: Invocation of init > method failed; nested exception is java.lang.SecurityExceptio > n: User is not authenticated. > at > org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:99) > at > org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:51) > at > org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:104) > at > org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:51) > at > org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:76) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.apache.activemq.console.Main.runTaskClass(Main.java:222) > at org.apache.activemq.console.Main.main(Main.java:106) > Caused by: org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService' > defined in file [/home/.../apache-activemq-5.0.0/conf/activemq.xml]: > Invocation of init method failed; nested exception is > java.lang.SecurityException: User is not authenticated. > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1174) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425) > at > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) > at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287) > at > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) > 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.createApplicationContext(XBeanBrokerFactory.java:91) > at > org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:51) > 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:112) > at > org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:74) > ... 10 more > Caused by: java.lang.SecurityException: User is not authenticated. > at > org.apache.activemq.security.AuthorizationBroker.addDestination(AuthorizationBroker.java:52) > at > org.apache.activemq.broker.MutableBrokerFilter.addDestination(MutableBrokerFilter.java:151) > at > org.apache.activemq.broker.region.AbstractRegion.start(AbstractRegion.java:93) > at > org.apache.activemq.broker.region.RegionBroker.start(RegionBroker.java:180) > at > org.apache.activemq.broker.jmx.ManagedRegionBroker.start(ManagedRegionBroker.java:103) > at > org.apache.activemq.broker.TransactionBroker.start(TransactionBroker.java:112) > at > org.apache.activemq.broker.BrokerFilter.start(BrokerFilter.java:153) > at > org.apache.activemq.broker.BrokerFilter.start(BrokerFilter.java:153) > at > org.apache.activemq.broker.BrokerFilter.start(BrokerFilter.java:153) > at > org.apache.activemq.broker.BrokerFilter.start(BrokerFilter.java:153) > at > org.apache.activemq.broker.MutableBrokerFilter.start(MutableBrokerFilter.java:163) > at > org.apache.activemq.broker.BrokerService.start(BrokerService.java:422) > at > org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:46) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171) > ... 25 more > ERROR: java.lang.Exception: > org.springframework.beans.factory.BeanCreationException: Error creating > bean with name 'org.apache.activemq.xbean.XBeanBrokerService' defined in > file [/home/.../apache-activemq-5.0.0/conf/activemq.xml]: Invocation of > init method failed; nested exception is java.lang.SecurityException: User > is not authenticated. > java.lang.Exception: > org.springframework.beans.factory.BeanCreationException: Error creating > bean with name 'org.apache.activemq.xbean.XBeanBrokerService' defined in > file [/home/.../apache-activemq-5.0.0/conf/activemq.xml]: Invocation of > init method failed; nested exception is java.lang.SecurityException: User > is not authenticated. > at > org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:100) > at > org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:51) > at > org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:104) > at > org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:51) > at > org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:76) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.apache.activemq.console.Main.runTaskClass(Main.java:222) > at org.apache.activemq.console.Main.main(Main.java:106) > Caused by: org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService' > defined in file [/home/.../apache-activemq-5.0.0/conf/activemq.xml]: > Invocation of init method failed; nested exception is > java.lang.SecurityException: User is not authenticated. > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1174) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425) > at > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) > at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287) > at > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) > 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.createApplicationContext(XBeanBrokerFactory.java:91) > at > org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:51) > 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:112) > at > org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:74) > ... 10 more > Caused by: java.lang.SecurityException: User is not authenticated. > at > org.apache.activemq.security.AuthorizationBroker.addDestination(AuthorizationBroker.java:52) > at > org.apache.activemq.broker.MutableBrokerFilter.addDestination(MutableBrokerFilter.java:151) > at > org.apache.activemq.broker.region.AbstractRegion.start(AbstractRegion.java:93) > at > org.apache.activemq.broker.region.RegionBroker.start(RegionBroker.java:180) > at > org.apache.activemq.broker.jmx.ManagedRegionBroker.start(ManagedRegionBroker.java:103) > at > org.apache.activemq.broker.TransactionBroker.start(TransactionBroker.java:112) > at > org.apache.activemq.broker.BrokerFilter.start(BrokerFilter.java:153) > at > org.apache.activemq.broker.BrokerFilter.start(BrokerFilter.java:153) > at > org.apache.activemq.broker.BrokerFilter.start(BrokerFilter.java:153) > at > org.apache.activemq.broker.BrokerFilter.start(BrokerFilter.java:153) > at > org.apache.activemq.broker.MutableBrokerFilter.start(MutableBrokerFilter.java:163) > at > org.apache.activemq.broker.BrokerService.start(BrokerService.java:422) > at > org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:46) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171) > ... 25 more > INFO BrokerService - ActiveMQ Message Broker (localhost, > null) is shutting down > INFO TransportConnector - Connector openwire Stopped > INFO BrokerService - ActiveMQ JMS Message Broker > (localhost, null) stopped > > > > Any idea whats wrong? Hiram Chirino wrote: > > Hi in ActiveMQ 5.0.0 we startup a couple of clients by default and > don't configure them with any credentials. So I think that those > clients are the one creating those problems. > > If you removed the <camelContext> and <commandAgent> and <jetty> > sections which are all optional (and new) features.. then I think it > should work again. > > On Dec 10, 2007 6:12 AM, pfid <[EMAIL PROTECTED]> wrote: >> >> I'm currently using a 4.1.1 broker with JAAS authentication, and [...] > -- View this message in context: http://www.nabble.com/Trouble-with-JAAS---5.0.0-tp14250971s2354p14370175.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.