Choose unique values for the 'webAppRootKey' context-param in your web.xml files!

2016. 2. 25. 09:44개발자 공부방

오류내용


SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.util.Log4jConfigListener

java.lang.IllegalStateException: Web app root system property already set to different value: 'webapp.root' = [/home/samo/apache-tomcat-7.0.53/webapps/wiseapi/] instead of [/home/samo/apache-tomcat-7.0.53/webapps/dreamPark/] - Choose unique values for the 'webAppRootKey' context-param in your web.xml files!

        at org.springframework.web.util.WebUtils.setWebAppRootSystemProperty(WebUtils.java:148)

        at org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebConfigurer.java:117)

        at org.springframework.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:45)

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

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

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

        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)

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

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

        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)

        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)

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

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

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

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

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



증상 : 기존에 운영되던 서버에 새로운 App을 올렸더니 발생한 오류.


해결 : web.xml에 webAppRootKey키를 정의하면됨


<context-param>

           <param-name>webAppRootKey</param-name>

           <param-value>아무내용(프로젝트명이라던지..)</param-value>

</context-param>



- Made in SLC -