Mykola Holovach created LOG4J2-3036:
---------------------------------------

             Summary: ERROR StatusLogger Exception with latest log4j2 version 
(2.14.0)
                 Key: LOG4J2-3036
                 URL: https://issues.apache.org/jira/browse/LOG4J2-3036
             Project: Log4j 2
          Issue Type: Question
          Components: Configurators, Plugins
         Environment: maven

java 8
            Reporter: Mykola Holovach


Hi, when i run mvn clean install -pl 'my project' i'm getting an error, this 
happends when maven through maven antrun plugin ( version 3.0.0) run main class 
in which i'm trying to initialize logger, i using the latest version of log4j2, 
please help me to understand what is it ang how to fix it. Thank you in advance!
P.S.: After these errors logger initialized successfuly, but how to fix it?
{code:java}
[INFO]      [java] ERROR StatusLogger Caught java.lang.AbstractMethodError 
setting feature http://xml.org/sax/features/external-general-entities to false 
on DocumentBuilderFactory 
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@706a04ae: 
java.lang.AbstractMethodError: 
javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
[INFO]      [java]  java.lang.AbstractMethodError: 
javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.xml.XmlConfiguration.setFeature(XmlConfiguration.java:204)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.xml.XmlConfiguration.disableDtdProcessing(XmlConfiguration.java:197)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.xml.XmlConfiguration.newDocumentBuilder(XmlConfiguration.java:186)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.xml.XmlConfiguration.<init>(XmlConfiguration.java:89)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.xml.XmlConfigurationFactory.getConfiguration(XmlConfigurationFactory.java:46)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:302)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:467)
[INFO]      [java]      at 
org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:240)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:159)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:131)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:101)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:210)
[INFO]      [java]      at ua.cetelem.LOG.init(LOG.java:42)
[INFO]      [java]      at 
ua.cetelem.expertsystem.tools.drools.DRoolsCompiller.main(DRoolsCompiller.java:207)
[INFO]      [java] ERROR StatusLogger Caught java.lang.AbstractMethodError 
setting feature http://xml.org/sax/features/external-parameter-entities to 
false on DocumentBuilderFactory 
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@706a04ae: 
java.lang.AbstractMethodError: 
javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
[INFO]      [java]  java.lang.AbstractMethodError: 
javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.xml.XmlConfiguration.setFeature(XmlConfiguration.java:204)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.xml.XmlConfiguration.disableDtdProcessing(XmlConfiguration.java:198)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.xml.XmlConfiguration.newDocumentBuilder(XmlConfiguration.java:186)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.xml.XmlConfiguration.<init>(XmlConfiguration.java:89)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.xml.XmlConfigurationFactory.getConfiguration(XmlConfigurationFactory.java:46)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:302)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:467)
[INFO]      [java]      at 
org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:240)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:159)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:131)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:101)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:210)
[INFO]      [java]      at ua.cetelem.LOG.init(LOG.java:42)
[INFO]      [java]      at 
ua.cetelem.expertsystem.tools.drools.DRoolsCompiller.main(DRoolsCompiller.java:207)
[INFO]      [java] ERROR StatusLogger Caught java.lang.AbstractMethodError 
setting feature http://apache.org/xml/features/nonvalidating/load-external-dtd 
to false on DocumentBuilderFactory 
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@706a04ae: 
java.lang.AbstractMethodError: 
javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
[INFO]      [java]  java.lang.AbstractMethodError: 
javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.xml.XmlConfiguration.setFeature(XmlConfiguration.java:204)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.xml.XmlConfiguration.disableDtdProcessing(XmlConfiguration.java:199)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.xml.XmlConfiguration.newDocumentBuilder(XmlConfiguration.java:186)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.xml.XmlConfiguration.<init>(XmlConfiguration.java:89)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.xml.XmlConfigurationFactory.getConfiguration(XmlConfigurationFactory.java:46)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:302)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:467)
[INFO]      [java]      at 
org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:240)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:159)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:131)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:101)
[INFO]      [java]      at 
org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:210)

{code}
in first version of log4j i'mcould you help me to explain how to up and use 
something like TcpSocketServer on the newest version? Thanks in advance!

maven antrun plugin 3.0.0



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to