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
|