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

Samebug tips1

This means you're missing a class that Java needs for this program. Check if you're not missing the jsr305-1.3.7.jar from your classpath, it's the jar that contains the class javax.annotation.Nullable.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web581

  • via Spring JIRA by Minze Tolsma, 1 year ago
    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
  • via Spring JIRA by Minze Tolsma, 1 year ago
    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
  • via spring.io by Unknown author, 1 year ago
    Cannot find class [org.springframework.batch.core.configuration.support.ClassPathXmlJobLoader] for bean with name 'jobLoader' defined in URL [jar:file:/C:/Documents%20and%20Settings/shri/.m2/repository/org/springframework/batch/spring-batch-admin
  • Stack trace

    • 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

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    2 times, 1 year ago
    445 more bugmates