java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

JIRA | Ian Soboroff | 3 years ago
  1. 0

    I'm walking through the quickstart tutorial, and indexing WT2G: $ ./bin/trec_terrier.sh -i Setting TERRIER_HOME to /Users/soboroff/terrier-3.6 INFO - TRECCollection read collection specification (1081 files) INFO - Processing /home/collections/WT2G_1999//WT01/B01 INFO - creating the data structures data_1 Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.hadoop.io.Text.<clinit>(Text.java:49) at org.terrier.structures.indexing.CompressingMetaIndexBuilder.writeDocumentEntry(CompressingMetaIndexBuilder.java:232) at org.terrier.structures.indexing.CompressingMetaIndexBuilder.writeDocumentEntry(CompressingMetaIndexBuilder.java:212) at org.terrier.indexing.BasicIndexer.indexDocument(BasicIndexer.java:386) at org.terrier.indexing.BasicIndexer.createDirectIndex(BasicIndexer.java:270) at org.terrier.indexing.Indexer.index(Indexer.java:346) at org.terrier.applications.TRECIndexing.index(TRECIndexing.java:122) at org.terrier.applications.TrecTerrier.run(TrecTerrier.java:408) at org.terrier.applications.TrecTerrier.applyOptions(TrecTerrier.java:589) at org.terrier.applications.TrecTerrier.main(TrecTerrier.java:246) Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 10 more The lib/ directory is missing a commons-logging jar. I copied a random one from CDH4 I had lying around and it worked.

    JIRA | 3 years ago | Ian Soboroff
    java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
  2. 0

    I'm walking through the quickstart tutorial, and indexing WT2G: $ ./bin/trec_terrier.sh -i Setting TERRIER_HOME to /Users/soboroff/terrier-3.6 INFO - TRECCollection read collection specification (1081 files) INFO - Processing /home/collections/WT2G_1999//WT01/B01 INFO - creating the data structures data_1 Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.hadoop.io.Text.<clinit>(Text.java:49) at org.terrier.structures.indexing.CompressingMetaIndexBuilder.writeDocumentEntry(CompressingMetaIndexBuilder.java:232) at org.terrier.structures.indexing.CompressingMetaIndexBuilder.writeDocumentEntry(CompressingMetaIndexBuilder.java:212) at org.terrier.indexing.BasicIndexer.indexDocument(BasicIndexer.java:386) at org.terrier.indexing.BasicIndexer.createDirectIndex(BasicIndexer.java:270) at org.terrier.indexing.Indexer.index(Indexer.java:346) at org.terrier.applications.TRECIndexing.index(TRECIndexing.java:122) at org.terrier.applications.TrecTerrier.run(TrecTerrier.java:408) at org.terrier.applications.TrecTerrier.applyOptions(TrecTerrier.java:589) at org.terrier.applications.TrecTerrier.main(TrecTerrier.java:246) Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 10 more The lib/ directory is missing a commons-logging jar. I copied a random one from CDH4 I had lying around and it worked.

    JIRA | 3 years ago | Ian Soboroff
    java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    cloudera - Failed to execute command Start on service Accumulo 1.6

    Stack Overflow | 9 months ago | jhole89
    java.lang.NoClassDefFoundError: com/google/common/base/Preconditions
  5. 0

    Mapreduce issue

    GitHub | 2 years ago | raghuthotakura
    java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    org.apache.commons.logging.LogFactory

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    2. java.security.AccessController.doPrivileged(Native Method)
    3. java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    5. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    6. java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    6 frames
  3. Hadoop
    Text.<clinit>
    1. org.apache.hadoop.io.Text.<clinit>(Text.java:49)
    1 frame
  4. org.terrier.structures
    CompressingMetaIndexBuilder.writeDocumentEntry
    1. org.terrier.structures.indexing.CompressingMetaIndexBuilder.writeDocumentEntry(CompressingMetaIndexBuilder.java:232)
    2. org.terrier.structures.indexing.CompressingMetaIndexBuilder.writeDocumentEntry(CompressingMetaIndexBuilder.java:212)
    2 frames
  5. org.terrier.indexing
    Indexer.index
    1. org.terrier.indexing.BasicIndexer.indexDocument(BasicIndexer.java:386)
    2. org.terrier.indexing.BasicIndexer.createDirectIndex(BasicIndexer.java:270)
    3. org.terrier.indexing.Indexer.index(Indexer.java:346)
    3 frames
  6. org.terrier.applications
    TrecTerrier.main
    1. org.terrier.applications.TRECIndexing.index(TRECIndexing.java:122)
    2. org.terrier.applications.TrecTerrier.run(TrecTerrier.java:408)
    3. org.terrier.applications.TrecTerrier.applyOptions(TrecTerrier.java:589)
    4. org.terrier.applications.TrecTerrier.main(TrecTerrier.java:246)
    4 frames