콩나물
100
2019-08-19 11:25:25
1
144

톰캣 구동이 안되는데 원인을 모르겠어요


오류가 이렇게 나는데요... 뭐가 문제 인지 모르겟네요

구글링해서 이것저것 해봣는데 다안되네요 ㅠㅠ


심각: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'corpBoardService': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.mplusCorp.dao.CorpBoardDAO com.mplusCorp.service.CorpBoardService.boardDAO; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'corpBoardDAO': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.orm.ibatis.SqlMapClientTemplate com.mplusCorp.dao.CorpBoardDAO.sqlMapClientTemplate; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.springframework.orm.ibatis.SqlMapClientTemplate] is defined: Unsatisfied dependency of type [class org.springframework.orm.ibatis.SqlMapClientTemplate]: expected at least 1 matching bean

at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:231)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:978)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:485)

at java.security.AccessController.doPrivileged(Native Method)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:413)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:735)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:369)

at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:251)

at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190)

at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5118)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

at java.util.concurrent.FutureTask.run(FutureTask.java:138)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)

at java.lang.Thread.run(Thread.java:662)

Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.mplusCorp.dao.CorpBoardDAO com.mplusCorp.service.CorpBoardService.boardDAO; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'corpBoardDAO': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.orm.ibatis.SqlMapClientTemplate com.mplusCorp.dao.CorpBoardDAO.sqlMapClientTemplate; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.springframework.orm.ibatis.SqlMapClientTemplate] is defined: Unsatisfied dependency of type [class org.springframework.orm.ibatis.SqlMapClientTemplate]: expected at least 1 matching bean

at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredElement.inject(AutowiredAnnotationBeanPostProcessor.java:375)

at org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(InjectionMetadata.java:61)

at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:228)

... 25 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'corpBoardDAO': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.orm.ibatis.SqlMapClientTemplate com.mplusCorp.dao.CorpBoardDAO.sqlMapClientTemplate; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.springframework.orm.ibatis.SqlMapClientTemplate] is defined: Unsatisfied dependency of type [class org.springframework.orm.ibatis.SqlMapClientTemplate]: expected at least 1 matching bean

at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:231)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:978)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:485)

at java.security.AccessController.doPrivileged(Native Method)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:532)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveDependency(AbstractAutowireCapableBeanFactory.java:414)

at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredElement.inject(AutowiredAnnotationBeanPostProcessor.java:361)

... 27 more

Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.orm.ibatis.SqlMapClientTemplate com.mplusCorp.dao.CorpBoardDAO.sqlMapClientTemplate; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.springframework.orm.ibatis.SqlMapClientTemplate] is defined: Unsatisfied dependency of type [class org.springframework.orm.ibatis.SqlMapClientTemplate]: expected at least 1 matching bean

at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredElement.inject(AutowiredAnnotationBeanPostProcessor.java:375)

at org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(InjectionMetadata.java:61)

at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:228)

... 39 more

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.springframework.orm.ibatis.SqlMapClientTemplate] is defined: Unsatisfied dependency of type [class org.springframework.orm.ibatis.SqlMapClientTemplate]: expected at least 1 matching bean

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveDependency(AbstractAutowireCapableBeanFactory.java:417)

at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredElement.inject(AutowiredAnnotationBeanPostProcessor.java:361)

... 41 more

2019. 8. 19 오전 10:56:51 org.apache.catalina.core.StandardContext listenerStart

심각: Exception sending context initialized event to listener instance of class com.mplusCorp.util.BeanConfig

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'corpBoardService': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.mplusCorp.dao.CorpBoardDAO com.mplusCorp.service.CorpBoardService.boardDAO; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'corpBoardDAO': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.orm.ibatis.SqlMapClientTemplate com.mplusCorp.dao.CorpBoardDAO.sqlMapClientTemplate; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.springframework.orm.ibatis.SqlMapClientTemplate] is defined: Unsatisfied dependency of type [class org.springframework.orm.ibatis.SqlMapClientTemplate]: expected at least 1 matching bean

at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:231)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:978)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:485)

at java.security.AccessController.doPrivileged(Native Method)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:413)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:735)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:369)

at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:251)

at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190)

at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5118)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

at java.util.concurrent.FutureTask.run(FutureTask.java:138)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)

at java.lang.Thread.run(Thread.java:662)

Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.mplusCorp.dao.CorpBoardDAO com.mplusCorp.service.CorpBoardService.boardDAO; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'corpBoardDAO': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.orm.ibatis.SqlMapClientTemplate com.mplusCorp.dao.CorpBoardDAO.sqlMapClientTemplate; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.springframework.orm.ibatis.SqlMapClientTemplate] is defined: Unsatisfied dependency of type [class org.springframework.orm.ibatis.SqlMapClientTemplate]: expected at least 1 matching bean

at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredElement.inject(AutowiredAnnotationBeanPostProcessor.java:375)

at org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(InjectionMetadata.java:61)

at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:228)

... 25 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'corpBoardDAO': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.orm.ibatis.SqlMapClientTemplate com.mplusCorp.dao.CorpBoardDAO.sqlMapClientTemplate; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.springframework.orm.ibatis.SqlMapClientTemplate] is defined: Unsatisfied dependency of type [class org.springframework.orm.ibatis.SqlMapClientTemplate]: expected at least 1 matching bean

at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:231)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:978)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:485)

at java.security.AccessController.doPrivileged(Native Method)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:532)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveDependency(AbstractAutowireCapableBeanFactory.java:414)

at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredElement.inject(AutowiredAnnotationBeanPostProcessor.java:361)

... 27 more

Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.orm.ibatis.SqlMapClientTemplate com.mplusCorp.dao.CorpBoardDAO.sqlMapClientTemplate; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.springframework.orm.ibatis.SqlMapClientTemplate] is defined: Unsatisfied dependency of type [class org.springframework.orm.ibatis.SqlMapClientTemplate]: expected at least 1 matching bean

at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredElement.inject(AutowiredAnnotationBeanPostProcessor.java:375)

at org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(InjectionMetadata.java:61)

at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:228)

... 39 more

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.springframework.orm.ibatis.SqlMapClientTemplate] is defined: Unsatisfied dependency of type [class org.springframework.orm.ibatis.SqlMapClientTemplate]: expected at least 1 matching bean

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveDependency(AbstractAutowireCapableBeanFactory.java:417)

at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredElement.inject(AutowiredAnnotationBeanPostProcessor.java:361)

... 41 more

0
0
  • 답변 1

  • aksjm2
    738
    2019-08-19 11:44:40

    'corpBoardService': Autowiring of fields failed

    해당 서비스에 @Autowired 사용하신 구문에 이상이 있는것 같은데요.

    No unique bean of type [org.springframework.orm.ibatis.SqlMapClientTemplate] is defined

    0
  • 로그인을 하시면 답변을 등록할 수 있습니다.