Home  >  Forum  >  Spring
Post New Query

org.springframework.beans.factory .SmartInitializingSingleton not found


joined on
February 09,2016
Asked on February 09,2016
Why this error. I am new to spring.


Caused by: java.lang.ClassNotFoundException: org.springframework.beans.factory.SmartInitializingSingleton
at java.net.URLClassLoader$1.run(URLClassLoader.java:372) ~[na:1.8.0]
at java.net.URLClassLoader$1.run(URLClassLoader.java:361) ~[na:1.8.0]
at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0]
at java.net.URLClassLoader.findClass(URLClassLoader.java:360) ~[na:1.8.0]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) ~[na:1.8.0]
joined on
November 09,2013
Replied on February 09,2016

SmartInitializingSingleton has been introduced in spring 4.1 in spring-beans.
Resolve JAR dependencies using latest spring bean version.

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


Write Answer








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