activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JacobS <jacobhame...@gmail.com>
Subject jaasAuthenticationPlugin in osgi
Date Thu, 17 Mar 2011 08:51:49 GMT
I am trying to use the jaasAuthenticationPlugin in my osgi environment (
Virgo web server with spring-dm ), but after creating an LoginModule
implementation and exposing it to the service registry the activemq bundle
cannot find it and throws this exception:

10:34:45.262 [ActiveMQ Transport: tcp:///127.0.0.1:51561] WARN 
o.a.a.broker.TransportConnection - Failed to add Connection
java.lang.SecurityException: User name or password is invalid.
	at
org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:83)
~[bundlefile:5.4.1]
	at
org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:85)
~[bundlefile:5.4.1]
	at
org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:91)
~[bundlefile:5.4.1]
	at
org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:694)
[bundlefile:5.4.1]
	at
org.apache.activemq.broker.jmx.ManagedTransportConnection.processAddConnection(ManagedTransportConnection.java:83)
[bundlefile:5.4.1]
	at
org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:137)
[bundlefile:5.4.1]
	at
org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:309)
[bundlefile:5.4.1]
	at
org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:185)
[bundlefile:5.4.1]
	at
org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:69)
[bundlefile:5.4.1]
	at
org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113)
[bundlefile:5.4.1]
	at
org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:228)
[bundlefile:5.4.1]
	at
org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
[bundlefile:5.4.1]
	at
org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:219)
[bundlefile:5.4.1]
	at
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:201)
[bundlefile:5.4.1]
	at java.lang.Thread.run(Thread.java:662) [na:1.6.0_24]
Caused by: javax.security.auth.login.LoginException: unable to find
LoginModule class: acme.security.MyLoginModule in KernelBundleClassLoader:
[bundle=org.apache.activemq.activemq-core_5.4.1]
	at javax.security.auth.login.LoginContext.invoke(LoginContext.java:808)
~[na:1.6.0_24]
	at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
~[na:1.6.0_24]
	at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
~[na:1.6.0_24]
	at java.security.AccessController.doPrivileged(Native Method)
~[na:1.6.0_24]
	at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
~[na:1.6.0_24]
	at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
~[na:1.6.0_24]
	at
org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:76)
~[bundlefile:5.4.1]

I am using activemq 5.4.1

Thanks
Jacob


--
View this message in context: http://activemq.2283324.n4.nabble.com/jaasAuthenticationPlugin-in-osgi-tp3383955p3383955.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message