cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anand6998 <>
Subject Error getting Spring Application context
Date Thu, 26 Jan 2012 18:26:54 GMT
I am trying to get the Spring ApplicationContext from the ServletContext
using the following code


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


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.


View this message in context:
Sent from the cxf-issues mailing list archive at

View raw message