Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 61539 invoked from network); 4 Jun 2007 10:02:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jun 2007 10:02:52 -0000 Received: (qmail 11337 invoked by uid 500); 4 Jun 2007 10:02:55 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 10722 invoked by uid 500); 4 Jun 2007 10:02:53 -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 10711 invoked by uid 99); 4 Jun 2007 10:02:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2007 03:02:53 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2007 03:02:47 -0700 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Hv9OM-0002Tr-N9 for user@geronimo.apache.org; Mon, 04 Jun 2007 03:02:26 -0700 Message-ID: <10946849.post@talk.nabble.com> Date: Mon, 4 Jun 2007 03:02:26 -0700 (PDT) From: MoleSon To: user@geronimo.apache.org Subject: Re: Login Module not found In-Reply-To: <490F01F2-8E0A-46AF-9C18-91D0C04BCED6@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: sascha.gebhardt@t-online.de References: <10894283.post@talk.nabble.com> <1639D6BB-B7F8-4267-B147-3531B27CC939@yahoo.com> <10945123.post@talk.nabble.com> <490F01F2-8E0A-46AF-9C18-91D0C04BCED6@yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org I managed to get it working: I wrote a deployment deskriptor for the security realm to deploy it server-wide. The trick to get it working was to add a dependency to my EAR-application. Thanks a lot! djencks wrote: > > > On Jun 4, 2007, at 12:42 AM, MoleSon wrote: > >> >>> Don't set these environment variables. >> Doesn't make any difference... >>> Since you mention ejbs I assume that you are deploying an >>> ear. >> Yes, I am deploying an EAR >>> If you could outline the structure of the project and indicate >>> exactly where you've specified the security realm that would be >>> helpful >> It is hard to outline the structure of the porject, because it >> contains >> about 4000 classes and ca. 30 modules. Generally it is an EAR-file >> containing the module .jars and only one .war archive. > > Where are the jar(s) containing the login module class and the > classes it needs to work? > >> I tried to deploy a >> server wide security realm via the administrative console, but this >> did not >> work. For now I'm trying to add my security realm configuration to my >> geronimo-application.xml file, to deploy it wlith the application >> but I am >> not able to get it working because I have no idea where and how to >> put it. >> Here is one way I tried it, but geronimo did not like it: >> >> > xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.1" >> xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1" >> xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1"> >> >> ... >> >> >> Web.war >> ... >> >> all the other modules >> > class="org.apache.geronimo.security.realm.GenericSecurityRealm"> >> realm >> >> ServerInfo >> >> >> JaasLoginService >> >> >> > xmlns:log="http://geronimo.apache.org/xml/ns/loginconfig-1.1"> >> > server-side="true" wrap-principals="false"> >> >> realm >> >> >> ourLoginClass >> >> >> >> >> >> > > This should work. Along with telling us exactly where the missing > classes actually are, and if they aren't in an ejb jar how they get > into the classpath, please show the stack trace from the > ClassNotFoundException. > >> I also tried to add the gbean to the web module part as well as to >> create a >> new module that just holds it. -> also did not work > That should also work :-) > >> Could anybody tell me if trying to deploy the securtity realm >> together with >> the ear file could help me solve my problem and if yes: how do I do >> that? > > What you are trying looks ok to me, so I hope your answers to my > additional questions will let us see where the problem lies. > > thanks > david jencks > >> >> Thanks a lot so far, Sascha >> >> >> >> djencks wrote: >>> > > > -- View this message in context: http://www.nabble.com/Login-Module-not-found-tf3846639s134.html#a10946849 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.