I'm using grails 2.5.x and i want to update log4j
I added
dependencies {
compile group: 'org.apache.logging.log4j', name: 'log4j-1.2-api', version: '2.17.0'
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.17.0'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.17.0'
compile group: 'org.slf4j', name: 'log4j-over-slf4j', version: '1.7.32'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.32'
}
grails.war.resources = { stagingDir ->
delete(file:"${stagingDir}/WEB-INF/lib/log4j-1.2.17.jar")
}
when I execute grails run-app works but when I create the war file and deploy in tomcat:
Caused by: groovy.lang.GroovyRuntimeException: failed to invoke constructor: public org.apache.log4j.PatternLayout(java.lang.String) with arguments: [] reason: java.lang.IllegalArgumentException: wrong number of arguments