Return-Path: Delivered-To: apmail-incubator-shiro-dev-archive@www.apache.org Received: (qmail 88661 invoked from network); 20 May 2010 16:47:44 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 May 2010 16:47:44 -0000 Received: (qmail 5763 invoked by uid 500); 20 May 2010 16:47:44 -0000 Delivered-To: apmail-incubator-shiro-dev-archive@incubator.apache.org Received: (qmail 5744 invoked by uid 500); 20 May 2010 16:47:44 -0000 Mailing-List: contact shiro-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: shiro-dev@incubator.apache.org Delivered-To: mailing list shiro-dev@incubator.apache.org Received: (qmail 5736 invoked by uid 99); 20 May 2010 16:47:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 May 2010 16:47:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 May 2010 16:47:41 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4KGlKLm000676 for ; Thu, 20 May 2010 16:47:20 GMT Message-ID: <22039865.381274374040078.JavaMail.jira@thor> Date: Thu, 20 May 2010 12:47:20 -0400 (EDT) From: "Milos Kolencik (JIRA)" To: shiro-dev@incubator.apache.org Subject: [jira] Created: (SHIRO-167) getServletContext allways return null with conf via spring (native mode) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org getServletContext allways return null with conf via spring (native mode) ------------------------------------------------------------------------ Key: SHIRO-167 URL: https://issues.apache.org/jira/browse/SHIRO-167 Project: Shiro Issue Type: Bug Components: Integration: Spring Affects Versions: 1.0.0 Environment: sun java, jetty 8.0.0, servelt 3.0 api, win 7 Reporter: Milos Kolencik Fix For: 1.0.0 Hi, i am using shiro rev. 945078, with configuration which uses native sessions filter is configured via springframework - DelegatingFilterProxy (here is the snippet from web.xml) shiroFilter org.springframework.web.filter.DelegatingFilterProxy (and here from spring conf. xml) the problem i have is that the method HttpServletRequest.getSession().getServletContext() always return null, (I was wondering why and i found that the ServletContext is set to AbstractFilter only in init(filterConfig) method. But this method is never called in configuration via spring-DelegatingFilterProxy. I know that specifying the "targetFilterLifecycle" filter init-param as "true" will enforce invocation of the Filter.init. But this way my definitions will be overrided.) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.