-->
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: Hibernate search classes in hibernate-annotations.jar
PostPosted: Thu Jan 10, 2008 9:40 am 
Newbie

Joined: Mon Nov 06, 2006 6:19 pm
Posts: 16
Hello,

I'm using seam 2.0.1.cr1 and as 4.2.2.ga (and hibernate search of course :) ). So far I was using the default setup with the ear having a scoped class loader repository (<loader-repository> element in jboss-app.xml) and everything worked well.

However, I have to switch the scoped class loader repository off - and that's where problems start to appear.

When I did this, I got exceptions from hibernate search at startup that my @Field annotations didn't specify the index property - and they didn't, but the field has a default value. I tried setting these properties to default values explicitly, which helped the startup problem, however when I try to search for something it doesn't work.

After some investigation I suppose the reason may be that the jar server/default/lib/hibernate-annotations.jar contains some search annotations, and they may be of an older version. And as the scoped class loader repository is off, they have a higher priority when looking for a class.

Why would they be there, I have no idea. Should I just manually update hibernate-annotations.jar to a newest version or remove the classes from the jar? Should the search classes be there at all?

--
Regards,
Adam Warski


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 10, 2008 10:27 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
this is because 4.x ship with a version of Hibernate Annotations that used to bundle Hibernate Search. Replacing Hibernate annotations (and adding hibernate-commons-annotations is the right thing to do

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 10, 2008 10:36 am 
Newbie

Joined: Mon Nov 06, 2006 6:19 pm
Posts: 16
I see, thank you.

--
Adam


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.