一、异常场景:
发布war包到tomcat,jetty中正常部署,war包解压后用weblogic部署正常,war包直接在weblogic上部署异常:Cannot set web app root system property when WAR file is not expanded
web.xml配置以及log4j位置:
二、原因搜集:
weblogic自身对log4j支持,在war部署时候,与org.springframework.web.util.Log4jConfigListener冲突。
处理:
web.xml配置路径变量webAppRootKey应用路径变量值,注掉web.xml里log4j配置。log4j.properties文件配置到resources根目录。