org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.salesmanager.core.business.catalog.category.service.CategoryServiceImpl] for bean with name 'categoryService' defined in URL [jar:file:/C:/Programs/workspace/workspace-netb/sm-shop/target/sm-shop-2.0.2-SNAPSHOT/WEB-INF/lib/sm-core-2.0.2-SNAPSHOT.jar!/com/salesmanager/core/business/catalog/category/service/CategoryServiceImpl.class]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: com/salesmanager/core/business/catalog/category/service/CategoryServiceImpl : Unsupported major.minor version 51.0 (unable to load class com.salesmanager.core.business.catalog.category.service.CategoryServiceImpl)

Google Groups | Unknown author | 1 year ago
  1. 0

    Hi everybody I have an error like below Can anybody help me please ?.

    Google Groups | 1 year ago | Unknown author
    org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.salesmanager.core.business.catalog.category.service.CategoryServiceImpl] for bean with name 'categoryService' defined in URL [jar:file:/C:/Programs/workspace/workspace-netb/sm-shop/target/sm-shop-2.0.2-SNAPSHOT/WEB-INF/lib/sm-core-2.0.2-SNAPSHOT.jar!/com/salesmanager/core/business/catalog/category/service/CategoryServiceImpl.class]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: com/salesmanager/core/business/catalog/category/service/CategoryServiceImpl : Unsupported major.minor version 51.0 (unable to load class com.salesmanager.core.business.catalog.category.service.CategoryServiceImpl)
  2. 0

    UnsupportedClassVersionError: org/apache/tomcat/jdbc/pool/DataSource using Tomcat 7.0.59 with JDK1.6.0_31

    GitHub | 2 years ago | billy-symmetry
    java.lang.UnsupportedClassVersionError: org/apache/tomcat/jdbc/pool/DataSource : Unsupported major.minor version 51.0 (unable to load class org.apache.tomcat.jdbc.pool.DataSource)
  3. 0

    BeanCreationException - Worked before, not anymore

    Stack Overflow | 2 years ago | benskiiii
    org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [se.kth.example-project.services.SurveyService] for bean with name 'surveyService' defined in file [/proj/webdocs/test-project/root/example-project/WEB-INF/classes/se/kth/example-project/services/SurveyService.class]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: se/kth/example-project/services/SurveyService : Unsupported major.minor version 52.0 (unable to load class se.kth.example-project.services.SurveyService)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error of JAX-RS

    Stack Overflow | 2 years ago | 川村慎太郎
    org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [jp.sample.jaxrs.service.HelloResource] for bean with name 'helloResource' defined in file [C:\Users\omiz12032\workspace3\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\jax-rs\WEB-INF\classes\jp\sample\jaxrs\service\HelloResource.class]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: jp/sample/jaxrs/service/HelloResource : Unsupported major.minor version 52.0 (unable to load class jp.sample.jaxrs.service.HelloResource)
  6. 0

    Error loading class [com.denimgroup.threadfix.webapp.filter.CsrfPreventionFilter] for bean with name 'CsrfPreventionFilter'

    GitHub | 2 years ago | jeremie0
    org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.denimgroup.threadfix.webapp.filter.CsrfPreventionFilter] for bean with name 'CsrfPreventionFilter' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: com/denimgroup/threadfix/webapp/filter/CsrfPreventionFilter : Unsupported major.minor version 51.0 (unable to load class com.denimgroup.threadfix.webapp.filter.CsrfPreventionFilter)

    6 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.UnsupportedClassVersionError

      com/salesmanager/core/business/catalog/category/service/CategoryServiceImpl : Unsupported major.minor version 51.0 (unable to load class com.salesmanager.core.business.catalog.category.service.CategoryServiceImpl)

      at org.apache.catalina.loader.WebappClassLoader.findClassInternal()
    2. Glassfish Core
      WebappClassLoader.loadClass
      1. org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2963)
      2. org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1212)
      3. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1692)
      4. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1573)
      4 frames
    3. Spring Core
      ClassUtils.forName
      1. org.springframework.util.ClassUtils.forName(ClassUtils.java:257)
      1 frame
    4. Spring Beans
      BeanFactoryUtils.beansOfTypeIncludingAncestors
      1. org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:417)
      2. org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1283)
      3. org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1254)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:576)
      5. org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1331)
      6. org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:317)
      7. org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:396)
      8. org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:275)
      8 frames
    5. Spring Tx
      PersistenceExceptionTranslationPostProcessor.setBeanFactory
      1. org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.detectPersistenceExceptionTranslators(PersistenceExceptionTranslationInterceptor.java:139)
      2. org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.<init>(PersistenceExceptionTranslationInterceptor.java:79)
      3. org.springframework.dao.annotation.PersistenceExceptionTranslationAdvisor.<init>(PersistenceExceptionTranslationAdvisor.java:70)
      4. org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor.setBeanFactory(PersistenceExceptionTranslationPostProcessor.java:103)
      4 frames
    6. Spring Beans
      AbstractBeanFactory.getBean
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeAwareMethods(AbstractAutowireCapableBeanFactory.java:1475)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1443)
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
      5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
      6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
      7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
      8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
      8 frames
    7. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:728)
      2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:449)
      2 frames
    8. Spring
      ContextLoaderListener.contextInitialized
      1. org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:384)
      2. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
      3. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
      3 frames
    9. Glassfish Core
      HostConfig$DeployDescriptor.run
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5017)
      2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5531)
      3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      4. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
      5. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
      6. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
      7. org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:677)
      8. org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1912)
      8 frames
    10. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      6. java.lang.Thread.run(Thread.java:662)
      6 frames