SPRING/Choose unique values for the 'webAppRootKey'

[ SPRING ] Choose unique values for the 'webAppRootKey'

정윤재 2011. 12. 5. 18:00
Spring Web 프로젝트에서 여러개의 프로젝트를 올릴 때
log4jConfigLocation 이 로딩 될 때 webAppRootKey 를 정의 하지 않아서 default 값인 webapp.root 가 중복 되어 에러가 발생 한다.

해결 방법은 web.xml 에

<context-param>
        <param-name>webAppRootKey</param-name>
        <param-value>cms.admin</param-value>
</context-param>

와 같이 webapp.root 와 다른 값으로 셋팅 해주면 된다.