[hibernate-issues] [Hibernate-JIRA] Resolved: (HSEARCH-232) Using SnowballPorterFilterFactory throws NoClassDefFoundError
Hardy Ferentschik (JIRA)
noreply at atlassian.com
Mon Oct 13 07:07:04 EDT 2008
[ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hardy Ferentschik resolved HSEARCH-232.
---------------------------------------
Resolution: Fixed
Added snowball test to SolrAnalyzerTest.
> Using SnowballPorterFilterFactory throws NoClassDefFoundError
> -------------------------------------------------------------
>
> Key: HSEARCH-232
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-232
> Project: Hibernate Search
> Issue Type: Bug
> Reporter: Hardy Ferentschik
> Assignee: Hardy Ferentschik
> Fix For: 3.1.0.Beta2
>
>
> Trying to use SnowballPorterFilterFactory in @AnalyzerDef will currently throw the following exception:
> java.lang.NoClassDefFoundError: org/apache/solr/request/QueryResponseWriter
> at org.apache.solr.analysis.SnowballPorterFilterFactory.init(SnowballPorterFilterFactory.java:42)
> The problem is SnowballPorterFilterFactory contains a log statement using SolrCore.log.fine(). SolrCore itself has then a whole list of other import statements including QueryResponseWriter. Within Hibernate Search we use a custom/shrinked version of the solr jar which only contains the classes needed for analysis. QueryResponseWriter should of course not be required (see http://repository.jboss.org/maven2/org/hibernate/apache/lucene/solr/apache-solr-analyzer/1.2.0/solrshrinker-build.xml).
> The problem does not occur when the full solr jar is used.
> We need to start a discussion with the solr developers regrading this logging issue.
> Example annotation causing the error:
> @AnalyzerDef(name="customanalyzer",
> tokenizer = @TokenizerDef(factory = StandardTokenizerFactory.class),
> filters = {
> @TokenFilterDef(factory = LowerCaseFilterFactory.class),
> @TokenFilterDef(factory = SnowballPorterFilterFactory.class,params = {
> @Parameter(name="language", value= "English")
> }),
> })
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list