-->
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.  [ 3 posts ] 
Author Message
 Post subject: How to config Hibernate Search 4.3 Modules in Jboss7?
PostPosted: Wed Aug 28, 2013 9:28 am 
Newbie

Joined: Wed Aug 28, 2013 9:20 am
Posts: 1
I have entities with @Index annotiert. If I deploy my .ear File the hibernate search modules are no loading. And a Index not create.
My Persistance.xml:
<persistence-unit name="myTest" transaction-type="JTA">
<!-- <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> -->
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source></jta-data-source>
<properties>
<property name="hibernate.hbm2ddl.auto" value="update" />
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect" />
<property name="hibernate.format_sql" value="true" />
<property name="hibernate.show_sql" value="true" />

<!-- use a file system based index -->
<property name="hibernate.search.default.directory_provider" value="filesystem"/>
<!-- directory where the indexes will be stored -->
<property name="hibernate.search.default.indexBase" value="c:/lucy" />

</properties>
</persistence-unit>

My jboss-deployment-structur.xml:
<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
<deployment>
<dependencies>
<module name="org.hibernate.search.orm" slot="main" export="true"/>
</dependencies>
</deployment>
</jboss-deployment-structure>

What can I do that the modules are loading and a Index can be create?


Top
 Profile  
 
 Post subject: Re: How to config Hibernate Search 4.3 Modules in Jboss7?
PostPosted: Thu Aug 29, 2013 9:46 am 
Hibernate Team
Hibernate Team

Joined: Sat Jan 24, 2009 12:46 pm
Posts: 388
Hi,

can you post the source code of your entity? Are you sure you've imported the right annotation type? It needs to be org.hibernate.search.annotations.Indexed.

--Gunnar

_________________
Visit my blog at http://musingsofaprogrammingaddict.blogspot.com/


Top
 Profile  
 
 Post subject: Re: How to config Hibernate Search 4.3 Modules in Jboss7?
PostPosted: Mon Sep 09, 2013 5:57 am 
Newbie

Joined: Mon Sep 09, 2013 5:32 am
Posts: 1
This design is incredible! You definitely know how to keep a reader entertained. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Great job. I really enjoyed what you had to say, and more than that, how you presented it. Too cool!


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

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.