hibernate java.lang.NoClassDefFoundError: org/apache/lucene/analysis/standard/StandardAnalyzer -
When I try to build your first Hibernate application following error occurs required NoClassDefFoundError
exception former "core" java.lang.NoClassDefFoundError: org / Apache / Lucene / analysis / standard / StandardAnalyzer org.hibernate.search.impl.ConfigContext.initAnalyzer (ConfigContext.java:168) organization On. Hibernate on orb.hibernate.search.spi.SearchFactoryBuilder.initDocumentBuilders (SearchFactoryBuilder.java:312) on Org.hibernate.search.spi.SearchFactoryBuilder.buildNewSearchFactory. Search.impl.ConfigContext. & Lt; Init & gt; (ConfigContext.java:104) at org.hibernate.search.spi.SearchFactoryBuilder.buildSearchFactory (SearchFactoryBuilder.java143) at org.hibernate.search.hcore.impl.HibernateSearchSessionFactoryObserver.sessionFactoryCreated (HibernateSearchSessionFactoryObserver.java:74) at org (SearchFactoryBuilder. Java month 18). Hibernate.internal.SessionFactoryObserverChain.sessionFactoryCreated (SessionFactoryObserverChain.Java: 52) org.hibernate.internal.SessionFactoryImpl at & lt; Init & gt; (SessionFactoryImpl.java:587) org.apache.lucene.analysis.standard on java.net.URLClassLoader $ 1 on org.hibernate.cfg.Configuration.buildSessionFactory (Configuration.java:1857) on org.hibernate.cfg.Configuration. StandardAnalyzer: java.lang.ClassNotFoundException: Because of thebuildSessionFactory com.TestHibrnt.main (Configuration.java1928) (TestHibrnt.java16). Run (URLClassLoader.java:366) on java.net.URLClassLoader $ 1.run (URLClassLoader.java:355) java.security.AccessController.doPrivileged (Native Method) at java.net.URLClassLoader.findClass (URLClassLoader.java : 354) on java.lang.ClassLoader.loadClass (ClassLoader.java:425) sun.misc.Launcher $ AppClassLoader.loadClass (Launcher.java:308) on java.lang.ClassLoader.loadClass (ClassLoader.java:358) ... 11 and
jar containing
org / Apache / Lucene / Analysis / Standard / StandardAnalyzer you are missing and you have to set your
class
Comments
Post a Comment