Solution Jetty Maven Plugin:please Initialize the log4j system properly (RPM)

Source: Internet
Author: User

Resolve Jetty Maven Plugin:please initialize the log4j system properly.
Jetty Maven Plugin Environment:

<plugin>        <groupId>org.mortbay.jetty</groupId>        <artifactid>jetty-maven-plugin </artifactId>        <version>8.1.  Ten.v20130312</version></plugin>

To join the log configuration file:

<plugin>        <groupId>org.mortbay.jetty</groupId>        <artifactid>jetty-maven-plugin </artifactId>        <version>8.1.  Ten.v20130312</version>        <configuration>              <systemProperties>                    < systemproperty>                      <name>log4j.configuration</name>                      <value>file:/${jetty.home}/ resources/log4j.properties</value>                    </systemProperty>              </systemProperties>        < /configuration></plugin>

This error disappears when finished!!

Add: But the system still does not play the info log that we want, carefully found here is another problem:

class " Org.slf4j.impl.StaticLoggerBinder " . Slf4j:defaulting to No-operation (NOP) Logger implementation

This problem solution will be explained in http://jerval.iteye.com/blog/1872787!

http://blog.csdn.net/jerval/article/details/8966990

Solution Jetty Maven Plugin:please Initialize the log4j system properly (RPM)

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.