web.xml与log4j相关的配置
<context-param><param-name>webAppRootKey</param-name><param-value>petstore.root</param-value></context-param><context-param><param-name>log4jConfigLocation</param-name><param-value>/WEB-INF/log4j.properties</param-value></context-param>