Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

205
Views
Upgrade log4j to last version

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
over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!