org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.batch.core.configuration.support.ClassPathXmlJobLoader] for bean with name 'jobLoader' defined in URL [jar:file:/C:/Program%20Files/SpringSource/tc-server-6.0.20.C/wtpwebapps/EAEDBatchConversie/WEB-INF/lib/spring-batch-admin-manager-1.0.0.M2.jar!/META-INF/bootstrap/batch/execution-context.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.batch.core.configuration.support.ClassPathXmlJobLoader

Spring JIRA | Minze Tolsma | 7 years ago
  1. 0

    When building a Spring Batch Admin program against 2.1.0.RELEASE of Batch I get the following stacktrace: SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.batch.core.configuration.support.ClassPathXmlJobLoader] for bean with name 'jobLoader' defined in URL [jar:file:/C:/Program%20Files/SpringSource/tc-server-6.0.20.C/wtpwebapps/EAEDBatchConversie/WEB-INF/lib/spring-batch-admin-manager-1.0.0.M2.jar!/META-INF/bootstrap/batch/execution-context.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.batch.core.configuration.support.ClassPathXmlJobLoader at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1208) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:568) at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1277) at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:844) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:539) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:192) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardHost.start(StandardHost.java:741) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:587) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:290) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415) Caused by: java.lang.ClassNotFoundException: org.springframework.batch.core.configuration.support.ClassPathXmlJobLoader at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1384) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230) at org.springframework.util.ClassUtils.forName(ClassUtils.java:258) at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408) at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1229) at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1200) ... 24 more When building against 2.1.0.M4 it works just fine. My application is the same as the provided sample.

    Spring JIRA | 7 years ago | Minze Tolsma
    org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.batch.core.configuration.support.ClassPathXmlJobLoader] for bean with name 'jobLoader' defined in URL [jar:file:/C:/Program%20Files/SpringSource/tc-server-6.0.20.C/wtpwebapps/EAEDBatchConversie/WEB-INF/lib/spring-batch-admin-manager-1.0.0.M2.jar!/META-INF/bootstrap/batch/execution-context.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.batch.core.configuration.support.ClassPathXmlJobLoader
  2. 0

    When building a Spring Batch Admin program against 2.1.0.RELEASE of Batch I get the following stacktrace: SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.batch.core.configuration.support.ClassPathXmlJobLoader] for bean with name 'jobLoader' defined in URL [jar:file:/C:/Program%20Files/SpringSource/tc-server-6.0.20.C/wtpwebapps/EAEDBatchConversie/WEB-INF/lib/spring-batch-admin-manager-1.0.0.M2.jar!/META-INF/bootstrap/batch/execution-context.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.batch.core.configuration.support.ClassPathXmlJobLoader at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1208) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:568) at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1277) at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:844) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:539) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:192) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardHost.start(StandardHost.java:741) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:587) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:290) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415) Caused by: java.lang.ClassNotFoundException: org.springframework.batch.core.configuration.support.ClassPathXmlJobLoader at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1384) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230) at org.springframework.util.ClassUtils.forName(ClassUtils.java:258) at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408) at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1229) at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1200) ... 24 more When building against 2.1.0.M4 it works just fine. My application is the same as the provided sample.

    Spring JIRA | 7 years ago | Minze Tolsma
    org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.batch.core.configuration.support.ClassPathXmlJobLoader] for bean with name 'jobLoader' defined in URL [jar:file:/C:/Program%20Files/SpringSource/tc-server-6.0.20.C/wtpwebapps/EAEDBatchConversie/WEB-INF/lib/spring-batch-admin-manager-1.0.0.M2.jar!/META-INF/bootstrap/batch/execution-context.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.batch.core.configuration.support.ClassPathXmlJobLoader
  3. 0

    org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class

    Stack Overflow | 7 years ago | Terman
    org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.service.SempediaSearchManager] for bean with name 'sempediaSearchService' defined in ServletContext resource [/WEB-INF/Sempedia-service.xml]; nested exception is java.lang.ClassNotFoundException: com.service.SempediaSearchManager
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Cannot find class [org.springframework.jdbc.datasource.DriverManagerDataSourc[

    Stack Overflow | 6 years ago | jonney
    org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.jdbc.datasource.DriverManagerDataSourc] for bean with name 'dataSource1' defined in ServletContext resource [/WEB-INF/zang-file-service.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.jdbc.datasource.DriverManagerDataSourc
  6. 0

    Hibernate Community • View topic - hibernate-validation

    hibernate.org | 3 months ago
    org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [javax.validation.Validation] for bean with name 'validatorFactory' defined in URL [file:/C:/apache-tomcat-6.0.24/webapps/merlin-service-stock/WEB-INF/classes/merlin-persistence-spring-context.xml]; nested exception is java.lang.ClassNotFoundException: javax.validation.Validation

  1. Kawada 28 times, last 6 months ago
  2. Tahir 2 times, last 1 month ago
  3. Piz 2027 times, last 4 months ago
  4. jedcua 1 times, last 4 months ago
  5. esaar 3 times, last 4 months ago
4 more registered users
90 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    org.springframework.batch.core.configuration.support.ClassPathXmlJobLoader

    at org.apache.catalina.loader.WebappClassLoader.loadClass()
  2. Glassfish Core
    WebappClassLoader.loadClass
    1. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1384)
    2. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230)
    2 frames
  3. Spring Core
    ClassUtils.forName
    1. org.springframework.util.ClassUtils.forName(ClassUtils.java:258)
    1 frame
  4. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408)
    2. org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1229)
    3. org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1200)
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:568)
    5. org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1277)
    6. org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:844)
    7. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:539)
    7 frames
  5. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842)
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416)
    2 frames
  6. Spring
    ContextLoaderListener.contextInitialized
    1. org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261)
    2. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:192)
    3. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
    3 frames
  7. Glassfish Core
    Catalina.start
    1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
    2. org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
    3. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    4. org.apache.catalina.core.StandardHost.start(StandardHost.java:741)
    5. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    6. org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    7. org.apache.catalina.core.StandardService.start(StandardService.java:516)
    8. org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    9. org.apache.catalina.startup.Catalina.start(Catalina.java:587)
    9 frames
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  9. Glassfish Core
    Bootstrap.main
    1. org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:290)
    2. org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415)
    2 frames