activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandeep Mahal (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AMQ-1948) CLONE -Broker cannot start when authentication/authorization has been configured
Date Tue, 23 Sep 2008 10:16:53 GMT

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

Sandeep Mahal commented on AMQ-1948:
------------------------------------

I am facing the same error. Can some one please help me on this?

> CLONE -Broker cannot start when authentication/authorization has been configured
> --------------------------------------------------------------------------------
>
>                 Key: AMQ-1948
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1948
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.0.0
>         Environment: Win XP Pro
>            Reporter: Sandeep Mahal
>             Fix For: 5.3.0
>
>
> Authentication/authorization has been configured as shown below:
> {code:title=from activemq.xml}
> <plugins>            
>         <authorizationPlugin>
>             <map>
>                 <authorizationMap>
>                     <authorizationEntries>                        
>                         <authorizationEntry queue="queueA>" read="app1,app2" write="app1,app2"/>
>                         <authorizationEntry queue="queueB>" read="app1,app2" write="app1,app2"/>
>                     </authorizationEntries>
>                 </authorizationMap>
>             </map>
>         </authorizationPlugin>
>         
>         <simpleAuthenticationPlugin>
>             <users>
>                 <authenticationUser username="app1" password="app1" groups="app1"/>
>                 <authenticationUser username="app2" password="app2" groups="app2"/>
>             </users>
>         </simpleAuthenticationPlugin>
>     </plugins>
> {code}
> When starting the broker, the following exception is thrown:
> Dec 19, 2007 6:53:35 PM org.apache.activemq.broker.BrokerService start
> SEVERE: 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.BrokerFilter.addDestination(BrokerFilter.java:141)
> 	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:88)
> 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:76)
> 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:72)
> 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:68)
> 	at org.apache.activemq.xbean.BrokerFactoryBean.afterPropertiesSet(BrokerFactoryBean.java:82)
> 	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:284)
> 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
> 	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
> 	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
> 	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
> 	at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530)
> 	at org.mortbay.jetty.servlet.Context.startContext(Context.java:135)
> 	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
> 	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
> 	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
> 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
> 	at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
> 	at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
> 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
> 	at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
> 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
> 	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
> 	at org.mortbay.jetty.Server.doStart(Server.java:217)
> 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
> 	at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:947)
> 	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.mortbay.start.Main.invokeMain(Main.java:183)
> 	at org.mortbay.start.Main.start(Main.java:497)
> 	at org.mortbay.start.Main.main(Main.java:115)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message