[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-1091) ClassNotFoundException on startup

Bozhidar Bozhanov (JIRA) noreply at atlassian.com
Mon Apr 9 17:59:49 EDT 2012


    [ https://hibernate.onjira.com/browse/HSEARCH-1091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46207#comment-46207 ] 

Bozhidar Bozhanov commented on HSEARCH-1091:
--------------------------------------------

Oddly, I checked the line numbers, and it appears they don't match the source of 4.1.0.Final Instead, they match that of 4.1.CR3 (and probably prior). I'll try redeploying fresh with the proper jars.

> ClassNotFoundException on startup
> ---------------------------------
>
>                 Key: HSEARCH-1091
>                 URL: https://hibernate.onjira.com/browse/HSEARCH-1091
>             Project: Hibernate Search
>          Issue Type: Bug
>    Affects Versions: 4.1.0.Final
>            Reporter: Bozhidar Bozhanov
>
> I just upgraded hibernate search from 4.0.0 to 4.1.0. On my windows machine it works fine, but on the servier (EC2 default linux), it fails with:
> Caused by: java.lang.NoClassDefFoundError: org/jgroups/Receiver
> 	at java.lang.Class.getDeclaredConstructors0(Native Method)
> 	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2406)
> 	at java.lang.Class.getConstructor0(Class.java:2716)
> 	at java.lang.Class.getConstructor(Class.java:1674)
> 	at org.hibernate.search.util.impl.ClassLoaderHelper.checkHasNoArgConstructor(ClassLoaderHelper.java:213)
> 	at org.hibernate.search.util.impl.ClassLoaderHelper.instanceFromClass(ClassLoaderHelper.java:104)
> 	at org.hibernate.search.util.impl.ClassLoaderHelper.instanceFromName(ClassLoaderHelper.java:85)
> 	at org.hibernate.search.engine.ServiceManager.listAndInstantiateServiceProviders(ServiceManager.java:54)
> 	at org.hibernate.search.engine.ServiceManager.<init>(ServiceManager.java:37)
> 	at org.hibernate.search.spi.SearchFactoryBuilder.createCleanFactoryState(SearchFactoryBuilder.java:312)
> 	at org.hibernate.search.spi.SearchFactoryBuilder.buildNewSearchFactory(SearchFactoryBuilder.java:204)
> 	at org.hibernate.search.spi.SearchFactoryBuilder.buildSearchFactory(SearchFactoryBuilder.java:142)
> 	at org.hibernate.search.event.impl.FullTextIndexEventListener.initialize(FullTextIndexEventListener.java:129)
> 	at org.hibernate.search.hcore.impl.HibernateSearchIntegrator.integrate(HibernateSearchIntegrator.java:82)
> 	at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:302)
> 	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1740)
> 	at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:88)
> 	at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)
> 	at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889)
> 	at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)
> 	at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:268)
> 	at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:310)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
> 	... 33 more
> Caused by: java.lang.ClassNotFoundException: org.jgroups.Receiver
> 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)
> 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)
> 	... 57 more
> java -version:
> OpenJDK Runtime Environment (IcedTea6 1.9.1) (amazon-44.1.9.1.18.amzn1-i386)
> OpenJDK Client VM (build 19.0-b06, mixed mode)
> I don't reference jgroups anywhere in the project. My cache provider is EhCache, but no use of jgroups. And the issue did not occur with Hibernate Search 4.0.0
> The only Lucene configuration is:
> <property name="hibernate.search.default.directory_provider"
>                 value="org.hibernate.search.store.impl.FSDirectoryProvider" />

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list