Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-1309

baseDn attribute in Cached LDAP Authorization Plug-In

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • JBoss A-MQ 6.2
    • JBoss A-MQ 6.1
    • None
    • None

    Description

      according to ActiveMQ docs
      here http://activemq.apache.org/cached-ldap-authorization-module.html
      and here https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_A-MQ/6.1/html-single/Security_Guide/index.html#Auth-CachedLDAPAuthzPlugin,
      there should be baseDn attribute configurable for Cached LDAP Authorization Plug-In.

      With baseDn attribute is ActiveMQ inacessible from hawt.io console.
      Stacktrace:

      2014-08-04 15:21:47,810 | ERROR | pool-17-thread-1 | ActiveMQServiceFactory           | ?                                   ? | 141 - org.jboss.amq.mq-fabric - 6.1.0.redhat-387 | Exception on start: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in file [/home/jludvice/apps/fuse/jboss-fuse-6.1.0.redhat-379/etc/activemq.xml]: Cannot create inner bean 'authorizationPlugin#7f661095' of type [org.apache.activemq.security.AuthorizationPlugin] while setting bean property 'plugins' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorizationPlugin#7f661095' defined in file [/home/jludvice/apps/fuse/jboss-fuse-6.1.0.redhat-379/etc/activemq.xml]: Cannot create inner bean '(inner bean)' of type [org.apache.activemq.security.CachedLDAPAuthorizationMap] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#6' defined in file [/home/jludvice/apps/fuse/jboss-fuse-6.1.0.redhat-379/etc/activemq.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'baseDn' of bean class [org.apache.activemq.security.CachedLDAPAuthorizationMap]: Bean property 'baseDn' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?                                                                                                                                                                                   
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in file [/home/jludvice/apps/fuse/jboss-fuse-6.1.0.redhat-379/etc/activemq.xml]: Cannot create inner bean 'authorizationPlugin#7f661095' of type [org.apache.activemq.security.AuthorizationPlugin] while setting bean property 'plugins' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorizationPlugin#7f661095' defined in file [/home/jludvice/apps/fuse/jboss-fuse-6.1.0.redhat-379/etc/activemq.xml]: Cannot create inner bean '(inner bean)' of type [org.apache.activemq.security.CachedLDAPAuthorizationMap] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#6' defined in file [/home/jludvice/apps/fuse/jboss-fuse-6.1.0.redhat-379/etc/activemq.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'baseDn' of bean class [org.apache.activemq.security.CachedLDAPAuthorizationMap]: Bean property 'baseDn' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?                                                                                                                                                                     
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:279)[124:org.apache.servicemix.bundles.spring-beans:3.2.8.RELEASE_1]              
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:121)[124:org.apache.servicemix.bundles.spring-beans:3.2.8.RELEASE_1]       
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:350)[124:org.apache.servicemix.bundles.spring-beans:3.2.8.RELEASE_1]            
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:154)[124:org.apache.servicemix.bundles.spring-beans:3.2.8.RELEASE_1]       
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1417)[124:org.apache.servicemix.bundles.spring-beans:3.2.8.RELEASE_1]                                                                                                                                                                                                                 
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1158)[124:org.apache.servicemix.bundles.spring-beans:3.2.8.RELEASE_1]   
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[124:org.apache.servicemix.bundles.spring-beans:3.2.8.RELEASE_1]    
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)[124:org.apache.servicemix.bundles.spring-beans:3.2.8.RELEASE_1]      
              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)[124:org.apache.servicemix.bundles.spring-beans:3.2.8.RELEASE_1]                                   
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)[124:org.apache.servicemix.bundles.spring-beans:3.2.8.RELEASE_1]                
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)[124:org.apache.servicemix.bundles.spring-beans:3.2.8.RELEASE_1]                                     
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)[124:org.apache.servicemix.bundles.spring-beans:3.2.8.RELEASE_1]                                       
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:628)[124:org.apache.servicemix.bundles.spring-beans:3.2.8.RELEASE_1]        
              at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)[121:org.apache.servicemix.bundles.spring-context:3.2.8.RELEASE_1]     
              at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)[121:org.apache.servicemix.bundles.spring-context:3.2.8.RELEASE_1]                             
              at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)[133:org.apache.xbean.spring:3.15.0]                                                           
              at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)[133:org.apache.xbean.spring:3.15.0]                                                           
              at org.fusesource.mq.fabric.ActiveMQServiceFactory$$anon$1.<init>(ActiveMQServiceFactory.scala:105)[141:org.jboss.amq.mq-fabric:6.1.0.redhat-387]                                                            
              at org.fusesource.mq.fabric.ActiveMQServiceFactory$.createBroker(ActiveMQServiceFactory.scala:105)[141:org.jboss.amq.mq-fabric:6.1.0.redhat-387]                                                             
              at org.fusesource.mq.fabric.ActiveMQServiceFactory$ClusteredConfiguration.org$fusesource$mq$fabric$ActiveMQServiceFactory$ClusteredConfiguration$$doStart(ActiveMQServiceFactory.scala:431)[141:org.jboss.amq.mq-fabric:6.1.0.redhat-387]                                                                                                                                                                                         
              at org.fusesource.mq.fabric.ActiveMQServiceFactory$ClusteredConfiguration$$anon$4.run(ActiveMQServiceFactory.scala:373)[141:org.jboss.amq.mq-fabric:6.1.0.redhat-387]                                        
      
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorizationPlugin#7f661095' defined in file [/home/jludvice/apps/fuse/jboss-fuse-6.1.0.redhat-379/etc/activemq.xml]: Cannot create inner bean '(inner bean)' of type [org.apache.activemq.security.CachedLDAPAuthorizationMap] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#6' defined in file [/home/jludvice/apps/fuse/jboss-fuse-6.1.0.redhat-379/etc/activemq.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'baseDn' of bean class [org.apache.activemq.security.CachedLDAPAuthorizationMap]: Bean property 'baseDn' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?                                                                                                                                            
      
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#6' defined in file [/home/jludvice/apps/fuse/jboss-fuse-6.1.0.redhat-379/etc/activemq.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'baseDn' of bean class [org.apache.activemq.security.CachedLDAPAuthorizationMap]: Bean property 'baseDn' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?                                                                                   
      
      Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'baseDn' of bean class [org.apache.activemq.security.CachedLDAPAuthorizationMap]: Bean property 'baseDn' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
                                                                                                                                                                                                                       
      

      Attachments

        Issue Links

          Activity

            People

              fbolton@redhat.com Fintan Bolton (Inactive)
              jludvice Josef Ludvicek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: