Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 67364 invoked from network); 31 Aug 2006 13:50:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 Aug 2006 13:50:08 -0000 Received: (qmail 1768 invoked by uid 500); 31 Aug 2006 13:50:05 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 1733 invoked by uid 500); 31 Aug 2006 13:50:05 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 1722 invoked by uid 99); 31 Aug 2006 13:50:05 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Aug 2006 06:50:05 -0700 X-ASF-Spam-Status: No, hits=2.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [68.142.201.188] (HELO web31708.mail.mud.yahoo.com) (68.142.201.188) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 31 Aug 2006 06:50:03 -0700 Received: (qmail 93488 invoked by uid 60001); 31 Aug 2006 13:49:42 -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=gnHzttEo3O+Q9864eLtjemgQiC0B04KR0FED96H9RT0WW7/LvhHJsp7/QaXsW4KL7dYym6y8Lh9iFG7j2aNSXHUeQ6APp3ylZoEZLe8I4XrwPolIcBTgkHEKxW9asGb0INoN/miT6Y7Mbpk4LPe0YKy9sWCo8D+qSppJo/3L90Q= ; Message-ID: <20060831134942.93486.qmail@web31708.mail.mud.yahoo.com> Received: from [24.211.208.98] by web31708.mail.mud.yahoo.com via HTTP; Thu, 31 Aug 2006 06:49:42 PDT Date: Thu, 31 Aug 2006 06:49:42 -0700 (PDT) From: anita kulshreshtha Subject: Re: [jira] Closed: (GERONIMO-2211) Enable tests (geronimo-security :: **/ConfigurationEntryTest.java) To: dev@geronimo.apache.org In-Reply-To: <20060831130039.66518.qmail@web31707.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 One more thing.. In m1 the jvm was forked from basedir, hence we have all the file references as target/.... http://maven.apache.org/maven-1.x/plugins/test/properties.html So we should modify all the tests to not used target! Thanks Anita --- anita kulshreshtha wrote: > I have always wondered why we need to do this: > File auditlog = new File(BASEDIR, "target/login-audit.log"); > instead of > File auditlog = new File("target/login-audit.log"); > > The relative file references in java are resolved using the > current > user dir, given by the system property user.dir, and is typically the > directory in which the Java virtual machine was invoked. > The specifies the dir the jvm is forked from. > If > it is set to {basedir}/target by default, then all the tests should > just use: > File auditlog = new File("login-audit.log"); > This is the most natural way. WDYT? > > Thanks > Anita > > --- "Jason Dillon (JIRA)" wrote: > > > [ http://issues.apache.org/jira/browse/GERONIMO-2211?page=all > ] > > > > Jason Dillon closed GERONIMO-2211. > > ---------------------------------- > > > > Resolution: Fixed > > > > Thanks Anita for pointing out that it works with basedir, the > > reference to the login-audit.log was not being rooted with BASEDIR. > > > > Looks okay now, so I'm enabling this test again. > > > > > Enable tests (geronimo-security :: > **/ConfigurationEntryTest.java) > > > > ------------------------------------------------------------------ > > > > > > Key: GERONIMO-2211 > > > URL: > > http://issues.apache.org/jira/browse/GERONIMO-2211 > > > Project: Geronimo > > > Issue Type: Sub-task > > > Security Level: public(Regular issues) > > > Affects Versions: 1.2 > > > Reporter: Jason Dillon > > > Assigned To: Jason Dillon > > > Fix For: 1.2 > > > > > > > > > A few tests failed in non-obvious ways when run under the m2 > build. > > Need someone who knows these tests better to inspect, resolve and > > enable the test (remove the test exclusions in the pom). > > > The test fails with (on the console): > > > {noformat} > > > DEBUG [main] Starting boot > > > DEBUG [main] GBeanInstanceState for: > > geronimo/boot/none/car?role=kernel State changed from stopped to > > starting > > > DEBUG [main] GBeanInstanceState for: > > geronimo/boot/none/car?role=kernel State changed from starting to > > running > > > DEBUG [main] Booted > > > DEBUG [main] GBeanInstanceState for: > test/foo/1/car?name=ServerInfo > > State changed from stopped to starting > > > DEBUG [main] GBeanInstanceState for: > test/foo/1/car?name=ServerInfo > > State changed from starting to running > > > DEBUG [main] GBeanInstanceState for: > > test/foo/1/car?new=LoginConfiguration State changed from stopped to > > starting > > > DEBUG [main] Installed Geronimo login configuration > > > DEBUG [main] GBeanInstanceState for: > > test/foo/1/car?new=LoginConfiguration State changed from starting > to > > running > > > DEBUG [main] GBeanInstanceState for: > > test/foo/1/car?name=TestLoginService State changed from stopped to > > starting > > > DEBUG [main] GBeanInstanceState for: > > test/foo/1/car?name=TestLoginService State changed from starting to > > running > > > DEBUG [main] GBeanInstanceState for: > > test/foo/1/car?name=JaasLoginServiceRemotingServer State changed > from > > stopped to starting > > > DEBUG [main] Remote login service started on: tcp://0.0.0.0:4242 > > clients can connect to: tcp://0.0.0.0:4242 > > > DEBUG [main] GBeanInstanceState for: > > test/foo/1/car?name=JaasLoginServiceRemotingServer State changed > from > > starting to running > > > DEBUG [main] GBeanInstanceState for: > > test/foo/1/car?name=client-ConfigurationEntry State changed from > > stopped to starting > > > DEBUG [main] GBeanInstanceState for: > > test/foo/1/car?name=client-ConfigurationEntry State changed from > > starting to running > > > DEBUG [main] Added Application Configuration Entry > > properties-client > > > DEBUG [main] GBeanInstanceState for: > > test/foo/1/car?name=PropertiesSecurityRealm State changed from > > stopped to starting > > > DEBUG [main] Waiting to start > > test/foo/1/car?name=PropertiesSecurityRealm because no targets are > > running for reference LoginModuleConfiguration matching the > patterns > > test/foo/1/car?name=PropertiesLoginModuleUse > > > DEBUG [main] GBeanInstanceState for: > > test/foo/1/car?name=AuditLoginModule State changed from stopped to > > starting > > > DEBUG [main] GBeanInstanceState for: > > test/foo/1/car?name=AuditLoginModule State changed from starting to > > running > > > DEBUG [main] GBeanInstanceState for: > > test/foo/1/car?name=AuditLoginModuleUse State changed from stopped > to > > starting > > > DEBUG [main] Waiting to start > > test/foo/1/car?name=AuditLoginModuleUse because no targets are > > running for reference Next matching the patterns > > test/foo/1/car?name=UPCredLoginModuleUse > > > DEBUG [main] GBeanInstanceState for: > > test/foo/1/car?name=PropertiesLoginModule State changed from > stopped > > to starting > > > DEBUG [main] GBeanInstanceState for: > > test/foo/1/car?name=PropertiesLoginModule State changed from > starting > > to running > > > DEBUG [main] GBeanInstanceState for: > > test/foo/1/car?name=PropertiesLoginModuleUse State changed from > > stopped to starting > > > DEBUG [main] Waiting to start > > test/foo/1/car?name=PropertiesLoginModuleUse because no targets are > > running for reference Next matching the patterns > > test/foo/1/car?name=AuditLoginModuleUse > > > DEBUG [main] GBeanInstanceState for: > > test/foo/1/car?name=UPCredLoginModule State changed from stopped to > > starting > > > DEBUG [main] GBeanInstanceState for: > > test/foo/1/car?name=UPCredLoginModule State changed from starting > to > > running > > > DEBUG [main] GBeanInstanceState for: > > test/foo/1/car?name=UPCredLoginModuleUse State changed from stopped > > to starting > > > DEBUG [main] GBeanInstanceState for: > > test/foo/1/car?name=UPCredLoginModuleUse State changed from > starting > > to running > > > DEBUG [main] Checking if parent is running: > > parent=test/foo/1/car?name=AuditLoginModule > > > DEBUG [main] Parent is running: > > parent=test/foo/1/car?name=AuditLoginModule > > > DEBUG [main] GBeanInstanceState for: > > test/foo/1/car?name=AuditLoginModuleUse State changed from starting > > to running > > > DEBUG [main] Checking if parent is running: > > parent=test/foo/1/car?name=PropertiesLoginModule > > > DEBUG [main] Parent is running: > > parent=test/foo/1/car?name=PropertiesLoginModule > > > DEBUG [main] GBeanInstanceState for: > > test/foo/1/car?name=PropertiesLoginModuleUse State changed from > > starting to running > > > DEBUG [main] Checking if parent is running: > > parent=test/foo/1/car?name=ServerInfo > > > DEBUG [main] Parent is running: > > parent=test/foo/1/car?name=ServerInfo > > > DEBUG [main] Checking if parent is running: > > parent=test/foo/1/car?name=TestLoginService > > > DEBUG [main] Parent is running: > > parent=test/foo/1/car?name=TestLoginService > > > DEBUG [main] GBeanInstanceState for: > > test/foo/1/car?name=PropertiesSecurityRealm State changed from > > starting to running > > > DEBUG [main] Added Application Configuration Entry > properties-realm > > > > > DEBUG [main] GBeanInstanceState for: > > test/foo/1/car?name=JaasLoginServiceRemotingServer State changed > from > > running to stopping > > > DEBUG [main] Stopped remote login service. > > > DEBUG [main] GBeanInstanceState for: > > test/foo/1/car?name=JaasLoginServiceRemotingServer State changed > from > > stopping to stopped > > > DEBUG [main] GBeanInstanceState for: > > test/foo/1/car?name=PropertiesSecurityRealm State changed from > > running to stopping > > > DEBUG [main] Removed Application Configuration Entry > > properties-realm > > > DEBUG [main] GBeanInstanceState for: > > test/foo/1/car?name=PropertiesSecurityRealm State changed from > > stopping to stopped > > > DEBUG [main] GBeanInstanceState for: > > test/foo/1/car?name=UPCredLoginModule State changed from running to > === message truncated === __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com