activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Co <...@exist.com>
Subject Re: Problems with JAAS
Date Fri, 28 Jul 2006 07:12:14 GMT
Hi,

The activemq-jaas jar file may not have been included in the distro. You 
could try building the jaas module from source and dropping the jar file 
in the lib dir.

But I would suggest trying out the 4.0.2 release as this also has 
several bug fixes.

zmccoy wrote:
> Hello,
>
> I'm trying to configure JAAS with ActiveMQ 4.0-RC2, and I'm getting the
> following errors when I attempt to start the broker.
>
> login.config is in the CLASSPATH:
>
> localhost bin # echo $CLASSPATH
> /usr/share/activemq-4.0-RC2/activemq-4.0-RC2.jar:/usr/share/activemq-4.0-RC2/conf/login.config
>
> Start the ActiveMQ broker:
>
> localhost bin # ./activemq
> ACTIVEMQ_HOME: /home/zmccoy/ESB/activemq-4.0-RC2
> Loading message broker from: xbean:activemq.xml
> ERROR: java.lang.RuntimeException: Failed to execute start task. Reason:
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'org.apache.activemq.security.AuthorizationEntry' defined in class
> path resource [activemq.xml]: Error setting property values; nested
> exception is org.springframework.beans.PropertyAccessExceptionsException:
> PropertyAccessExceptionsException (3 errors); nested
> propertyAccessExceptions are:
> [org.springframework.beans.MethodInvocationException: Property 'admin' threw
> exception; nested exception is java.lang.NoClassDefFoundError:
> org/apache/activemq/jaas/GroupPrincipal],
> [org.springframework.beans.MethodInvocationException: Property 'read' threw
> exception; nested exception is java.lang.NoClassDefFoundError:
> org/apache/activemq/jaas/GroupPrincipal],
> [org.springframework.beans.MethodInvocationException: Property 'write' threw
> exception; nested exception is java.lang.NoClassDefFoundError:
> org/apache/activemq/jaas/GroupPrincipal]
> ERROR: java.lang.Exception:
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'org.apache.activemq.security.AuthorizationEntry' defined in class
> path resource [activemq.xml]: Error setting property values; nested
> exception is org.springframework.beans.PropertyAccessExceptionsException:
> PropertyAccessExceptionsException (3 errors); nested
> propertyAccessExceptions are:
> [org.springframework.beans.MethodInvocationException: Property 'admin' threw
> exception; nested exception is java.lang.NoClassDefFoundError:
> org/apache/activemq/jaas/GroupPrincipal],
> [org.springframework.beans.MethodInvocationException: Property 'read' threw
> exception; nested exception is java.lang.NoClassDefFoundError:
> org/apache/activemq/jaas/GroupPrincipal],
> [org.springframework.beans.MethodInvocationException: Property 'write' threw
> exception; nested exception is java.lang.NoClassDefFoundError:
> org/apache/activemq/jaas/GroupPrincipal]
>
> Here is a snippet from activemq.xml:
>
>    <plugins>
>       <!--  use JAAS to authenticate using the login.config file on the
> classpath to configure JAAS -->
>       <jaasAuthenticationPlugin configuration="activemq-domain" />
>
>       <!--  lets configure a destination based authorization mechanism -->
>       <authorizationPlugin>
>         <map>
>           <authorizationMap>
>             <authorizationEntries>
>               <authorizationEntry queue=">" read="grouper" write="grouper"
> admin="grouper" />
>               <authorizationEntry topic=">" read="grouper" write="grouper"
> admin="grouper" />
>             </authorizationEntries>
>           </authorizationMap>
>         </map>
>       </authorizationPlugin>
>
>    </plugins>
>
> Here is login.config:
>
> activemq-domain {
>    org.apache.activemq.jaas.PropertiesLoginModule required
>    debug=true
>    org.apache.activemq.jaas.properties.user="users.properties"
>    org.apache.activemq.jaas.properties.group="groups.properties";
> };
>
> Here is users.properties:
>
> DEFAULT_USER=DEFAULT_PASSWORD
>
> Here is groups.properties:
>
> DEFAULT_USER=grouper
>
>
> Any suggestions?
>
> --
> Zach
>   


Mime
View raw message