Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 65037 invoked from network); 7 Nov 2006 21:57:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Nov 2006 21:57:17 -0000 Received: (qmail 9510 invoked by uid 500); 7 Nov 2006 21:57:06 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 9478 invoked by uid 500); 7 Nov 2006 21:57:06 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 9440 invoked by uid 99); 7 Nov 2006 21:57:06 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 13:57:06 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ammulder@gmail.com designates 66.249.92.171 as permitted sender) Received: from [66.249.92.171] (HELO ug-out-1314.google.com) (66.249.92.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 13:56:29 -0800 Received: by ug-out-1314.google.com with SMTP id m2so1522672ugc for ; Tue, 07 Nov 2006 13:56:08 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=t5XCN1t9CQPDQEBhC5n3jekMXod0tGxivL3Z14FRjXsSZIdyIhO3t0M9yjspSODXht4fq6WG1uPBN+YnzCQgBGX2hERDSlkHijkYskM0XDNJebwZJQO3ZOnm4O8t9ktlu2vdJUT61Qz+Gjw31Dh4q6Zd8ES7j/JGfhekdlo//KM= Received: by 10.82.172.15 with SMTP id u15mr1479671bue.1162936567726; Tue, 07 Nov 2006 13:56:07 -0800 (PST) Received: by 10.82.118.19 with HTTP; Tue, 7 Nov 2006 13:56:07 -0800 (PST) Message-ID: <74e15baa0611071356k749c6428nf5619e9335950b97@mail.gmail.com> Date: Tue, 7 Nov 2006 16:56:07 -0500 From: "Aaron Mulder" Sender: ammulder@gmail.com To: user@geronimo.apache.org Subject: Re: Question regd Geronimo and LoginModules In-Reply-To: <20061107212133.97575.qmail@web56905.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <74e15baa0611071315r13791729k64c595397a1cef96@mail.gmail.com> <20061107212133.97575.qmail@web56905.mail.re3.yahoo.com> X-Google-Sender-Auth: 8a98e6ce09182ea1 X-Virus-Checked: Checked by ClamAV on apache.org There's no way to add a "plan Java" module to an EAR -- you can only list WARs, EJB JARs, or RARs in application.xml. It is possible to put a "plain JAR" in an EAR and add it to the Manifest Class-Path of a module that's listed in application.xml, but if you add it to a web app class path that way, you may just run into the same bug (I don't remember the mechanics of the Manifest Class-Path processing for WARs in 1.0). You can try it, but it wouldn't surprise me if it needed to be listed in the Manifest of an EJB JAR or RAR in order to work. It's also possible to add JARs in the repository to the class path at any level (EAR, WAR, etc.) and that should avoid the bug, but my understanding is that you're trying to avoid this. Thanks, Aaron On 11/7/06, sreepriya ramakrishnan wrote: > > Will it work if I create a new Java project and put > the login module classes in that package. > This package will then be added to ear file? > > Please let me know. > > > --- Aaron Mulder > wrote: > > > On 11/7/06, sreepriya ramakrishnan > > wrote: > > > Hi Aaron,, > > > What is an RA module? > > > > J2EE Connector, Resource Adapter, RAR file, whatever > > you call it. :) > > > > Thanks, > > Aaron > > > > > --- Aaron Mulder > > > wrote: > > > > > > > On 11/7/06, sreepriya ramakrishnan > > > > wrote: > > > > > I am using Geronimo1.0 application server. Is > > > > there > > > > > anything I can do for this? > > > > > > > > Ah, I didn't realize that. There is a known > > issue > > > > in Geronimo 1.0 > > > > that GBeans (which includes login modules) in a > > web > > > > app are not able > > > > to access classes in the WAR (WEB-INF/classes > > and > > > > WEB-INF/lib). That > > > > was fixed in Geronimo 1.1. > > > > > > > > If you have an EJB or RA module in the EAR, you > > can > > > > add the login > > > > module classes to that instead. Otherwise, I > > think > > > > you might have to > > > > work around it by either creating a dummy EJB or > > RA > > > > module or just > > > > putting the login classes in a JAR in the > > > > repository. (Or try > > > > Geronimo 1.1.x) > > > > > > > > Thanks, > > > > Aaron > > > > > > > > > --- Aaron Mulder > > > > > > > wrote: > > > > > > > > > > > OK, we'll have to look into the code there. > > It > > > > may > > > > > > be that this is a > > > > > > bug where we use the wrong class loader to > > > > attempt > > > > > > to load the login > > > > > > module. > > > > > > > > > > > > Thanks, > > > > > > Aaron > > > > > > > > > > > > On 11/7/06, sreepriya ramakrishnan > > > > > > wrote: > > > > > > > The login module class is in the > > > > web-inf/classes > > > > > > > folder. > > > > > > > > > > > > > > 15:10:28,499 ERROR [SecurityFilter] > > > > > > > SecurityFilter.execute() : Exception > > > > > > > javax.security.auth.login.LoginException: > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.geronimo.common.GeronimoSecurityException: > > > > > > > Unable to instantiate login module > > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.geronimo.security.jaas.server.JaasLoginModuleConfiguration.getLoginModule(JaasLoginModuleConfiguration.java:71) > > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.geronimo.security.jaas.server.JaasSecuritySession.(JaasSecuritySession.java:64) > > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.geronimo.security.jaas.server.JaasLoginService.initializeClient(JaasLoginService.java:353) > > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.geronimo.security.jaas.server.JaasLoginService.connectToRealm(JaasLoginService.java:169) > > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.geronimo.security.jaas.server.JaasLoginService$$FastClassByCGLIB$$95b84fc9.invoke() > > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > > net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) > > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118) > > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:800) > > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) > > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:36) > > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) > > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.geronimo.security.jaas.server.JaasLoginServiceMBean$$EnhancerByCGLIB$$5d8c7715.connectToRealm() > > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.geronimo.security.jaas.client.JaasLoginCoordinator.login(JaasLoginCoordinator.java:95) > > > > > > > at > > > > > > > > > > > > > > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > > > > > > Method) > > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > > > > > > at > > > > > > > > java.lang.reflect.Method.invoke(Method.java:585) > > > > > > > at > > > === message truncated === > > > > > > ____________________________________________________________________________________ > Do you Yahoo!? > Everyone is raving about the all-new Yahoo! Mail. > http://new.mail.yahoo.com >