org.springframework.beans.factory.BeanCreationException

Error creating bean with name 'jsonConverter' defined in Se rvletContext resource [/WEB-INF/rest-servlet.xml]: Instantiation of bean failed; nested exception is org.springframework .beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.http.converter.json.MappingJack sonHttpMessageConverter]: Constructor threw exception; nested exception is java.lang.VerifyError: Cannot inherit from fi nal class

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 web19459

  • Error creating bean with name 'jsonConverter' defined in Se rvletContext resource [/WEB-INF/rest-servlet.xml]: Instantiation of bean failed; nested exception is org.springframework .beans.BeanInstantiationException: Could not instantiate bean class
  • Error creating bean with name 'securityService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate
  • via Coderanch by Amruta Mehendale, 6 months ago
    Error creating bean with name 'uploadFileController' defined in ServletContext resource [/WEB-INF/action-servlet.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean
  • Stack trace

    • org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jsonConverter' defined in Se rvletContext resource [/WEB-INF/rest-servlet.xml]: Instantiation of bean failed; nested exception is org.springframework .beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.http.converter.json.MappingJack sonHttpMessageConverter]: Constructor threw exception; nested exception is java.lang.VerifyError: Cannot inherit from fi nal class at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)

    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

    34 times, 10 months ago
    9 times, 11 months ago
    2 times, 1 year ago
    4 times, 1 year ago
    5 times, 1 year ago
    60 more bugmates