Weblogic 运行项目  Cannot set web app root system property when WAR file is not

在tomcat 环境运行没问题,但是weblogic 出现。

报错信息: Cannot set web app root system property when WAR file is not

[2019-03-16 03:21:25,105] Artifact MdmQueBroadcast:war: Artifact is being deployed, please wait...
<2019-3-16 下午03时21分27秒 CST> <Warning> <Server> <BEA-002611> <Hostname "fz-hp", maps to multiple IP addresses: 169.254.159.225, 169.254.63.9, 192.168.10.11, fe80:0:0:0:dde0:f16d:b140:9fe1%15, fe80:0:0:0:e56d:474a:69ee:3f09%17, fe80:0:0:0:7c63:3d1d:8648:c3e5%10> 
<2019-3-16 下午03时21分30秒 CST> <Warning> <HTTP> <BEA-101162> <User defined listener org.springframework.web.util.Log4jConfigListener failed: java.lang.IllegalStateException: Cannot set web app root system property when WAR file is not expanded.
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:149)
	at org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebConfigurer.java:117)
	at org.springframework.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:46)
	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
> 
<2019-3-16 下午03时21分30秒 CST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1552720885402' for task '0'. Error is: 'weblogic.application.ModuleException: '
weblogic.application.ModuleException: 
	at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1520)
	at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
	at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
	Truncated. see log file for complete stacktrace
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:149)
	at org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebConfigurer.java:117)
	at org.springframework.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:46)
	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
> 
<2019-3-16 下午03时21分30秒 CST> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 1 task for the application 'MdmQueBroadcast_war'.> 
<2019-3-16 下午03时21分30秒 CST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'MdmQueBroadcast_war'.> 
<2019-3-16 下午03时21分30秒 CST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
weblogic.application.ModuleException: 
	at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1520)
	at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
	at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
	Truncated. see log file for complete stacktrace
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:149)
	at org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebConfigurer.java:117)
	at org.springframework.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:46)
	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
> 

原因:weblogic 运行时不会自动解压war文件,如图需要选择第二中发布方式才能正常运行。

d8a0a25b709c79ac114bb03f7784d728770.jpg

 

转载于:https://my.oschina.net/fengzhi714/blog/3023400

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值