On 7/10/2015 10:09 AM, Mandris, Collin wrote:
> Hello,
>
> I am trying to integrate Lingo3g with Solr. I have arrived at the error 
> ClassNotFoundException error using Lingo3g (verison 1.12.0) with Solr 4.8.0. 
> I located the guava-18.0.jar, which contains the 
> com.google.common.base.MoreObjects class, and have tried putting it in 
> multiple locations within our Solr deployment, but have had no luck in 
> getting by the error. So far, I have tried:
>
> 1)            Adding Class-Path: guava-18.0.jar to the manifest file in 
> start.jar, solr.war and lingo3g-1.12.0.jar, with guava-18.0.jar copied to the 
> same folder as each respective jar file.
> 2)            Putting guava-18.0.jar in the contrib\clustering\lib folder 
> with the other lingo3g jar files.
> 3)            Putting guava-18.0.jar in the java jdk bin folder.

Solr already includes guava, but it's a very old version -- 14.0.1.

This means that you can't simply add a newer guava jar... but I've just
tried upgrading Guava in the solr source code to 18.0, and Solr won't
compile.

We have an unresolved issue to upgrade guava to version 15.  Somebody
mentioned kite-morphlines as a blocker for that, but I'm not sure what
the full story is.  I've updated the issue with a comment about this thread.

https://issues.apache.org/jira/browse/SOLR-5584

At this time, you can't use anything that depends on Guava 18.  This is
a textbook case of "jar hell" ... we need to get guava upgraded in Solr.

https://en.wikipedia.org/wiki/Java_Classloader#JAR_hell

Thanks,
Shawn

Reply via email to