LeeGitaek / Spring_Java_Board

Web Board Development Using Spring,Java
MIT License
1 stars 0 forks source link

Error creating bean with name 'sqlSessionFactory' #3

Open LeeGitaek opened 4 years ago

LeeGitaek commented 4 years ago

Jul 20, 2020 6:50:14 PM org.apache.catalina.startup.VersionLoggerListener log 정보: 서버 버전 이름: Apache Tomcat/8.5.50 Jul 20, 2020 6:50:14 PM org.apache.catalina.startup.VersionLoggerListener log 정보: Server 빌드 시각: Dec 7 2019 19:19:46 UTC Jul 20, 2020 6:50:14 PM org.apache.catalina.startup.VersionLoggerListener log 정보: Server 버전 번호: 8.5.50.0 Jul 20, 2020 6:50:14 PM org.apache.catalina.startup.VersionLoggerListener log 정보: 운영체제 이름: Mac OS X Jul 20, 2020 6:50:14 PM org.apache.catalina.startup.VersionLoggerListener log 정보: 운영체제 버전: 10.15.4 Jul 20, 2020 6:50:14 PM org.apache.catalina.startup.VersionLoggerListener log 정보: 아키텍처: x86_64 Jul 20, 2020 6:50:14 PM org.apache.catalina.startup.VersionLoggerListener log 정보: 자바 홈: /Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home Jul 20, 2020 6:50:14 PM org.apache.catalina.startup.VersionLoggerListener log 정보: JVM 버전: 9.0.4+11 Jul 20, 2020 6:50:14 PM org.apache.catalina.startup.VersionLoggerListener log 정보: JVM 벤더: Oracle Corporation Jul 20, 2020 6:50:14 PM org.apache.catalina.startup.VersionLoggerListener log 정보: CATALINA_BASE: /Users/gitaeklee/git/Spring_Java_Board/Spring_Java_Board/.metadata/.plugins/org.eclipse.wst.server.core/tmp0 Jul 20, 2020 6:50:14 PM org.apache.catalina.startup.VersionLoggerListener log 정보: CATALINA_HOME: /usr/local/apache-tomcat-8.5.50 Jul 20, 2020 6:50:14 PM org.apache.catalina.startup.VersionLoggerListener log 정보: 명령 행 아규먼트: -Dcatalina.base=/Users/gitaeklee/git/Spring_Java_Board/Spring_Java_Board/.metadata/.plugins/org.eclipse.wst.server.core/tmp0 Jul 20, 2020 6:50:14 PM org.apache.catalina.startup.VersionLoggerListener log 정보: 명령 행 아규먼트: -Dcatalina.home=/usr/local/apache-tomcat-8.5.50 Jul 20, 2020 6:50:14 PM org.apache.catalina.startup.VersionLoggerListener log 정보: 명령 행 아규먼트: -Dwtp.deploy=/Users/gitaeklee/git/Spring_Java_Board/Spring_Java_Board/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps Jul 20, 2020 6:50:14 PM org.apache.catalina.startup.VersionLoggerListener log 정보: 명령 행 아규먼트: -Dfile.encoding=UTF-8 Jul 20, 2020 6:50:14 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent 정보: 프로덕션 환경들에서 최적의 성능을 제공하는, APR 기반 Apache Tomcat Native 라이브러리가, 다음 java.library.path에서 발견되지 않습니다: [/Users/gitaeklee/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.] Jul 20, 2020 6:50:14 PM org.apache.coyote.AbstractProtocol init 정보: 프로토콜 핸들러 ["http-nio-8080"]을(를) 초기화합니다. Jul 20, 2020 6:50:14 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector 정보: Using a shared selector for servlet write/read Jul 20, 2020 6:50:14 PM org.apache.coyote.AbstractProtocol init 정보: 프로토콜 핸들러 ["ajp-nio-8009"]을(를) 초기화합니다. Jul 20, 2020 6:50:14 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector 정보: Using a shared selector for servlet write/read Jul 20, 2020 6:50:14 PM org.apache.catalina.startup.Catalina load 정보: Initialization processed in 951 ms Jul 20, 2020 6:50:15 PM org.apache.catalina.core.StandardService startInternal 정보: 서비스 [Catalina]을(를) 시작합니다. Jul 20, 2020 6:50:15 PM org.apache.catalina.core.StandardEngine startInternal 정보: Starting Servlet Engine: Apache Tomcat/8.5.50 Jul 20, 2020 6:50:17 PM org.apache.catalina.core.ApplicationContext log 정보: No Spring WebApplicationInitializer types detected on classpath Jul 20, 2020 6:50:17 PM org.apache.jasper.servlet.TldScanner scanJars 정보: 적어도 하나의 JAR가 TLD들을 찾기 위해 스캔되었으나 아무 것도 찾지 못했습니다. 스캔했으나 TLD가 없는 JAR들의 전체 목록을 보시려면, 로그 레벨을 디버그 레벨로 설정하십시오. 스캔 과정에서 불필요한 JAR들을 건너뛰면, 시스템 시작 시간과 JSP 컴파일 시간을 단축시킬 수 있습니다. Jul 20, 2020 6:50:17 PM org.apache.catalina.core.ApplicationContext log 정보: Initializing Spring root WebApplicationContext INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started INFO : org.springframework.web.context.support.XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Mon Jul 20 18:50:17 KST 2020]; root of context hierarchy INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/spring/root-context.xml] INFO : org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@7204375c: defining beans [dataSource,sqlSessionFactory,sqlSessionTemplate]; root of factory hierarchy INFO : org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@7204375c: defining beans [dataSource,sqlSessionFactory,sqlSessionTemplate]; root of factory hierarchy ERROR: org.springframework.web.context.ContextLoader - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in ServletContext resource [/WEB-INF/spring/root-context.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/classpath:sqlmap/config/mybatis-config.xml] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:567) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4699) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5165) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1412) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1402) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.base/java.lang.Thread.run(Thread.java:844) Caused by: java.io.FileNotFoundException: Could not open ServletContext resource [/classpath:sqlmap/config/mybatis-config.xml] at org.springframework.web.context.support.ServletContextResource.getInputStream(ServletContextResource.java:140) at org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:358) at org.mybatis.spring.SqlSessionFactoryBean.afterPropertiesSet(SqlSessionFactoryBean.java:340) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452) ... 21 more Jul 20, 2020 6:50:19 PM org.apache.catalina.core.StandardContext listenerStart 심각: Context initialized 이벤트를 [org.springframework.web.context.ContextLoaderListener] 클래스의 인스턴스인 리스너에 전송하는 동안 예외 발생 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in ServletContext resource [/WEB-INF/spring/root-context.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/classpath:sqlmap/config/mybatis-config.xml] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:567) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4699) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5165) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1412) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1402) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.base/java.lang.Thread.run(Thread.java:844) Caused by: java.io.FileNotFoundException: Could not open ServletContext resource [/classpath:sqlmap/config/mybatis-config.xml] at org.springframework.web.context.support.ServletContextResource.getInputStream(ServletContextResource.java:140) at org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:358) at org.mybatis.spring.SqlSessionFactoryBean.afterPropertiesSet(SqlSessionFactoryBean.java:340) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452) ... 21 more

