activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zmccoy <zmc...@pa.aacisd.com>
Subject Problems with JAAS
Date Thu, 06 Jul 2006 17:07:37 GMT

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
-- 
View this message in context: http://www.nabble.com/Problems-with-JAAS-tf1901920.html#a5203781
Sent from the ActiveMQ - User forum at Nabble.com.


Mime
View raw message