Hi everybody,
     With Solr 1.4, when I try to *run* an app that uses SolrJ, it fails
with this exception:

Exception in thread "Thread-4" java.lang.NoClassDefFoundError:
org/slf4j/LoggerFactory
at
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.<clinit>(CommonsHttpSolrServer.java:77)

     I searched around a bit, and have found people telling me I need to
include the SLF4J jars in my classpath. The most helpful of these comments
read:

> I think you need slf4j-api-1.5.5.jar and slf4j-jdk14-1.5.5.jar. Both
> can be found in solr's nightly downloads in the lib directory.

     Unfortunately that's not true, the "slf4j-jdk" JAR is not present in
the nightly's lib directory. In order to get my program to run I had to
download it from here and put it in my runtime classpath in order to get my
program to work:  http://www.slf4j.org/download.html
     Should I log a bug to have this library included in the nightly builds?

     Also, on a related note, we may want to warn users of SolrJ in the
documentation that they'll need these jars during runtime. Otherwise their
programs will fail and they'll wonder what's going on.

- Daryl.

Reply via email to