-->
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: What are the changes need to be done with JBOSS-4.2.2.GA?
PostPosted: Thu Nov 20, 2008 6:45 am 
Beginner
Beginner

Joined: Thu Sep 11, 2008 5:33 am
Posts: 28
Hi All,

Can please any buddy tell me what are the chnages needs to be done when we use JBOSS-4.2.2.GA?

I have checked the following docs for it

The error is: Caused by: java.lang.NoSuchMethodError: org.hibernate.search.FullTextSession.createFullTextQuery(Lorg/apache/lucene/search/Query;[Ljava/lang/Class;)Lorg/hibernate/search/FullTextQuery;

Hibernate Search 3.0 requires Hibernate Annotations 3.3.x and JBoss AS 4.2 ships with 3.2.x. Replace the following jars:

* hibernate-annotations.jar (3.3.x for Search 3.0)
* hibernate-validator.jar (3.0.x for Search 3.0)
* hibernate-entitymanager.jar (3.3.x for Search 3.0)
* hibernate-commons-annotations.jar (3.0.x for Search 3.0)

in [JBOSS_HOME]/server/[myconfig]/lib

Then place Hibernate Search and Lucene JARs in your EAR or WAR.


But when i try to replace these JAR's from lib it asks for another dependency and then another and so on............

Any solution for it?
I am using following dependency for Hibernate search




Code:
<groupId>org.hibernate</groupId>
         <artifactId>hibernate-search</artifactId>
         <version>3.0.1.GA</version>
<groupId>org.hibernate</groupId>
         <artifactId>hibernate-annotations</artifactId>
         <version>3.3.0.ga</version>
<groupId>org.hibernate</groupId>
         <artifactId>hibernate-commons-annotations</artifactId>
         <version>3.0.0.ga</version>
<groupId>org.hibernate</groupId>
         <artifactId>hibernate-entitymanager</artifactId>
         <version>3.3.1.ga</version>
<groupId>org.apache.lucene</groupId>
         <artifactId>lucene-core</artifactId>
         <version>2.2.0</version>


I have used <exclusions> for inner dependecies do i need to do that or not?


Regards,
Sachin Parnami


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 24, 2008 3:39 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
the move to maven is still a work in progress for Search, I would suggest you download the distribution and use the libs provided.

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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 01, 2008 9:45 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi,

the dependencies are probably correct, but you cannot forget that maven retrieves transitive dependencies. So unless you actually build your software using maven you might indeed be better of taking the jars from the lib directory of the distribution.
Alternatively, you can view the poms of the dependencies you listed in your post and determine the transitive dependencies yourself.
Personally I would prefer the latter since the disadvantage of the libraries in the lib directory of the distribution is missing the version information. It's a matter of taste I guess.

--hardy


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.