Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 57229 invoked from network); 21 Feb 2005 14:33:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 21 Feb 2005 14:33:32 -0000 Received: (qmail 19702 invoked by uid 500); 21 Feb 2005 14:33:28 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 19665 invoked by uid 500); 21 Feb 2005 14:33:27 -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 Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 19651 invoked by uid 99); 21 Feb 2005 14:33:27 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from sun.savoirtech.com (HELO sun.savoirtech.com) (209.181.65.237) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 21 Feb 2005 06:33:27 -0800 Received: from [170.152.67.222] ([10.197.197.54]) by sun.savoirtech.com (8.12.11/8.12.11) with ESMTP id j1LEXD6a006127 for ; Mon, 21 Feb 2005 07:33:18 -0700 Message-ID: <4219F122.6060200@apache.org> Date: Mon, 21 Feb 2005 07:33:06 -0700 From: Jeff Genender Reply-To: jgenender@apache.org Organization: Apache Geronimo User-Agent: Mozilla Thunderbird 0.9 (Macintosh/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@geronimo.apache.org Subject: Re: Tomcat 5.5.8-alpha breaks JAASSecurityTest.testGoodAuthentication test References: <4219E346.50506@apache.org> In-Reply-To: <4219E346.50506@apache.org> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-100.3 required=5.6 tests=AWL,BAYES_44, USER_IN_WHITELIST autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on sun.savoirtech.com X-Virus-Scanned: clamd / ClamAV version 0.74, clamav-milter version 0.74a on sun.savoirtech.com X-Virus-Status: Clean X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Jacek, Does this work in 5.5.7? Jeff Jacek Laskowski wrote: > Hi, > > Does anyone know why upgrading Tomcat to 5.5.8-alpha version breaks the > JAASSecurityTest.testGoodAuthentication test of the tomcat module? > > To recreate the issue change etc/project.properties so that jasper and > tomcat libs are of 5.5.8-alpha version and do maven test:test beneath > modules/tomcat directory. Don't forget to be online the first time to > have Maven download the jars. > > It prints out the following message: > > INFO: Installed Geronimo login configuration > 2005-02-21 12:03:41 org.apache.geronimo.security.SecurityServiceImpl > INFO: JACC factory registered > 2005-02-21 12:03:41 > org.apache.geronimo.security.jaas.GeronimoLoginConfiguration > addConfiguration > INFO: Added Application Configuration Entry demo-properties-realm > 2005-02-21 12:03:41 org.apache.catalina.realm.JAASRealm setContainer > INFO: Set JAAS app name securetest > 2005-02-21 12:03:41 org.apache.geronimo.tomcat.TomcatWebAppContext doStart > INFO: TomcatWebAppContext started > 2005-02-21 12:03:41 org.apache.geronimo.tomcat.TomcatJAASRealm authenticate > WARNING: Login exception authenticating username "alan" > javax.security.auth.login.LoginException: Login Failure: all modules > ignored > at > javax.security.auth.login.LoginContext.invoke(LoginContext.java:921) > at > javax.security.auth.login.LoginContext.access$000(LoginContext.java:186) > at > javax.security.auth.login.LoginContext$4.run(LoginContext.java:683) > at java.security.AccessController.doPrivileged(Native Method) > at > javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680) > at > javax.security.auth.login.LoginContext.login(LoginContext.java:579) > at > org.apache.geronimo.tomcat.TomcatJAASRealm.authenticate(TomcatJAASRealm.java:109) > > at > org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:256) > > at > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:391) > > at > org.apache.geronimo.tomcat.valve.PolicyContextValve.invoke(PolicyContextValve.java:46) > > at > org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:54) > > at > org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47) > > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) > > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) > > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) > > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:743) > > at > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) > > at > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) > > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > > at java.lang.Thread.run(Thread.java:595) > > and > > ------------- ---------------- --------------- > Testcase: > testGoodAuthentication(org.apache.geronimo.tomcat.JAASSecurityTest): > FAILED > expected:<200> but was:<404> > junit.framework.AssertionFailedError: expected:<200> but was:<404> > at > org.apache.geronimo.tomcat.JAASSecurityTest.testGoodAuthentication(JAASSecurityTest.java:181) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > > Jacek -- Jeff Genender http://geronimo.apache.org