lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (JIRA) <>
Subject [jira] Created: (SOLR-2369) Zookeeper depends on log4j, thus also SolrCloud does
Date Wed, 16 Feb 2011 22:19:24 GMT
Zookeeper depends on log4j, thus also SolrCloud does

                 Key: SOLR-2369
             Project: Solr
          Issue Type: Bug
          Components: SolrCloud
    Affects Versions: 3.1
            Reporter: Jan Høydahl

1. Use default Solr example build (with JDK logging)
2. Run example C on
3. You get Exception:
   java.lang.NoClassDefFoundError: org/apache/log4j/jmx/HierarchyDynamicMBean
       at org.apache.zookeeper.jmx.ManagedUtil.registerLog4jMBeans(
       at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(

Probable reason:
Zookeeper depends on log4j

Switch to log4j logging (as you cannot include both log4j bridge and log4j):
* Remove log4j-over-slf4j-1.5.5.jar and slf4j-jdk14-1.5.5.jar
* Add slf4j-logj12.jar and log4j-1.2.16.jar

Document the shortcoming in release notes

Long term fix:
Vote for the resolution of ZOOKEEPER-850 which switches ZK to slf4j logging

This message is automatically generated by JIRA.
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message