ClassUtils.forName() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
Thrown when an application tries to load in a class through its string name using:
  • The forName method in class Class.
  • The findSystemClass method in class ClassLoader .
  • The loadClass method in class ClassLoader.

but no definition for the class with the specified name could be found.

As of release 1.4, this exception has been retrofitted to conform to the general purpose exception-chaining mechanism. The "optional exception that was raised while loading the class" that may be provided at construction time and accessed via the {@link #getException()} method is now known as the cause, and may be accessed via the {@link Throwable#getCause()} method, as well as the aforementioned "legacy method." @author unascribed @see java.lang.Class#forName(java.lang.String) @see java.lang.ClassLoader#findSystemClass(java.lang.String) @see java.lang.ClassLoader#loadClass(java.lang.String, boolean) @since JDK1.0

at java.net.URLClassLoader$1.run
at java.security.AccessController.doPrivileged
at java.net.URLClassLoader.findClass
ClassNotFoundException if the class could not be found, or if the loader is closed.
at java.lang.ClassLoader.loadClass
ClassNotFoundException If the class was not found
at sun.misc.Launcher$AppClassLoader.loadClass
at java.lang.ClassLoader.loadClass
ClassNotFoundException If the class was not found
at org.springframework.util.ClassUtils.forName
ClassNotFoundException if the class was not found
7 lines hidden

Matching stack traces (32)

  1. Monika Mevenkampvia Google Groups8 months ago
    org.dspace.app.itemimport.BTEBatchImportService
  2. mlilianagavia Google Groups8 months ago
    org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor
  3. feichanghvia Stack Overflow8 months ago
    Cannot find class [org.springframework.orm.hibernate.LocalSessionFactoryBean] for bean with name 'mySessionFactory' defined in class path resource [spring.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.orm.hibernate.LocalSessionFactoryBean
  4. Maarten Smeetsvia Google Groups9 months ago
    Error creating bean with name '_muleSimpleRegistryBootstrap' defined in URL [jar:file:/C:/dev/mule-standalone-3.0.0/lib/mule/mule-module-spring-config-3.0.0.jar!/default-mule-config.xml]: Invocation of init method failed; nested exception is org.mule.api.lifecycle.InitialisationException: Failed to lookup beans of type interface org.mule.api.registry.TransformerResolver from the Spring registry
  5. Ravivvarman Periasamyvia Google Groups10 months ago
    Error creating bean with name '_muleSimpleRegistryBootstrap' defined in URL [jar:file:/C:/Mule/mule-enterprise-standalone-3.1.2/lib/mule/mule-module-spring-config-3.1.2.jar!/default-mule-config.xml]: Invocation of init method failed; nested exception is org.mule.api.lifecycle.InitialisationException: Failed to lookup beans of type interface org.mule.api.registry.TransformerResolver from the Spring registry (org.mule.api.lifecycle.InitialisationException)
  6. cathal coffeyvia Google Groups10 months ago
    org.opentripplanner.graph_builder.impl.OptimizeTransitGraphBuilderImpl
  7. sasank manoharvia Coderanch1 year ago
    Cannot find class [DemoBean] for bean with name 'demo1' defined in class path resource [sample/demo.xml]; nested exception is java.lang.ClassNotFoundException: DemoBean
  8. satheeshkumar vidadhalavia Coderanch1 year ago
    Cannot find class [com.tcs.training.spring.DemoBean] for bean with name 'Demo' defined in file [C:\Users\satheesh kumar\satheesh\softwares\workspace\Springs\src\com\tcs\spring\training\Bean.xml]; nested exception is java.lang.ClassNotFoundException: com.tcs.training.spring.DemoBean
  9. Boris Stanojevićvia Google Groups1 year ago
    Failed to load ApplicationContext
  10. Unknown authorvia blogspot.com1 year ago
    Cannot find class [TestBean] for bean with name 'tb' defined in file [E:\Spring\SpringAnno1\.\src\DemoCfg.xml]; nested exception is java.lang.ClassNotFoundException: TestBean

See Also

Parent

4978 web pages  - Failed to load the class from current classpath
java.lang.ClassNotFoundException
    at java.net.URLClassLoader$1.run()
    at java.security.AccessController.doPrivileged()
    at java.net.URLClassLoader.findClass()
    at java.lang.ClassLoader.loadClass()
    at sun.misc.Launcher$AppClassLoader.loadClass()
    at java.lang.ClassLoader.loadClass()

Siblings

  • 1943 web pages  - ClassLoader.loadClassInternal() has thrown a ClassNotFoundException
    java.lang.ClassNotFoundException
        at java.net.URLClassLoader$1.run()
        at java.security.AccessController.doPrivileged()
        at java.net.URLClassLoader.findClass()
        at java.lang.ClassLoader.loadClass()
        at sun.misc.Launcher$AppClassLoader.loadClass()
        at java.lang.ClassLoader.loadClass()
        at java.lang.ClassLoader.loadClassInternal()
  • 612 web pages  - Class.forName0() has thrown a ClassNotFoundException
    java.lang.ClassNotFoundException
        at java.net.URLClassLoader$1.run()
        at java.security.AccessController.doPrivileged()
        at java.net.URLClassLoader.findClass()
        at java.lang.ClassLoader.loadClass()
        at sun.misc.Launcher$AppClassLoader.loadClass()
        at java.lang.ClassLoader.loadClass()
        at java.lang.Class.forName0()
  • 273 web pages  - ClassLoader.defineClass1() has thrown a NoClassDefFoundError
    java.lang.NoClassDefFoundError
        at java.lang.ClassLoader.defineClass1()
    Caused by: java.lang.ClassNotFoundException
        at java.net.URLClassLoader$1.run()
        at java.security.AccessController.doPrivileged()
        at java.net.URLClassLoader.findClass()
        at java.lang.ClassLoader.loadClass()
        at sun.misc.Launcher$AppClassLoader.loadClass()
        at java.lang.ClassLoader.loadClass()
  • 95 web pages  - Class.forName() has thrown a NoClassDefFoundError
    java.lang.NoClassDefFoundError
        at java.lang.Class.forName0()
        at java.lang.Class.forName()
    Caused by: java.lang.ClassNotFoundException
        at java.net.URLClassLoader$1.run()
        at java.security.AccessController.doPrivileged()
        at java.net.URLClassLoader.findClass()
        at java.lang.ClassLoader.loadClass()
        at sun.misc.Launcher$AppClassLoader.loadClass()
        at java.lang.ClassLoader.loadClass()
  • 84 web pages  - Class.privateGetDeclaredConstructors() has thrown a NoClassDefFoundError
    java.lang.NoClassDefFoundError
        at java.lang.Class.getDeclaredConstructors0()
        at java.lang.Class.privateGetDeclaredConstructors()
    Caused by: java.lang.ClassNotFoundException
        at java.net.URLClassLoader$1.run()
        at java.security.AccessController.doPrivileged()
        at java.net.URLClassLoader.findClass()
        at java.lang.ClassLoader.loadClass()
        at sun.misc.Launcher$AppClassLoader.loadClass()
        at java.lang.ClassLoader.loadClass()
  • 56 web pages  - Class.privateGetDeclaredMethods() has thrown a NoClassDefFoundError
    java.lang.NoClassDefFoundError
        at java.lang.Class.getDeclaredMethods0()
        at java.lang.Class.privateGetDeclaredMethods()
    Caused by: java.lang.ClassNotFoundException
        at java.net.URLClassLoader$1.run()
        at java.security.AccessController.doPrivileged()
        at java.net.URLClassLoader.findClass()
        at java.lang.ClassLoader.loadClass()
        at sun.misc.Launcher$AppClassLoader.loadClass()
        at java.lang.ClassLoader.loadClass()
  • 31 web pages  - ClassLoader.loadClass() has thrown a ClassNotFoundException
    java.lang.ClassNotFoundException
        at java.net.URLClassLoader$1.run()
        at java.security.AccessController.doPrivileged()
        at java.net.URLClassLoader.findClass()
        at java.lang.ClassLoader.loadClass()
        at sun.misc.Launcher$AppClassLoader.loadClass()
        at java.lang.ClassLoader.loadClass()
        at net.minecraft.launchwrapper.LaunchClassLoader.findClass()
        at java.lang.ClassLoader.loadClass()
  • 28 web pages  - RemoteTestRunner.loadClass() has thrown a ClassNotFoundException
    java.lang.ClassNotFoundException
        at java.net.URLClassLoader$1.run()
        at java.security.AccessController.doPrivileged()
        at java.net.URLClassLoader.findClass()
        at java.lang.ClassLoader.loadClass()
        at sun.misc.Launcher$AppClassLoader.loadClass()
        at java.lang.ClassLoader.loadClass()
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClass()
  • 22 web pages  - AccessController.doPrivileged() has thrown a ClassNotFoundException
    java.lang.ClassNotFoundException
        at java.net.URLClassLoader$1.run()
        at java.security.AccessController.doPrivileged()
        at java.net.URLClassLoader.findClass()
        at java.lang.ClassLoader.loadClass()
        at sun.misc.Launcher$AppClassLoader.loadClass()
        at java.lang.ClassLoader.loadClass()
        at java.util.logging.LogManager$1.run()
        at java.security.AccessController.doPrivileged()

Children

  • 28 web pages  - AbstractBeanDefinition.resolveBeanClass() has thrown a ClassNotFoundException
    java.lang.ClassNotFoundException
        at java.net.URLClassLoader$1.run()
        at java.security.AccessController.doPrivileged()
        at java.net.URLClassLoader.findClass()
        at java.lang.ClassLoader.loadClass()
        at sun.misc.Launcher$AppClassLoader.loadClass()
        at java.lang.ClassLoader.loadClass()
        at org.springframework.util.ClassUtils.forName()
        at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass()
  • 3 web pages  - DefaultNamespaceHandlerResolver.<init>() has thrown a ClassNotFoundException
    java.lang.ClassNotFoundException
        at java.net.URLClassLoader$1.run()
        at java.security.AccessController.doPrivileged()
        at java.net.URLClassLoader.findClass()
        at java.lang.ClassLoader.loadClass()
        at sun.misc.Launcher$AppClassLoader.loadClass()
        at java.lang.ClassLoader.loadClass()
        at org.springframework.util.ClassUtils.forName()
        at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings()
        at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>()

Typical exception messages

  1. 4 crashes - org.kuali.student.r1.common.validator.ValidatorFactory
  2. 3 crashes - com.dexia.sofaxis.caselazyjmx.NotInClassPath
  3. 3 crashes - org.springframework.scripting.config.LangNamespaceHandler
  4. 2 crashes - [B
  5. 2 crashes - de.ntec.lms.impl.feature.BooleanFeatureStateImpl.BooleanFeature
  6. 2 crashes - TestBean
  7. 1 crashes - org.opentripplanner.graph_builder.openstreetmap.impl.RegionBasedOpenStreetMapProviderImpl
  8. 1 crashes - com.mchange.v2.c3p0.ComboPooledDataSource
  9. 1 crashes - foo.bar.osgi.SpringInstantiatedBean
  10. 1 crashes - org.apache.xbean.spring.context.v2.XBeanNamespaceHandler