lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Miller <>
Subject Re: Missing SLF4J lib?
Date Wed, 17 Jun 2009 15:13:36 GMT
True, its not in apache-solr-nightly/dist/solrj-lib, but it is in 
apache-solr-nightly/lib, so no reason to have to download it.

I couldn't comment on whether or not it also belongs in solrj-lib.

- Mark

Development Team wrote:
> 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>(
>      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:
>      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.

View raw message