You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by "massive.boisson" <ma...@gmail.com> on 2006/10/31 22:19:00 UTC
Re: Problems with JAAS
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
>>
>
>
>
--
View this message in context: http://www.nabble.com/Problems-with-JAAS-tf1901920.html#a7102896
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Problems with JAAS
Posted by "massive.boisson" <ma...@gmail.com>.
i mean there is one for the latest official release
activemq-jaas-4.0.1.jar --------------- 22-Jun-2006 07:27 ---------------
16K
Adrian Co wrote:
>
> hmmm... jars in that link are pretty old I think.
>
> massive.boisson wrote:
>> Right, or other releases can be found here
>> http://people.apache.org/repo/m1-snapshot-repository/incubator-activemq/jars/.
>>
>> Thanks, somehow I overlooked that.
>>
>> --MB
>>
>>
>>
>> Adrian Co wrote:
>>
>>> http://people.apache.org/maven-snapshot-repository/org/apache/activemq/activemq-jaas/4.1-incubator-SNAPSHOT/
>>>
>>>
>>>
>>>
>>
>>
>
>
>
--
View this message in context: http://www.nabble.com/Problems-with-JAAS-tf1901920.html#a7109298
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Problems with JAAS
Posted by Adrian Co <ac...@exist.com>.
hmmm... jars in that link are pretty old I think.
massive.boisson wrote:
> Right, or other releases can be found here
> http://people.apache.org/repo/m1-snapshot-repository/incubator-activemq/jars/.
>
> Thanks, somehow I overlooked that.
>
> --MB
>
>
>
> Adrian Co wrote:
>
>> http://people.apache.org/maven-snapshot-repository/org/apache/activemq/activemq-jaas/4.1-incubator-SNAPSHOT/
>>
>>
>>
>>
>
>
Re: Problems with JAAS
Posted by "massive.boisson" <ma...@gmail.com>.
Right, or other releases can be found here
http://people.apache.org/repo/m1-snapshot-repository/incubator-activemq/jars/.
Thanks, somehow I overlooked that.
--MB
Adrian Co wrote:
>
> http://people.apache.org/maven-snapshot-repository/org/apache/activemq/activemq-jaas/4.1-incubator-SNAPSHOT/
>
>
>
--
View this message in context: http://www.nabble.com/Problems-with-JAAS-tf1901920.html#a7104060
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Problems with JAAS
Posted by Adrian Co <ac...@exist.com>.
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
>>>
>>>
>>
>>
>
>