lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Matviychuk <alex...@gmail.com>
Subject Re: ClassCastException Issue
Date Thu, 28 Oct 2010 01:11:00 GMT
I found it! Ran this on against the webapps folder:

find . -name *.jar | sed 's/^.*\/\(.*\)$/\1/' | sort

...
lucene-analyzers-2.9.3.jar
lucene-core-2.9.1.jar
lucene-highlighter-2.9.3.jar
lucene-memory-2.9.3.jar
lucene-misc-2.9.3.jar
lucene-queries-2.9.1.jar
lucene-queries-2.9.3.jar
lucene-snowball-2.9.3.jar
lucene-spellchecker-2.9.3.jar
...

Hope that helps someone in a similar situation.

Thanks again for the help!

Cheers,
Alex Matviychuk

On Wed, Oct 27, 2010 at 18:01, Alex Matviychuk <alexmat@gmail.com> wrote:
> On Wed, Oct 27, 2010 at 03:57, Chris Hostetter <hossman_lucene@fucit.org> wrote:
>> This almost certainly inidcates a classloader issue - i suspect you have
>> multiple solr related jars in various places, and the FieldType class
>> instance found when StrField is loaded comes from a different
>> (incompatible) jar.
>
> Thanks for the feedback. I am pretty sure you are right about this
> being a class loader issue. This is a pretty big project and it isn't
> immediately easy to figure out what is causing the conflict. I am
> using EmbeddedSolr from the 1.4.1 release. These show up in the
> project's lib folder when deployed to tomcat:
>
> lucene-core-2.9.3.jar
> lucene-highlighter-2.9.3.jar
> lucene-memory-2.9.3.jar
> lucene-misc-2.9.3.jar
> lucene-queries-2.9.3.jar
> lucene-snowball-2.9.3.jar
> lucene-spellchecker-2.9.3.jar
>
> According to the solr homepage, this is what solr 1.4.1 is built against.
>
> I looked at the FieldType class and it looks like it only relies on
> solr stuff and lucene.
>
> I don't have much experience with classloader issues, any tips on how
> to debug this?
>
>
> And Ken:
> I tried renaming the field as you suggested, but I get the same issue.
>
> Thanks,
> Alex Matviychuk
>

Mime
View raw message