web应用打war包部署在weblogic,启动报错Cannot set web app root system property..........
web应用打war包部署在weblogic,启动报错Caused By: java.lang.IllegalStateException: Cannot set web app root system property when WAR file is not expanded
at org.springframework.web.util.WebUtils.setWebAppRootSystemProperty(WebUtils.java:139)
at org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebConfigurer.java:118)
at org.springframework.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:47)
at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
Truncated. see log file for complete stacktrace
解决方法:
在web.xml文件中添加参数:
<context-param>
<param-name>log4jExposeWebAppRoot</param-name>
<param-value>false</param-value>
</context-param> --------------------编程问答-------------------- 自问自答???? --------------------编程问答-------------------- 散分吧 --------------------编程问答-------------------- war包文件不能展开的时候不能修改 web app root system property --------------------编程问答--------------------
不用war包,直接考文件夹就好了
补充:Java , Web 开发