-->
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: InitialSessionFactory creation failed
PostPosted: Tue May 06, 2008 5:55 am 
Newbie

Joined: Tue May 06, 2008 5:19 am
Posts: 2
Hi,

I'm trying to use Annotation search, but I got some error like this:
---------------------------------------

Initial SessionFactory creation failed.java.lang.NoSuchMethodError: org.apache.lucene.store.FSDirectory.getDirectory(Ljava/lang/String;)Lorg/apache/lucene/store/FSDirectory;
Exception in thread "Thread-1" java.lang.ExceptionInInitializerError

----------------------------------------

That error occurs when I used :

sessionFactory = new AnnotationConfiguration().configure().buildSessionFactory();

on my HibernateUtil.java

and this line:

Session session = HibernateUtil.getSessionFactory().openSession();

on the other class.

Help me...


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 06, 2008 6:03 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi, could you please post the complete stack trace?
It looks like you have some wrong lib versions on you classpath,
are you sure you are using the Lucene version that comes with the Hibernate Search version you are using?

regards,

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


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 06, 2008 6:28 am 
Newbie

Joined: Tue May 06, 2008 5:19 am
Posts: 2
s.grinovero wrote:
Hi, could you please post the complete stack trace?
It looks like you have some wrong lib versions on you classpath,
are you sure you are using the Lucene version that comes with the Hibernate Search version you are using?

regards,


Aaah.. yeah u right... It works now.. thx... ^o^


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.