Header Ad

Saturday, December 28, 2013

java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?

Let me give you some background what is actually happening in your code.

  1.  You must be using Listener in your class.
  2. While spring container is getting in its life its trying to load listeners too.
  3. But in your web.xml does not know where it is, or how to load
  4. So just add it and run your code again.


<listener>        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>    </listener>
in your web.xml file

Remember:- Help more people by sharing this link, and you may comment if you have any suggestion.

No comments:

Post a Comment