-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatibility with Solr 3.6.0, 3.6.1, and 4.0 #2
Comments
Comment from the blog post:
|
OK, I finally managed to make some progress on this bug. According to this discussion, the problem is that the class files are loaded by multiple ClassLoaders, but classes in the same package should be loaded by the same ClassLoader. Basically what you have to do is just make sure that the On the other hand, I'm still unable to get this to work in anything other than Tomcat. Tomcat runs beautifully, but Jetty (using the example/ settings) gives me this error:
Exact same WAR file, exact same CWD, exact same everything. Tomcat works and Maven doesn't. Even if I bundle apache-solr-core and hon-lucene-synonyms into the same WAR file, Jetty doesn't like it. Tomcat does, but not Jetty. For the time being, I'm considering just adding separate builds for major Solr releases (3.5.0, 3.6.0, 3.6.1, 4.0.0, 4.1.0) and saying that this plugin only works with Tomcat. I'll also need to add better instructions for including the JAR file in with the WAR file, and maybe some better usage examples. |
That's Tomcat 6.0.26 and Jetty jetty-6.1-SNAPSHOT, by the way. |
Actually, it looks like Jetty shows the error but still works anyway. Weird. |
This bug doesn't seem to have anything to do with the Solr version, and seems to rather depend on where the JAR file is placed relative to the Solr JAR files. I've tested with Solr 3.5.0, 3.6.1, and 3.6.2, I've tested in Jetty and Tomcat, I've built separate versions of the JAR file for 5 different versions of Solr, and plus I've added a "Getting Started" tutorial to the README: https://github.com/healthonnet/hon-lucene-synonyms/blob/master/README.md#getting-started . I'm hoping that's enough to consider this bug squashed. |
This may turn into a super-bug, but let's hope not.
First off, there is a problem accessing the
queryFields
private variable, which was fixed by this commit. Other problems abound, though, as detailed in these WordPress comments.First off, there's this guy:
Then there's this guy:
I can confirm seeing these same issues myself when I try to build using Solr 3.6.0 instead of 3.5.0.
Currently I'm still dumbfounded by these bugs.
SynonymExpandingExtendedDismaxQParser
is clearly aExtendedDismaxQParser
. It's even in the same package. So I have no idea why the class loader is complaining about this.The text was updated successfully, but these errors were encountered: