Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 9877 invoked from network); 17 Mar 2011 09:37:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Mar 2011 09:37:07 -0000 Received: (qmail 75369 invoked by uid 500); 17 Mar 2011 09:37:06 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 75336 invoked by uid 500); 17 Mar 2011 09:37:06 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 75328 invoked by uid 99); 17 Mar 2011 09:37:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Mar 2011 09:37:06 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chubrilo@gmail.com designates 209.85.215.171 as permitted sender) Received: from [209.85.215.171] (HELO mail-ey0-f171.google.com) (209.85.215.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Mar 2011 09:37:02 +0000 Received: by eydd26 with SMTP id d26so775133eyd.2 for ; Thu, 17 Mar 2011 02:36:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=n/VhIpO4TVQV67Vu+HALaJoKITxz+t+VdNdgzPhe2Gg=; b=Ti0EmkSK9d6vUY/L+aurkVVaffxfeuB1iO0UxBM7KFu6G2PsnoVNIgGMXJ/FnhKTH/ 7lBhX5baqasNnezngr0r9vFUp9UPpFS2UTvqtFiFwGuuF/BlUlwgXHm9p46ji3B1A/HF nnd/6vn0gCeeGXLgqftNo1XWZpeC1Qb0rkR+8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=VVN7VR7c5aQY/FGUuD54pijoBoza5Q/gYS8oGyMmgqeeB9psF/wegdul1cVyCa86ED Cy4VFcGe6uvQljfUVghUiIH/dOPa0ttcU669qI5X+WPJzs4u4/n2CKCg/I+JzZibyFCz lJceR/8WxbTP2g22lpXFWL+y0Oj1BzfmJCh/4= MIME-Version: 1.0 Received: by 10.213.34.193 with SMTP id m1mr460395ebd.6.1300354600934; Thu, 17 Mar 2011 02:36:40 -0700 (PDT) Sender: chubrilo@gmail.com Received: by 10.213.105.80 with HTTP; Thu, 17 Mar 2011 02:36:40 -0700 (PDT) In-Reply-To: <1300351909910-3383955.post@n4.nabble.com> References: <1300351909910-3383955.post@n4.nabble.com> Date: Thu, 17 Mar 2011 10:36:40 +0100 X-Google-Sender-Auth: hRMxW-jAJtRz7h0T7DHZoehwp4U Message-ID: Subject: Re: jaasAuthenticationPlugin in osgi From: Dejan Bosanac To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=000e0cd5f302121ee9049eaa66a6 --000e0cd5f302121ee9049eaa66a6 Content-Type: text/plain; charset=ISO-8859-1 Hi, this login module class looks strange acme.security.MyLoginModule maybe it's a misconfiguration? Regards -- Dejan Bosanac ----------------- FuseSource - The experts in open source integration and messaging. Email: dejanb@fusesource.com Web: http://fusesource.com Twitter: http://twitter.com/dejanb ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Thu, Mar 17, 2011 at 9:51 AM, JacobS wrote: > 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. > --000e0cd5f302121ee9049eaa66a6--