Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 31421 invoked from network); 7 Jun 2010 13:15:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Jun 2010 13:15:40 -0000 Received: (qmail 41208 invoked by uid 500); 7 Jun 2010 13:15:38 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 40646 invoked by uid 500); 7 Jun 2010 13:15:37 -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 40544 invoked by uid 99); 7 Jun 2010 13:15:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jun 2010 13:15:37 +0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jun 2010 13:15:32 +0000 Received: from ben.nabble.com ([192.168.236.152]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1OLcAZ-00070P-Ad for user@geronimo.apache.org; Mon, 07 Jun 2010 06:15:11 -0700 Date: Mon, 7 Jun 2010 06:15:11 -0700 (PDT) From: ttiurani To: user@geronimo.apache.org Message-ID: <1275916511323-876229.post@n3.nabble.com> In-Reply-To: <1274880459402-844871.post@n3.nabble.com> References: <1274691279500-334180.post@n3.nabble.com> <1274691279499-334181.post@n3.nabble.com> <1274691279499-839216.post@n3.nabble.com> <1CF924C7-9F81-4ACB-91F5-85F7867E4380@yahoo.com> <1274787617164-841923.post@n3.nabble.com> <1274880459402-844871.post@n3.nabble.com> Subject: Re: issue deploying webapp with security realm MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Unfortunately I ran into more problems with deploying a custom security realm inside an ear to Geronimo 2.2. Even though I am now able to successfully deploy the security realm to G22, I can not get a reference to the LoginModule. This is the stack trace I get: javax.security.auth.login.LoginException: No LoginModules configured for MySecurityRealm at javax.security.auth.login.LoginContext.init(LoginContext.java:256) at javax.security.auth.login.LoginContext.(LoginContext.java:367) at javax.security.auth.login.LoginContext.(LoginContext.java:444) at org.test.MyFilter.doFilter(MyFilter.java:32) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.geronimo.tomcat.security.SecurityValve.invoke(SecurityValve.java:88) at org.apache.geronimo.tomcat.security.jacc.JACCSecurityValve.invoke(JACCSecurityValve.java:54) at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:420) at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:567) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:361) at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214) at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Here is an extended test program that produces the error on Geronimo 2.2 but works fine on 2.1.3, 2.1.4 and 2.1.5 with Java 1.6.0_18. Run "mvn:verify" to see the error: http://apache-geronimo.328035.n3.nabble.com/file/n876229/g22srbug.zip g22srbug.zip The test program now includes a MyFilter.java that is called before http://localhost:8080/testwar/index.html is loaded. LoginException is thrown for: LoginContext lc = new LoginContext( this.realm, new Subject(), new MyCallbackHandler()); Is there a way around this class loading problem? -- Timo -- View this message in context: http://apache-geronimo.328035.n3.nabble.com/issue-deploying-webapp-with-security-realm-tp334180p876229.html Sent from the Users mailing list archive at Nabble.com.