: > lucene-analyzers-common-4.0.0.jar from 2 places:
: >
: > 
/Users/username/.m2/repository/org/apache/lucene/lucene-analyzers-common/4.0.0
: >
: > 
/Users/username/project/branch/workspace/Project/solr-webapp/webapp/WEB-INF/lib/

Why are identical jars getting loaded from two differnet places?  what in 
your config is loading jars from your .m2 cache?!?!?!

Having two versions of the same class show up in your classpath is exactly 
the sort of thing that will cause a ClassCastException.   Two classes with 
the same name and the same byte code loaded by two different class 
loaders are not the same class as far as the JVM is concerned, and any 
subsequent attempts to use one in place of the other will throw 
ClassCastException...

http://onjava.com/pub/a/onjava/2003/11/12/classloader.html
(skip down to "Class Definition" if impatient)

: > lucene-test-framework-4.0.0.jar only from .m2

...that jar is the reason why you are seeing attempts to load the 
MockFixedIntBlockPostingsFormat at all.  I re-iterate my earlier question: 
what in your setup is attempting to load jars from your .m2 cache -- 
because that really makes no sense to me at all.

: > > > > It's odd that it talks about a Mock class as I'd normally associate
: > > that
: > > > > with unit tests; presumably that's part of the Service Loader
: > > mechanism.


-Hoss

Reply via email to