Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CA38E9D9E for ; Thu, 26 Jan 2012 18:27:22 +0000 (UTC) Received: (qmail 50889 invoked by uid 500); 26 Jan 2012 18:27:22 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 50807 invoked by uid 500); 26 Jan 2012 18:27:22 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 50799 invoked by uid 99); 26 Jan 2012 18:27:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jan 2012 18:27:21 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.26 is neither permitted nor denied by domain of anand6998@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jan 2012 18:27:15 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RqU2A-0005Ii-K6 for issues@cxf.apache.org; Thu, 26 Jan 2012 10:26:54 -0800 Date: Thu, 26 Jan 2012 10:26:54 -0800 (PST) From: anand6998 To: issues@cxf.apache.org Message-ID: <1327602414616-5433615.post@n5.nabble.com> Subject: Error getting Spring Application context MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I am trying to get the Spring ApplicationContext from the ServletContext using the following code WebApplicationContextUtils.getRequiredWebApplicationContext(servletContext); the reason is to access beans defined in the application-Context.xml file. I get the following error java.lang.IllegalStateException: No WebApplicationContext found : no ContextLoaderListener registered? in my web.xml the ContextLoaderListener is defined as org.springframework.web.context.ContextLoaderListener I have also checked that the servletContext is indeed injected into my class from Spring (and its not null) I am using JBoss4.2.2 GA with Apache CXF and Spring 3.0.5.RELEASE Any help much appreciated. Thanks Amit -- View this message in context: http://cxf.547215.n5.nabble.com/Error-getting-Spring-Application-context-tp5433615p5433615.html Sent from the cxf-issues mailing list archive at Nabble.com.