java.lang.IllegalStateException:

2018-12-20  本文已影响0人  aker0215
  <context-param>
    <param-name>webAppRootKey</param-name>
    <param-value>myapp-A.root</param-value>
  </context-param>
JBWEB000287: Exception sending context initialized event to listener instance of class org.springframework.web.util.Log4jConfigListener: 
       java.lang.IllegalStateException: Web app root system property already set to different value: 'webapp.root' 
      = [/opt/jbshome/appserver/cmsServer1/tmp/vfs/temp/tempf3f4b51b442896b0/A.war-c1ce03fbdd37dff6/] 
       instead of [/opt/jbshome/appserver/cmsServer1/tmp/vfs/temp/tempf3f4b51b442896b0/B.war-5d98fb790815fc0f/] 
       - Choose unique values for the 'webAppRootKey' context-param in your web.xml files!
       at org.springframework.web.util.WebUtils.setWebAppRootSystemProperty(WebUtils.java:161) 
       at org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebConfigurer.java:119) 
       at org.springframework.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:49) 
       at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) 
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:3780)
       at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) 
       at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) 
       at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) 
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
       at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_65]
       at org.jboss.threads.JBossThread.run(JBossThread.java:122)
Web app root system property already set to different value: 'webapp.root' 
       = [/opt/jbshome/appserver/cmsServer1/tmp/vfs/temp/tempf3f4b51b442896b0/A.war-c1ce03fbdd37dff6/] 
        instead of [/opt/jbshome/appserver/cmsServer1/tmp/vfs/temp/tempf3f4b51b442896b0/B.war-5d98fb790815fc0f/] 
        - Choose unique values for the 'webAppRootKey' context-param in your web.xml files!

大意是webapp.root的值被A工程取了默认值, 导致和B工程产生了冲突
并且也提示了Choose unique values for the 'webAppRootKey' context-param in your web.xml files
也就是说我们可以在web.xml增加一个webAppRootKey值的配置就可以解决问题

上一篇下一篇

猜你喜欢

热点阅读