The app root system property of log4j in the same Tomcat app cannot be the same and must be set differently. Otherwise, the following error occurs. The solution is identified in the error.

Source: Internet
Author: User

Severe: 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 '= [c: \ tools \ Tomcat \ apache-Tomcat-6.0.35 \ webapps \ dhoffice \] instead of [C: \ tools \ Tomcat \ apache-Tomcat-6.0.35 \ webapps \ sencloudmm \]-
Choose unique values for the 'webapprootkey' context-Param in your web. xml files!
At org. springframework. Web. util. webutils. setwebapprootsystemproperty (webutils. Java: 132)
At org. springframework. Web. util. log4jwebconfigurer. initlogging (log4jwebconfigurer. Java: 117)
At org. springframework. Web. util. log4jconfiglistener. contextinitialized (log4jconfiglistener. Java: 51)
At org. Apache. Catalina. Core. standardcontext. listenerstart (standardcontext. Java: 4206)
At org. Apache. Catalina. Core. standardcontext. Start (standardcontext. Java: 4705)
At org. Apache. Catalina. Core. containerbase. addchildinternal (containerbase. Java: 799)
At org. Apache. Catalina. Core. containerbase. addchild (containerbase. Java: 779)
At org. Apache. Catalina. Core. standardhost. addchild (standardhost. Java: 601)
At org. Apache. Catalina. startup. hostconfig. deploydirectory (hostconfig. Java: 1079)
At org. Apache. Catalina. startup. hostconfig. deploydirectories (hostconfig. Java: 1002)
At org. Apache. Catalina. startup. hostconfig. deployapps (hostconfig. Java: 506)
At org. Apache. Catalina. startup. hostconfig. Start (hostconfig. Java: 1317)
At org. Apache. Catalina. startup. hostconfig. lifecycleevent (hostconfig. Java: 324)
At org. Apache. Catalina. util. lifecyclesupport. firelifecycleevent (lifecyclesupport. Java: 142)
At org. Apache. Catalina. Core. containerbase. Start (containerbase. Java: 1065)
At org. Apache. Catalina. Core. standardhost. Start (standardhost. Java: 840)
At org. Apache. Catalina. Core. containerbase. Start (containerbase. Java: 1057)
At org. Apache. Catalina. Core. standardengine. Start (standardengine. Java: 463)
At org. Apache. Catalina. Core. standardservice. Start (standardservice. Java: 525)
At org. Apache. Catalina. Core. standardserver. Start (standardserver. Java: 754)
At org. Apache. Catalina. startup. Catalina. Start (Catalina. Java: 595)
At sun. Reflect. nativemethodaccessorimpl. invoke0 (native method)
At sun. Reflect. nativemethodaccessorimpl. Invoke (nativemethodaccessorimpl. Java: 39)
At sun. Reflect. delegatingmethodaccessorimpl. Invoke (delegatingmethodaccessorimpl. Java: 25)
At java. Lang. Reflect. method. Invoke (method. Java: 597)
At org. Apache. Catalina. startup. Bootstrap. Start (Bootstrap. Java: 289)
At org. Apache. Catalina. startup. Bootstrap. Main (Bootstrap. Java: 414)
2012-9-21 21:25:26 org. Apache. Catalina. Core. applicationcontext log
Information: initializing spring root webapplicationcontext
Log4j: warn no appenders cocould be found for logger (Org. springframework. Web. Context. contextloader ).
Log4j: Warn please initialize the log4j system properly.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.