Hi,
I'm tryin to setup Hibernate Search, but currently i don't get it.
i use:
Hibernate 3.2.6.
Hibernate Search 3.0.1.
Hibernate Commons Annotations 3.0.0.
i added the following to my hibernate.cfg.xml:
Code:
<property name="hibernate.search.default.directory_provider">org.hibernate.search.store.FSDirectoryProvider</property>
<property name="hibernate.search.default.indexBase">../indexes</property>
<event type="post-update">
<listener class="org.hibernate.search.event.FullTextIndexEventListener"/>
</event>
<event type="post-insert">
<listener class="org.hibernate.search.event.FullTextIndexEventListener"/>
</event>
<event type="post-delete">
<listener class="org.hibernate.search.event.FullTextIndexEventListener"/>
</event>
while starting up my application i get the following exception:
Code:
org.hibernate.cfg.Configuration: java.lang.ClassCastException: org.hibernate.cfg.Configuration
at org.hibernate.search.event.FullTextIndexEventListener.initialize(FullTextIndexEventListener.java:82)
at org.hibernate.event.EventListeners.initializeListeners(EventListeners.java:417)
at org.hibernate.cfg.Configuration.getInitializedEventListeners(Configuration.java:1310)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300)
i didnt use the annotations (except for the search-ones of course), instead i use hbm.xml files.
Could somebody tell me what i am missing or doing wrong here?
[edit: recognized it was the wrong versions, i updated them, but problem still stays the same]
thx in advance,
hage