From user-return-979-apmail-geronimo-user-archive=geronimo.apache.org@geronimo.apache.org Thu Oct 20 06:36:50 2005 Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 75983 invoked from network); 20 Oct 2005 06:36:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Oct 2005 06:36:49 -0000 Received: (qmail 14925 invoked by uid 500); 20 Oct 2005 06:36:47 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 14892 invoked by uid 500); 20 Oct 2005 06:36:47 -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 14881 invoked by uid 99); 20 Oct 2005 06:36:47 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Oct 2005 23:36:47 -0700 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=DNS_FROM_RFC_ABUSE,MAILTO_TO_SPAM_ADDR,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [209.191.68.185] (HELO web34906.mail.mud.yahoo.com) (209.191.68.185) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 19 Oct 2005 23:36:46 -0700 Received: (qmail 72280 invoked by uid 60001); 20 Oct 2005 06:36:25 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=uL6p3PlsHamkoaZLrR+OOUtaPYBaDyTrDtbg0qS8PAkdhh8FlWf7/BLlHe01ell5yqoZngwIA4Fnbv9eeqB1/C2KH5wFout8nosJNJctgqrbCL8wqq+7yMF1UJ0o1QxCnOB0FoCRrFFCEQOg49/EaDnoL5ICN0mLd35PyeBaEcw= ; Message-ID: <20051020063625.72278.qmail@web34906.mail.mud.yahoo.com> Received: from [128.187.0.165] by web34906.mail.mud.yahoo.com via HTTP; Wed, 19 Oct 2005 23:36:25 PDT Date: Wed, 19 Oct 2005 23:36:25 -0700 (PDT) From: Subject: Re: The state of Geronimo To: user@geronimo.apache.org In-Reply-To: <20051020062414.70889.qmail@web34909.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N At the bottom of the login() method in SQLLoginModule: found should be returned, not true :). My first fix to Geronimo! Tyler --- tbot55@yahoo.com wrote: > Actually, I found a serious bug, I got an exception > on > the executeQuery() statement, and it went to the > finally{}, returned true, and gave me access. > > This is probably an easy fix, but was just telling > you > guys about this hole. > > Tyler > > > --- tbot55@yahoo.com wrote: > > > Yee haw! It works, debugging in the code is my > best > > bet at this point. > > > > The DB2 universal driver didn't want the username > > and > > password passed in the URL and as properties. > > > > Thanks all! Now I could easily do the > parameterized > > username stuff. I'll try modifying it now. > > > > Tyler > > > > > > --- David Jencks wrote: > > > > > > > > On Oct 19, 2005, at 10:19 PM, > > > wrote: > > > > > > > I'm so determined I'm rebuilding M5 with print > > > > statements in the SQLLoginModule file. > > Something's > > > > clearly wrong with something (dunno what). I > may > > > be > > > > narrowing it down. From then I guess I can > build > > > my > > > > own modules that will connect to the database > > the > > > way > > > > I want, no? > > > > > > That should work. BTW, the SQLLoginModule is, > > umm, > > > less than the most > > > sophisticated code ever seen, so if you want to > > > improve it we would all > > > be appreciative. See > > > > http://issues.apache.org/jira/browse/GERONIMO-409. > > > > > I think some easy > > > improvements would be to use prepared statements > > > with the user info as > > > parameters rather than fetching all the info > each > > > time. > > > > > > Another, deeper, issue is that it makes a direct > > > connection to the > > > database rather than getting one out of a > > connection > > > pool. I have > > > never thought this was a good idea. However, > jndi > > > is not available to > > > look up datasources in a login module, so you > > would > > > have to get the > > > datasource more directly from a > > > ManagedConnectionFactoryWrapper gbean. > > > The call would be IIRC > > > > > > DataSource ds = > (DataSource)kernel.invoke(mcfName, > > > "$getResource"); > > > > > > This would let you use pooled connections which > > > ought to be faster for > > > most databases. > > > > > > I do wonder what the cause of your problems > might > > be > > > because there is a > > > working unit test for this login module. > > > > > > > > If there's a quicker way to rebuild changes > like > > > this, > > > > then please let me know. > > > > > > > > I rebuild security. Then I rebuild assembly, > and > > > use > > > > the new server.jar in the > > > > modules/assembly/target/geronimo-1.0-M5/bin > > > directory. > > > > > > This will definitely work. I usually find it is > > > more efficient to > > > debug the server in an IDE though. I use IDEA > > and > > > start the server > > > like this: > > > > > > java -Xdebug -Xnoagent -Djava.compiler=NONE > > > > > > -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 > > > -jar > > > bin/server.jar > > > > > > and have a remote debugging configuration for > that > > > in IDEA. I think > > > you can do essentially the same thing in > eclipse. > > > > > > thanks, > > > david jencks > > > > > > > > > > > Thanks! > > > > Tyler > > > > > > > > > > > > --- Bruce Snyder > wrote: > > > > > > > >> On 10/19/05, tbot55@yahoo.com > > > > > >> wrote: > > > >>> Lets have some discussion, maybe I'm totally > > > >> missing > > > >>> somethings. > > > >>> > > > >>> Currently I see all/most the applications > I've > > > >> looked > > > >>> at as J2EE apps. This is the goal of > Geronimo, > > > but > > > >>> they largly bypass the low-level purposes of > > > >> Geronimo > > > >>> by just sticking to J2EE and JSP. Though the > > > >> GBeans > > > >>> thing is cool. The goals are the same, but > > > >>> accomplished in different ways. > > > >> > > > >> The reason the apps you see today running on > > > >> Geronimo are J2EE apps of > > > >> some type is because that was one of the > first > > > goals > > > >> of Geronimo - > > > >> J2EE 1.4 certification. In time, people will > > > >> understand that they can > > > >> construct their own application server by > > > assembling > > > >> different pieces > > > >> of software using the Geronimo kernel and > GBean > > > >> architecture and only > > > >> then will we see the true power of Geronimo > > begin > > > to > > > >> emerge. > > > >> > > > >> J2EE is simply one goal for Geronimo, it is > > > >> certainly not *the* goal > > > >> (after all, J2EE compliance is simply a set > of > > > >> configuration files). > > > >> Another goal includes the result of the > kernel > > > and > > > >> GBean architecture > > > >> - the ability to easily plug in just about > any > > > piece > > > >> of software to > > > >> run in the Geronimo space. Still another goal > > > (and a > > > >> very important > > > >> one) was to accomplish all of this work under > > the > > > >> Apache License. I > > > >> could go on and on, but I highly suggest > > reading > > > >> through at least the > > > >> wiki (http://wiki.apache.org/geronimo/) to > > > >> understand Geronimo from > > > >> your own perspective. > === message truncated === __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com