http://people.apache.org/maven-snapshot-repository/org/apache/activemq/activemq-jaas/4.1-incubator-SNAPSHOT/

massive.boisson wrote:
I am experiancing similar issue. How can I get activemq-jaas.jar?

I can't find it in neither 4.0.1, nor 4.0.2, nor
apache-activemq-4.1-incubator-20061020.071006-61.zip

The JIRA issue http://issues.apache.org/activemq/browse/AMQ-801 has not been
updated.

Am I overlooking something, or..... Any ideas?

--MB


Adrian Co wrote:
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



Reply via email to