-->
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 + Spring: Event listeners mapping
PostPosted: Fri Apr 04, 2008 8:14 am 
Newbie

Joined: Sun Mar 30, 2008 1:37 pm
Posts: 5
Hi folks,

I decided to bind Hibernate Search to my Hibernate + Spring application.

I cannot understand how I may configure Search Event listeners in my springapp-servlet.xml.

If I do it this way
Code:
<bean id="sessionFactory"
      class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">

      <property name="eventListeners">
         <map>
            <entry key="pre-update">
               <bean class="org.hibernate.search.event.FullTextIndexEventListener" />
            </entry>
            <entry key="pre-insert">
               <bean class="org.hibernate.search.event.FullTextIndexEventListener" />
            </entry>
            <entry key="post-delete">
               <bean class="org.hibernate.search.event.FullTextIndexEventListener" />
            </entry>            
         </map>
      </property>   


I have an exception on startup
org.springframework.beans.factory.BeanCreationException: Error creating bean with name '/shop.do' defined in ServletContext resource [/WEB-INF/springapp-servlet.xml]: Cannot resolve reference to bean 'dao' while setting bean property 'dao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao' defined in ServletContext resource [/WEB-INF/springapp-servlet.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/springapp-servlet.xml]: Invocation of init method failed; nested exception is java.lang.ArrayStoreException: org.hibernate.search.event.FullTextIndexEventListener


Help me please. What is wrong?


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.