Just a quick update,

The version of Lingo3G (1.12.0) does not seem compatible with the older version 
of Guava packaged with Solr. Switching to an older version of Lingo3G has 
resolved the issue.

Thanks for the help! 
Collin

Collin Mandris
Associate Engineer, Software
Defense Solutions Division
General Dynamics Information Technology
55 Dodge Road 
Buffalo, New York 14068-1205
Phone: 1-716-243-4022
Fax: (716) 691-3642
collin.mand...@gdit.com

-----Original Message-----
From: Shawn Heisey [mailto:apa...@elyograg.org] 
Sent: Friday, July 10, 2015 15:50
To: solr-user@lucene.apache.org
Subject: Re: Lingo3g-Solr integration - ClassNotFoundException: 
com.google.common.base.MoreObjects

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