Jan 26th, 2012, 12:49 PM
No ContextLoaderListener registered?
I have searched for this error and possible solutions. I haven't found a solution to my issue.
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.