Home  >  Forum  >  Spring
Post New Query

Exception:org.springframework.context.event .GenericApplicationListener not found


joined on
February 09,2016
Asked on February 11,2016
Caused by: java.lang.ClassNotFoundException: org.springframework.context.event.GenericApplicationListener
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

How to resolve the above error.
joined on
November 09,2013
Replied on February 11,2016

GenericApplicationListener has been introduced in Spring 4.2

You need to include spring context 4.2 or above.

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.2.4.RELEASE</version>
</dependency>

Write Answer








Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us