AnsweredAssumed Answered

Lucene Analyzer problem using Alfresco 2.0

Question asked by flin on Feb 26, 2007
Latest reply on Feb 26, 2007 by flin
Hi there,

I just created dev. environment with Alfresco 2.0 SDK.

When I try to run First JCR (or Foundation) Client I'm getting the following error:

Exception in thread "main" org.alfresco.error.AlfrescoRuntimeException: Bootstrap failed
   at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:444)
   at org.alfresco.repo.importer.ImporterBootstrap.onBootstrap(ImporterBootstrap.java:666)
   at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:62)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:45)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:225)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:323)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:87)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:72)
   at org.alfresco.util.ApplicationContextHelper.getApplicationContext(ApplicationContextHelper.java:48)
   at org.alfresco.sample.FirstFoundationClient.main(FirstFoundationClient.java:70)
Caused by: org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 8; column 23 due to error: Unable to load analyser for property of type {http://www.alfresco.org/model/dictionary/1.0}text using org.apache.lucene.analysis.br.BrazilianAnalyzer
   at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:179)
   at org.alfresco.repo.importer.ImporterComponent.parserImport(ImporterComponent.java:352)
   at org.alfresco.repo.importer.ImporterComponent.importView(ImporterComponent.java:219)
   at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:426)
   … 9 more
Caused by: java.lang.RuntimeException: Unable to load analyser for property of type {http://www.alfresco.org/model/dictionary/1.0}text using org.apache.lucene.analysis.br.BrazilianAnalyzer
   at org.alfresco.repo.search.impl.lucene.analysis.MLAnalayser.loadAnalyzer(MLAnalayser.java:180)
   at org.alfresco.repo.search.impl.lucene.analysis.MLAnalayser.findAnalyser(MLAnalayser.java:159)
   at org.alfresco.repo.search.impl.lucene.analysis.MLAnalayser.getAnalyser(MLAnalayser.java:151)
   at org.alfresco.repo.search.impl.lucene.analysis.MLAnalayser.getDefaultAnalyser(MLAnalayser.java:143)
   at org.alfresco.repo.search.impl.lucene.analysis.MLAnalayser.tokenStream(MLAnalayser.java:118)
   at org.alfresco.repo.search.impl.lucene.LuceneAnalyser.tokenStream(LuceneAnalyser.java:117)


How do I configure Alfresco to use the default analyzer instead of looking for a localized one?

Outcomes