Tomact or jetty start slowly "when loading log4j configuration"

Source: Internet
Author: User

Booting up on your own computer is normal, booting on someone else's computer has been stuck here.

Log4j:warn No Appenders could is found for logger (org.springframework.web.context.ContextLoader). Log4j:warn Initialize the log4j system Properly.log4j:WARN see http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info .

Configuration files that need to be added to Log4j will find the log4j.properties under resources by default

Log4j.rootlogger=info,a1,r#hibernate sqllog4j.logger.org.hibernate.sql=errorlog4j.additivity.org.hibernate.sql= falselog4j.appender.a1=org.apache.log4j.consoleappenderlog4j.appender.a1.target= system.outlog4j.appender.a1.layout=org.apache.log4j.patternlayoutlog4j.appender.a1.layout.conversionpattern=[% C]%m%nlog4j.appender.r=org.apache.log4j.rollingfileappender log4j.appender.r.file=. /activiti.loglog4j.appender.r.maxfilesize=10mblog4j.appender.r.threshold=alllog4j.appender.r.layout= ORG.APACHE.LOG4J.PATTERNLAYOUTLOG4J.APPENDER.R.LAYOUT.CONVERSIONPATTERN=[%P][%D{YYYY-MM-DD HH\:mm\:ss,SSS}][%c] %m%n# Struts ognlutil issues unimportant warnings log4j.logger.com.opensymphony.xwork2.util.ognlutil=error Log4j.logger.com.opensymphony.xwork2.ognl.ognlvaluestack=error

If other path lookups are added in Web. xml

<context-param> <param-name>log4jConfigLocation</param-name> <param-value> classpath:/log4j.properties</param-value> </context-param> <listener> <listener-c lass> Org.springframework.web.util.Log4jConfigListener <listener-class> <l Istener>


Tomact or jetty start slowly "when loading log4j configuration"

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.