개발/JAVA

JAVA | ERROR ContextLoader.initWebApplicationContext(ContextLoader.java:331) - Context initialization failed

AM0530 2020. 8. 6. 15:28

1. 에러 : FileZila에 파일 업로드 후 서버 재부팅 시 에러 발생 

2. 원인 : (FileZila) 서버의 sqlmap에 사용하지 않는 xml을 올려놓음 (xml 파일만 올려둠) 

3. 원인해결 : 사용하지 않는 xml파일을 sqlmap 폴더에서 삭제후 다시 서버 재부팅 (shutdown, startup) 하면 정상실행된다. 

 

* 사용하지 않는 xml파일이 있는 폴더 

 

(오류메세지) 

(오류메세지 전문) 일부는 *표 처리 

 

[15:08:45.955] ERROR ContextLoader.initWebApplicationContext(ContextLoader.java:331) - Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name '***': Injection of resource depend encies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connection' defined in S ervletContext resource [***-datasource.xml]: Invocation of init method failed; nested exception is org.springframework.cor e.NestedIOException: Failed to parse mapping resource: file [***.xml]; n ested exception is com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: java.lang.RuntimeException: Error parsing XPath '/***'.  Cause: java.lang.RuntimeException: Error configuring Result.  Could not set ResultClass.  Cause: java.lang.ClassNotFoundException: ***.***VO

        at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.jav a:307)

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

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

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

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

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

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)

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

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

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

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

        at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)

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

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

        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.addChildInternal(ContainerBase.java:899)

        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)

        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)

        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:679)

        at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1966)

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

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

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

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

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