Jul 20, 2020 6:50:19 PM org.apache.catalina.core.StandardContext startInternal 심각: 하나 이상의 리스너들이 시작하지 못했습니다. 상세 내역은 적절한 컨테이너 로그 파일에서 찾을 수 있습니다. Jul 20, 2020 6:50:19 PM org.apache.catalina.core.StandardContext startInternal 심각: 이전 오류들로 인해 컨텍스트 [/mvc]의 시작이 실패했습니다. Jul 20, 2020 6:50:19 PM org.apache.catalina.core.ApplicationContext log 정보: Closing Spring root WebApplicationContext Jul 20, 2020 6:50:19 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc 경고: 웹 애플리케이션 [mvc]이(가) JDBC 드라이버 [org.hsqldb.jdbc.JDBCDriver]을(를) 등록했지만, 웹 애플리케이션이 중지될 때, 해당 JDBC 드라이버의 등록을 제거하지 못했습니다. 메모리 누수를 방지하기 위하여, 등록을 강제로 제거했습니다. WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.apache.catalina.loader.WebappClassLoaderBase (file:/usr/local/apache-tomcat-8.5.50/lib/catalina.jar) to field java.io.ObjectStreamClass$Caches.localDescs WARNING: Please consider reporting this to the maintainers of org.apache.catalina.loader.WebappClassLoaderBase WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release Jul 20, 2020 6:50:19 PM org.apache.coyote.AbstractProtocol start 정보: 프로토콜 핸들러 ["http-nio-8080"]을(를) 시작합니다. Jul 20, 2020 6:50:19 PM org.apache.coyote.AbstractProtocol start 정보: 프로토콜 핸들러 ["ajp-nio-8009"]을(를) 시작합니다. Jul 20, 2020 6:50:19 PM org.apache.catalina.startup.Catalina start 정보: Server startup in 4894 ms