java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at org.springframework.beans.factory.support. AbstractAutowireCapableBeanFactory.initializeBean (AbstractAutowireCapableBeanFactory.java:1578) at org.springframework.beans.factory.support. AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:545) at org.springframework.beans.factory.support. AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:482) at org.springframework.beans.factory.support. AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support. DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support. AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support. AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support. DefaultListableBeanFactory.preInstantiateSingletons (DefaultListableBeanFactory.java:772) at org.springframework.context.support. AbstractApplicationContext.finishBeanFactoryInitialization (AbstractApplicationContext.java:839) at org.springframework.context.support. AbstractApplicationContext.refresh(AbstractApplicationContext.java:538) at org.springframework.context.support. ClassPathXmlApplicationContext.<init> (ClassPathXmlApplicationContext.java:139) at org.springframework.context.support. ClassPathXmlApplicationContext.<init> (ClassPathXmlApplicationContext.java:83)

tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    BeanLifeCycle not working with java code

    Stack Overflow | 9 months ago | Shaik Yakhoob Ali
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at org.springframework.beans.factory.support. AbstractAutowireCapableBeanFactory.initializeBean (AbstractAutowireCapableBeanFactory.java:1578) at org.springframework.beans.factory.support. AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:545) at org.springframework.beans.factory.support. AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:482) at org.springframework.beans.factory.support. AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support. DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support. AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support. AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support. DefaultListableBeanFactory.preInstantiateSingletons (DefaultListableBeanFactory.java:772) at org.springframework.context.support. AbstractApplicationContext.finishBeanFactoryInitialization (AbstractApplicationContext.java:839) at org.springframework.context.support. AbstractApplicationContext.refresh(AbstractApplicationContext.java:538) at org.springframework.context.support. ClassPathXmlApplicationContext.<init> (ClassPathXmlApplicationContext.java:139) at org.springframework.context.support. ClassPathXmlApplicationContext.<init> (ClassPathXmlApplicationContext.java:83)

    Root Cause Analysis

    1. java.lang.ClassNotFoundException

      com.mysql.jdbc.Driver at org.springframework.beans.factory.support. AbstractAutowireCapableBeanFactory.initializeBean (AbstractAutowireCapableBeanFactory.java:1578) at org.springframework.beans.factory.support. AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:545) at org.springframework.beans.factory.support. AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:482) at org.springframework.beans.factory.support. AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support. DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support. AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support. AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support. DefaultListableBeanFactory.preInstantiateSingletons (DefaultListableBeanFactory.java:772) at org.springframework.context.support. AbstractApplicationContext.finishBeanFactoryInitialization (AbstractApplicationContext.java:839) at org.springframework.context.support. AbstractApplicationContext.refresh(AbstractApplicationContext.java:538) at org.springframework.context.support. ClassPathXmlApplicationContext.<init> (ClassPathXmlApplicationContext.java:139) at org.springframework.context.support. ClassPathXmlApplicationContext.<init> (ClassPathXmlApplicationContext.java:83)

      at beans.ClientApp.main()
    2. beans
      ClientApp.main
      1. beans.ClientApp.main(ClientApp.java:12)
      1 frame