org.springframework.beans.factory.BeanCreationException

Error creating bean with name 'com.vaau.rbacx.iam.service.impl.RbacxIAMServiceImpl#f0b4a3' defined in ServletContext resource [WEB-INF/iam-context.xml]: Cannot resolve reference to bean 'oimSolution' while setting bean property 'iamSolutions' with key [TypedStringValue: value [oracle], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'oimSolution' defined in ServletContext resource [WEB-INF/oim-11g-context.xml]: Instantiation of bean failed; nested exception is java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class Thor.API.Exceptions.tcGroupNotFoundException)

Samebug tips4

Spring Security detects beans in the root context. Move the detection of the bean (or declare it explictly) in the root context.

Mixed JpaTransactionManager with JTA transaction type in the beans.xml and persistence.xml

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

Solutions on the web480

  • Stack trace

    • org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.vaau.rbacx.iam.service.impl.RbacxIAMServiceImpl#f0b4a3' defined in ServletContext resource [WEB-INF/iam-context.xml]: Cannot resolve reference to bean 'oimSolution' while setting bean property 'iamSolutions' with key [TypedStringValue: value [oracle], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'oimSolution' defined in ServletContext resource [WEB-INF/oim-11g-context.xml]: Instantiation of bean failed; nested exception is java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class Thor.API.Exceptions.tcGroupNotFoundException) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)

    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 visitor
    Unknown visitorOnce,
    gandragandra
    Once,
    Unknown UserUnknown User
    2 times, last one
    linxiaolonglinxiaolong
    Once,
    batwalrus76batwalrus76
    Once,
    56 more bugmates