[
https://issues.apache.org/jira/browse/LOG4J2-368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13750274#comment-13750274
]
Ralph Goers commented on LOG4J2-368:
------------------------------------
The 1.2 bridge is meant to be the minimum amount of stuff from Log4j 1 to pass
applications over to Log4j 2. Log4j 1 Layouts, Appenders and Filters will not
work with Log4j 2 so there is no point in implementing them. The only reason
PatternLayout exists is because Velocity has a hard-coded reference to it. I am
not sure how I missed implementing the constructor since it was created for the
sole purpose of making Velocity work.
> PatternLayout in 1.2 bridge missing constructor
> -----------------------------------------------
>
> Key: LOG4J2-368
> URL: https://issues.apache.org/jira/browse/LOG4J2-368
> Project: Log4j 2
> Issue Type: Bug
> Components: log4j 1.2 emulation
> Affects Versions: 2.0-beta8
> Environment: Velocity 1.7 hits this
> Reporter: Gus Heck
>
> java.lang.NoSuchMethodError:
> org.apache.log4j.PatternLayout.<init>(Ljava/lang/String;)V
> at
> org.apache.velocity.runtime.log.Log4JLogChute.initAppender(Log4JLogChute.java:117)
> ~[velocity-1.7-dep.jar:1.7]
> at
> org.apache.velocity.runtime.log.Log4JLogChute.init(Log4JLogChute.java:85)
> ~[velocity-1.7-dep.jar:1.7]
> at
> org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:157)
> ~[velocity-1.7-dep.jar:1.7]
> at
> org.apache.velocity.runtime.log.LogManager.updateLog(LogManager.java:269)
> ~[velocity-1.7-dep.jar:1.7]
> at
> org.apache.velocity.runtime.RuntimeInstance.initializeLog(RuntimeInstance.java:871)
> ~[velocity-1.7-dep.jar:1.7]
> at
> org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:262)
> ~[velocity-1.7-dep.jar:1.7]
> at
> org.apache.velocity.runtime.RuntimeInstance.requireInitialization(RuntimeInstance.java:302)
> ~[velocity-1.7-dep.jar:1.7]
> at
> org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1531)
> ~[velocity-1.7-dep.jar:1.7]
> at
> org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:343)
> ~[velocity-1.7-dep.jar:1.7]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]