[ 
https://issues.apache.org/jira/browse/KARAF-630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13031700#comment-13031700
 ] 

Jamie goodyear commented on KARAF-630:
--------------------------------------

Notes to self:

Reading the docs:

"This error is reported when the org.slf4j.impl.StaticLoggerBinder class could 
not be loaded into memory. This happens when no appropriate SLF4J binding could 
be found on the class path. Placing one (and only one) of slf4j-nop.jar, 
slf4j-simple.jar, slf4j-log4j12.jar, slf4j-jdk14.jar or logback-classic.jar on 
the class path should solve the problem."

In our top level pom we include:
 
slf4j-api, slf4j-jdk14, slf4j-nop, and slf4j-simple. 

Looking inside of deployer/spring pom we have only slf4j-api listed as a 
dependency.

> SpringDeploymentListenerTest fails on IBM JDK builds with No Class Def Found 
> Error
> ----------------------------------------------------------------------------------
>
>                 Key: KARAF-630
>                 URL: https://issues.apache.org/jira/browse/KARAF-630
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.2.1
>         Environment: Maven 2.2.1
> IBM JDK 1.6
>            Reporter: Jamie goodyear
>             Fix For: 2.2.1
>
>
> Error as reported during build below:
> Tests in error: 
>   
> testPackagesExtraction(org.apache.karaf.deployer.spring.SpringDeploymentListenerTest)
> Running org.apache.karaf.deployer.spring.SpringDeploymentListenerTest
> Failed to instantiate SLF4J LoggerFactory
> Reported exception:
> java.lang.NoClassDefFoundError: org.slf4j.impl.StaticLoggerBinder
>       at org.slf4j.LoggerFactory.bind(LoggerFactory.java:121)
>       at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111)
>       at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:268)
>       at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:241)
>       at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)
>       at 
> org.apache.karaf.deployer.spring.SpringDeploymentListener.<init>(SpringDeploymentListener.java:41)
>       at 
> org.apache.karaf.deployer.spring.SpringDeploymentListenerTest.testPackagesExtraction(SpringDeploymentListenerTest.java:35)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:600)
>       at junit.framework.TestCase.runTest(TestCase.java:168)
>       at junit.framework.TestCase.runBare(TestCase.java:134)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to