org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'employeeController': Injection of autowired dependencies failed; nested exception is[/b] org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sts.service.EmployeeService com.sts.controller.EmployeeController.employeeService; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.web.servlet.view.InternalResourceResolver] for bean with name 'jspViewResolver' defined in ServletContext resource [/WEB-INF/config/sdnext-servlet.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.web.servlet.view.InternalResourceResolver[/b][i][b]15:16:03,804 INFO [STDOUT] 15:16:03,801 ERROR [DispatcherServlet] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'employeeController': Injection of autowired dependencies failed; nested exception is[/b] org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sts.service.EmployeeService com.sts.controller.EmployeeController.employeeService; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.web.servlet.view.InternalResourceResolver] for bean with name 'jspViewResolver' defined in ServletContext resource [/WEB-INF/config/sdnext-servlet.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.web.servlet.view.InternalResourceResolver[/i]

coderanch.com | 9 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd . Or join the community to write better ones.
  1. 0
    samebug tip
    You don't have an active HTTP session when the bean is requested.
  2. 0

    org.springframework.beans.factory.BeanCreationException (Spring forum at Coderanch)

    coderanch.com | 9 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'employeeController': Injection of autowired dependencies failed; nested exception is[/b] org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sts.service.EmployeeService com.sts.controller.EmployeeController.employeeService; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.web.servlet.view.InternalResourceResolver] for bean with name 'jspViewResolver' defined in ServletContext resource [/WEB-INF/config/sdnext-servlet.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.web.servlet.view.InternalResourceResolver[/b][i][b]15:16:03,804 INFO [STDOUT] 15:16:03,801 ERROR [DispatcherServlet] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'employeeController': Injection of autowired dependencies failed; nested exception is[/b] org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sts.service.EmployeeService com.sts.controller.EmployeeController.employeeService; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.web.servlet.view.InternalResourceResolver] for bean with name 'jspViewResolver' defined in ServletContext resource [/WEB-INF/config/sdnext-servlet.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.web.servlet.view.InternalResourceResolver[/i]
  3. 0

    org.springframework.beans.factory.BeanCreationException (Spring forum at Coderanch)

    coderanch.com | 9 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'employeeController': Injection of autowired dependencies failed; nested exception is[/b] org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sts.service.EmployeeService com.sts.controller.EmployeeController.employeeService; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.web.servlet.view.InternalResourceResolver] for bean with name 'jspViewResolver' defined in ServletContext resource [/WEB-INF/config/sdnext-servlet.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.web.servlet.view.InternalResourceResolver[/b][i][b]15:16:03,804 INFO [STDOUT] 15:16:03,801 ERROR [DispatcherServlet] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'employeeController': Injection of autowired dependencies failed; nested exception is[/b] org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sts.service.EmployeeService com.sts.controller.EmployeeController.employeeService; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.web.servlet.view.InternalResourceResolver] for bean with name 'jspViewResolver' defined in ServletContext resource [/WEB-INF/config/sdnext-servlet.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.web.servlet.view.InternalResourceResolver[/i]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    org.springframework.beans.factory.BeanCreationException

    Coderanch | 3 years ago | Rohit Kumar Singh
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'employeeController': Injection of autowired dependencies failed; nested exception is[/b] org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sts.service.EmployeeService com.sts.controller.EmployeeController.employeeService; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.web.servlet.view.InternalResourceResolver] for bean with name 'jspViewResolver' defined in ServletContext resource [/WEB-INF/config/sdnext-servlet.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.web.servlet.view.InternalResourceResolver[/b][i][b]15:16:03,804 INFO [STDOUT] 15:16:03,801 ERROR [DispatcherServlet] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'employeeController': Injection of autowired dependencies failed; nested exception is[/b] org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sts.service.EmployeeService com.sts.controller.EmployeeController.employeeService; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.web.servlet.view.InternalResourceResolver] for bean with name 'jspViewResolver' defined in ServletContext resource [/WEB-INF/config/sdnext-servlet.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.web.servlet.view.InternalResourceResolver[/i]
  6. 0

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityServiceImpl':

    Stack Overflow | 11 months ago | Blaze
    org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.security.authentication.AuthenticationManager com.springfoundation.service.SecurityServiceImpl.authenticationManager; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.springframework.security.authentication.AuthenticationManager] is defined: expected single matching bean but found 3: [org.springframework.security.config.authentication.AuthenticationManagerFactoryBean#0, org.springframework.security.authentication.ProviderManager#0, org.springframework.security.authenticationManager]

  1. linxiaolong 3 times, last 4 months ago
  2. marcbouvierdav 11 times, last 6 months ago
3 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. org.springframework.beans.factory.BeanCreationException

    Error creating bean with name 'employeeController': Injection of autowired dependencies failed; nested exception is[/b] org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sts.service.EmployeeService com.sts.controller.EmployeeController.employeeService; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.web.servlet.view.InternalResourceResolver] for bean with name 'jspViewResolver' defined in ServletContext resource [/WEB-INF/config/sdnext-servlet.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.web.servlet.view.InternalResourceResolver[/b][i][b]15:16:03,804 INFO [STDOUT] 15:16:03,801 ERROR [DispatcherServlet] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'employeeController': Injection of autowired dependencies failed; nested exception is[/b] org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sts.service.EmployeeService com.sts.controller.EmployeeController.employeeService; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.web.servlet.view.InternalResourceResolver] for bean with name 'jspViewResolver' defined in ServletContext resource [/WEB-INF/config/sdnext-servlet.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.web.servlet.view.InternalResourceResolver[/i]

    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues()
  2. Spring Beans
    AbstractBeanFactory.doGetBean
    1. org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
    6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
    7 frames