-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate search and Solr integration
PostPosted: Mon May 27, 2013 4:12 pm 
Newbie

Joined: Mon May 27, 2013 3:46 pm
Posts: 1
Hi, I need help to make this configuration work properly.

I use this example:

https://github.com/avner-levy/hibernate_search_solr_integration

Everything runs normal and the app add the indexes to my Solr server.

The problem is when i add the @AnalyzerDef and filters to my entity. I get this error message:

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [config-spring-hibernate.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/solr/common/ResourceLoader

The example project use this framework versions:

Code:
        <spring.framework.version>3.1.2.RELEASE</spring.framework.version>
        <hibernate.version>4.1.7.Final</hibernate.version>
        <hibernate.search.version>4.2.0.Final</hibernate.search.version>
        <aspectj.version>1.7.0</aspectj.version>
        <compiler.version>1.6</compiler.version>
        <solrj-version>4.0.0-BETA</solrj-version>


I read in stackoverflow that Solrj > 4 is incompatible with solr < 4. But the hibernate-search use solr-core-3.6.2 and if I set the Solrj version to 3.6.2 I get other missing class error.

Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.