Resource not found: analyzerfiles/stopwords.txt in editor deploy WTP Tomcat
exception when deploying researchr in WTP tomcat: org.hibernate.search.SearchException: Resource not found: analyzerfiles/stopwords.txt
possibly related to the current working dir being /Eclipse.app/Contents/MacOS when deploying with this setup
Submitted by Danny Groenewegen on 27 November 2013 at 17:11[27 Nov 17:06:54 researchr] FATAL java.lang.ExceptionInInitializerError at utils.HibernateUtilConfigured.<clinit>(HibernateUtilConfigured.java:307) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:190) at utils.HibernateUtil.getSessionFactoryUsingReflection(HibernateUtil.java:28) at utils.HibernateUtil.<clinit>(HibernateUtil.java:23) at utils.DispatchServlet.tryLoadGlobalsAndPerformInit(DispatchServlet.java:19) at utils.DispatchServlet.init(DispatchServlet.java:38) at javax.servlet.GenericServlet.init(GenericServlet.java:160) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:865) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:136) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: org.hibernate.HibernateException: could not init listeners at org.hibernate.event.EventListeners.initializeListeners(EventListeners.java:205) at org.hibernate.cfg.Configuration.getInitializedEventListeners(Configuration.java:2010) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1872) at utils.HibernateUtilConfigured.<clinit>(HibernateUtilConfigured.java:302) ... 24 more Caused by: org.hibernate.search.SearchException: Resource not found: analyzerfiles/stopwords.txt at org.hibernate.search.util.HibernateSearchResourceLoader.getLines(HibernateSearchResourceLoader.java:66) at org.apache.solr.analysis.BaseTokenStreamFactory.getWordSet(BaseTokenStreamFactory.java:125) at org.apache.solr.analysis.StopFilterFactory.inform(StopFilterFactory.java:58) at org.hibernate.search.impl.SolrAnalyzerBuilder.injectResourceLoader(SolrAnalyzerBuilder.java:112) at org.hibernate.search.impl.SolrAnalyzerBuilder.buildAnalyzer(SolrAnalyzerBuilder.java:88) at org.hibernate.search.impl.ConfigContext.buildAnalyzer(ConfigContext.java:284) at org.hibernate.search.impl.ConfigContext.initLazyAnalyzers(ConfigContext.java:252) at org.hibernate.search.spi.SearchFactoryBuilder.initDocumentBuilders(SearchFactoryBuilder.java:402) at org.hibernate.search.spi.SearchFactoryBuilder.buildNewSearchFactory(SearchFactoryBuilder.java:262) at org.hibernate.search.spi.SearchFactoryBuilder.buildSearchFactory(SearchFactoryBuilder.java:144) at org.hibernate.search.event.FullTextIndexEventListener.initialize(FullTextIndexEventListener.java:151) at org.hibernate.event.EventListeners$1.processListener(EventListeners.java:198) at org.hibernate.event.EventListeners.processListeners(EventListeners.java:181) at org.hibernate.event.EventListeners.initializeListeners(EventListeners.java:194) ... 27 more
Log in to post comments