Detected both Log4j-over-slf4j.jar and Slf4j-log4j12.jar on the class path, preempting stackoverflowerror

Source: Internet
Author: User

Slf4j:detected both Log4j-over-slf4j.jar and slf4j-Log4j12.jar on the class path, preempting stackoverflowerror. Slf4j:see also http://Www.slf4j.org/codes.html#log4jDelegationLoop for more details.ExceptioninchThread"Main"Java.lang.ExceptionInInitializerError at Org.apache.log4j.LogManager.getLogger (Logmanager.java: -) at Org.slf4j.impl.Log4jLoggerFactory.getLogger (Log4jloggerfactory.java: the) at Org.slf4j.LoggerFactory.getLogger (Loggerfactory.java:277) at Org.apache.commons.logging.impl.SLF4JLogFactory.getInstance (Slf4jlogfactory.java:156) at Org.apache.commons.logging.impl.SLF4JLogFactory.getInstance (Slf4jlogfactory.java: the) at Org.apache.commons.logging.LogFactory.getLog (Logfactory.java:274) at Org.springframework.context.support.AbstractApplicationContext.<init> (Abstractapplicationcontext.java:164) at Org.springframework.context.support.AbstractApplicationContext.<init> (Abstractapplicationcontext.java:228) at Org.springframework.context.support.AbstractRefreshableApplicationContext.<init> (Abstractrefreshableapplicationcontext.java: the) at Org.springframework.context.support.AbstractRefreshableConfigApplicationContext.<init> (Abstractrefreshableconfigapplicationcontext.java: -) at Org.springframework.context.support.AbstractXmlApplicationContext.<init> (Abstractxmlapplicationcontext.java: A) at Org.springframework.context.support.ClassPathXmlApplicationContext.<init> (Classpathxmlapplicationcontext.java:136) at Org.springframework.context.support.ClassPathXmlApplicationContext.<init> (Classpathxmlapplicationcontext.java: the) at Com.solr.service.test.UserFeedBackQueryTest.main (Userfeedbackquerytest.java: at) at Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at Sun.reflect.NativeMethodAccessorImpl.invoke (Nativemethodaccessorimpl.java: +) at Sun.reflect.DelegatingMethodAccessorImpl.invoke (Delegatingmethodaccessorimpl.java: +) at Java.lang.reflect.Method.invoke (Method.java:498) at Com.intellij.rt.execution.application.AppMain.main (Appmain.java:147) caused by:java.lang.IllegalStateException:Detected both log4j-over-slf4j.jar and Slf4j-log4j12.jar on the class path, preempting stackoverflowerror. See also http://Www.slf4j.org/codes.html#log4jDelegationLoop for more details.At Org.apache.log4j.log4jloggerfactory.<clinit> (Log4jloggerfactory.java:Wuyi)    ...  +  More


Jar Package Conflict

 <Exclusions>                <exclusion>                    <groupId>Org.slf4j</groupId>                    <Artifactid>Slf4j-log4j12</Artifactid>                </exclusion> </Exclusions>

Detected both Log4j-over-slf4j.jar and Slf4j-log4j12.jar on the class path, preempting stackoverflowerror

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.