Log4j conflicts- container provided and project level

We got a couple of grails applications running, each with its own Log4j classes. They need to be moved with a server that has log4j provided by Tomcat.

It it possible to get the grails applications to use the tomcat provided libraries?

Any help would be appreciated.

Answers


You can try excluding log4j from Grails depencies so that Tomcat provided log4j will be used:

grails.project.dependency.resolution = {
    inherits("global") {
        excludes "log4j"
    }
}

Need Your Help

Linq to SQL Domain Entity Property Comparison Using Expressions

c# sql linq entity-framework

I am trying to create Linq to SQL expressions to generically allow for the same properties to be compared on two different domain entity records. The general idea would be to define which properti...