-->
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.  [ 5 posts ] 
Author Message
 Post subject: problems with @Filed
PostPosted: Tue Dec 29, 2009 1:54 pm 
Beginner
Beginner

Joined: Wed Dec 16, 2009 10:34 am
Posts: 21
Hello again:

If on the indexed class i write :
@Field(store=Store.YES,index=Index.TOKENIZED)

When I'm building the project (In glassfish 2.1-> Clean and build) there's the following error:

Cannot find annotation method 'index()' in type 'org.hibernate.search.annotations.Field': class file for org.hibernate.search.annotations.Field not found
Cannot find annotation method 'store()' in type 'org.hibernate.search.annotations.Field': class file for org.hibernate.search.annotations.Field not found

However, if i just write:
@Field
without the properties, it let me build the project.

I looked into the hibernate search package and there is a 'org.hibernate.search.annotations.Field' .class.

I'll appreciate the help.


Top
 Profile  
 
 Post subject: Re: problems with @Filed
PostPosted: Wed Dec 30, 2009 5:20 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
(continuation from the book forum)

You didn't tell us much about your configuration.
Did you see https://www.hibernate.org/374.html ?

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject: Re: problems with @Filed
PostPosted: Wed Dec 30, 2009 5:33 pm 
Beginner
Beginner

Joined: Wed Dec 16, 2009 10:34 am
Posts: 21
Well...

I'm using netbeans 6.8, glassfish 2.1, hibernate 3.3.2, hibernate-annotations 3.4, hibernate-search 3.1.1, mysql 5.1, jdk 1.6
I put this lines in the persistence context:
<property name="hibernate.search.default.directory_provider" value="org.hibernate.search.store.FSDirectoryProvider"/>
<property name="hibernate.search.default.indexBase" value="/home//lucene/indexes"/>

the lines in the link you posted are already there.
I'm using linux ubuntu 8.04.

In the mapped class these are the imported libraries:

import org.hibernate.search.annotations.DocumentId;
import org.hibernate.search.annotations.Field;
import org.hibernate.search.annotations.Index;
import org.hibernate.search.annotations.Indexed;

Do i missing something ?
Thank you for the help.


Top
 Profile  
 
 Post subject: Re: problems with @Filed
PostPosted: Tue Jan 05, 2010 4:13 pm 
Beginner
Beginner

Joined: Wed Dec 16, 2009 10:34 am
Posts: 21
hello:

i am still stuck with this problem.... any help ?


Top
 Profile  
 
 Post subject: Re: problems with @Filed
PostPosted: Wed Jan 06, 2010 12:50 pm 
Beginner
Beginner

Joined: Wed Dec 16, 2009 10:34 am
Posts: 21
I solved it !!!!!.

I have two build,xml files (one for the ebj-module and another for the web-module)
It seems that i was adding the hibernate search jar into the ejb-module's build.xml file, but not into the web-module, so i added it and worked.
Somehow, i'm using the hibernate search annotations only in the entities (ejb-module), not in the backing beans (web-module), so it shouldn't be necessary to add the hibernate search jar into the web-module.
Weird.
It's like add the hibernate core jar into the web-module.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.