PAX Exam initialization error with Karaf 3 container

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

PAX Exam initialization error with Karaf 3 container

I'm getting this error on starting a basic pax exam test with a Karaf 3 container:

log4j:WARN No appenders could be found for logger (org.ops4j.pax.exam.spi.DefaultExamSystem).
log4j:WARN Please initialize the log4j system properly.

My question is how do I initialize logging when I'm using the following configuration in my test class:

    public Option[] config() {
        MavenArtifactUrlReference karafUrl = maven()

        MavenUrlReference karafStandardRepo = maven()
        return new Option[] {
            // KarafDistributionOption.debugConfiguration("5005", true),
                .unpackDirectory(new File("target/exam"))
            KarafDistributionOption.features(karafStandardRepo , "scr"),