Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1193

ModeShape should work with the JDK logger if no SLF4J logging binder is available.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 2.6.0.Beta1, 2.5.1.GA
    • 2.5.0.Final
    • Tools
    • None
    • Workaround Exists
    • Hide

      The workaround is to provide on the classpath (or in the Maven POM) a logging implementation JAR and the appropriate SLF4J binding JAR. This is documented for Maven and for classpath usage. It is also documented in our Reference Guide.

      Show
      The workaround is to provide on the classpath (or in the Maven POM) a logging implementation JAR and the appropriate SLF4J binding JAR. This is documented for Maven and for classpath usage . It is also documented in our Reference Guide .

      The issue comes from the inability to use modeshape-jdbc-2.5-SNAPSHOT-jar-with-dependencies.jar (modeshape-client.jar) from a client applicatiion outside of JBDS. It requires the org.slf4j.impl.StaticLoggerBinder.class and produces the following exception if not:

      Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder
      at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:230)
      at org.slf4j.LoggerFactory.bind(LoggerFactory.java:121)
      at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:112)
      at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:275)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:248)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:261)
      at org.modeshape.common.util.Logger.getLogger(Logger.java:82)
      at org.modeshape.web.jcr.rest.client.json.JsonRestClient.<clinit>(JsonRestClient.java:66)
      Caused by: java.lang.ClassNotFoundException: org.slf4j.impl.StaticLoggerBinder

      This is made a blocker because if this isn't fixed, then other options have to be looked in order to meet deadline.

              van.halbert Van Halbert (Inactive)
              van.halbert Van Halbert (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: