안녕하세요.
우선 FAQ 감사합니다.
FAQ 대로 설정을 바꿀 경우
서버 재시작시 문제가 발생하지 않지만,
java 파일 변경시 ( class reload) 에는 spring 에서 다음과 같은 문제가 발생합니다.
[2006.10.02 15:40:26][0][0_261] [container1-15] [WEB-3000] [t-unknown] Closing WebApplicationContext of Spring FrameworkServlet 'spring'
[2006.10.02 15:40:26][2][0_261] [container1-15] [WEB-2207] (org.springframework.web.servlet.DispatcherServlet) destroyed
[2006.10.02 15:40:27][0][0_261] [container1-15] [WEB-3000] [t-unknown] Loading WebApplicationContext for Spring FrameworkServlet 'spring'
[15:40:27.359] ERROR - FrameworkServlet.initServletBean(228) | Context initialization failed
org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'messageSource' must be of type [org.springframework.context.MessageSourc
e], but was actually of type [org.springframework.context.support.ReloadableResourceBundleMessageSource]
at org.springframework.beans.factory.support.AbstractBeanFactory.checkMergedBeanDefinition(AbstractBeanFactory.java:776)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:220)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:149)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:541)
at org.springframework.context.support.AbstractApplicationContext.initMessageSource(AbstractApplicationContext.java:412)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:301)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:306)
at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:251)
at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:220)
at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:112)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at jeus.servlet.loader.ServletReloader.initInstance(ServletReloader.java:68)
at jeus.servlet.loader.PrivateReloader.getInstance(PrivateReloader.java:146)
at jeus.servlet.loader.ServletReloader.getServlet(ServletReloader.java:49)
at jeus.servlet.engine.ServletWrapper.loadOnStartup(ServletWrapper.java:98)
at jeus.servlet.engine.ServletManager.preloading(ServletManager.java:451)
at jeus.servlet.engine.ServletManager.preloadServlets(ServletManager.java:414)
at jeus.servlet.engine.Context.preloadServlets(Context.java:1427)
at jeus.servlet.loader.CommonReloader.reload(CommonReloader.java:219)
at jeus.servlet.loader.CommonReloader.checkReload(CommonReloader.java:294)
at jeus.servlet.loader.ContextLoader.checkReload(ContextLoader.java:519)
at jeus.servlet.loader.ClassLoadManager.checkReload(ClassLoadManager.java:123)
at jeus.servlet.loader.ClassLoadManager.doJob(ClassLoadManager.java:247)
at jeus.servlet.common.Monitor.doMonitor(Monitor.java:24)
at jeus.servlet.common.WebContainerMonitor.run(WebContainerMonitor.java:118)
at java.lang.Thread.run(Thread.java:534)
org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'messageSource' must be of type [org.springframework.context.MessageSourc
e], but was actually of type [org.springframework.context.support.ReloadableResourceBundleMessageSource]
at org.springframework.beans.factory.support.AbstractBeanFactory.checkMergedBeanDefinition(AbstractBeanFactory.java:776)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:220)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:149)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:541)
at org.springframework.context.support.AbstractApplicationContext.initMessageSource(AbstractApplicationContext.java:412)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:301)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:306)
at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:251)
at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:220)
at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:112)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at jeus.servlet.loader.ServletReloader.initInstance(ServletReloader.java:68)
at jeus.servlet.loader.PrivateReloader.getInstance(PrivateReloader.java:146)
at jeus.servlet.loader.ServletReloader.getServlet(ServletReloader.java:49)
at jeus.servlet.engine.ServletWrapper.loadOnStartup(ServletWrapper.java:98)
at jeus.servlet.engine.ServletManager.preloading(ServletManager.java:451)
at jeus.servlet.engine.ServletManager.preloadServlets(ServletManager.java:414)
at jeus.servlet.engine.Context.preloadServlets(Context.java:1427)
at jeus.servlet.loader.CommonReloader.reload(CommonReloader.java:219)
at jeus.servlet.loader.CommonReloader.checkReload(CommonReloader.java:294)
at jeus.servlet.loader.ContextLoader.checkReload(ContextLoader.java:519)
at jeus.servlet.loader.ClassLoadManager.checkReload(ClassLoadManager.java:123)
at jeus.servlet.loader.ClassLoadManager.doJob(ClassLoadManager.java:247)
at jeus.servlet.common.Monitor.doMonitor(Monitor.java:24)
at jeus.servlet.common.WebContainerMonitor.run(WebContainerMonitor.java:118)
at java.lang.Thread.run(Thread.java:534)
[2006.10.02 15:40:27][1][0_261] [container1-15] [WEB-3705] fail to load servlet. name = spring
<<__Exception__>>
javax.servlet.ServletException: fail to load servlet : org.springframework.web.servlet.DispatcherServlet
at jeus.servlet.loader.PrivateReloader.getInstance(PrivateReloader.java:152)
at jeus.servlet.loader.ServletReloader.getServlet(ServletReloader.java:49)
at jeus.servlet.engine.ServletWrapper.loadOnStartup(ServletWrapper.java:98)
at jeus.servlet.engine.ServletManager.preloading(ServletManager.java:451)
at jeus.servlet.engine.ServletManager.preloadServlets(ServletManager.java:414)
at jeus.servlet.engine.Context.preloadServlets(Context.java:1427)
at jeus.servlet.loader.CommonReloader.reload(CommonReloader.java:219)
at jeus.servlet.loader.CommonReloader.checkReload(CommonReloader.java:294)
at jeus.servlet.loader.ContextLoader.checkReload(ContextLoader.java:519)
at jeus.servlet.loader.ClassLoadManager.checkReload(ClassLoadManager.java:123)
at jeus.servlet.loader.ClassLoadManager.doJob(ClassLoadManager.java:247)
at jeus.servlet.common.Monitor.doMonitor(Monitor.java:24)
at jeus.servlet.common.WebContainerMonitor.run(WebContainerMonitor.java:118)
at java.lang.Thread.run(Thread.java:534)
Root Exception stack trace :
org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'messageSource' must be of type [org.springframework.context.MessageSourc
e], but was actually of type [org.springframework.context.support.ReloadableResourceBundleMessageSource]
at org.springframework.beans.factory.support.AbstractBeanFactory.checkMergedBeanDefinition(AbstractBeanFactory.java:776)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:220)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:149)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:541)
at org.springframework.context.support.AbstractApplicationContext.initMessageSource(AbstractApplicationContext.java:412)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:301)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:306)
at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:251)
at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:220)
at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:112)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at jeus.servlet.loader.ServletReloader.initInstance(ServletReloader.java:68)
at jeus.servlet.loader.PrivateReloader.getInstance(PrivateReloader.java:146)
at jeus.servlet.loader.ServletReloader.getServlet(ServletReloader.java:49)
at jeus.servlet.engine.ServletWrapper.loadOnStartup(ServletWrapper.java:98)
at jeus.servlet.engine.ServletManager.preloading(ServletManager.java:451)
at jeus.servlet.engine.ServletManager.preloadServlets(ServletManager.java:414)
at jeus.servlet.engine.Context.preloadServlets(Context.java:1427)
at jeus.servlet.loader.CommonReloader.reload(CommonReloader.java:219)
at jeus.servlet.loader.CommonReloader.checkReload(CommonReloader.java:294)
at jeus.servlet.loader.ContextLoader.checkReload(ContextLoader.java:519)
at jeus.servlet.loader.ClassLoadManager.checkReload(ClassLoadManager.java:123)
at jeus.servlet.loader.ClassLoadManager.doJob(ClassLoadManager.java:247)
at jeus.servlet.common.Monitor.doMonitor(Monitor.java:24)
at jeus.servlet.common.WebContainerMonitor.run(WebContainerMonitor.java:118)
at java.lang.Thread.run(Thread.java:534)
<<__!Exception__>>
상위 클래스들이 같이 로딩되어 지지 않아서 Casting 처리를 하지 못하는것 같은데..
자세한 error 내용은 모르겠습니다.
서버 재실행 할 경우는 다시 정상적으로 작동합니다.