-->
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.  [ 2 posts ] 
Author Message
 Post subject: Using Hibernate with FitNesse
PostPosted: Mon Sep 10, 2007 9:31 am 
Newbie

Joined: Mon Sep 10, 2007 9:02 am
Posts: 1
Hi,
I'm new to Hibernate and I'm implementing persistence in an application that uses JUnit and FitNesse for testing. The JUnit tests are working fine, but when trying to run the FitNesse tests I get this error:

Code:
java.lang.NoClassDefFoundError: org/hibernate/Session


I think the problem is that FitNesse runs outside of the container, while Hibernate runs on the inside. Supposedly I can have two different .properties files with special configurations, one for running inside the container, and one for running on the outside (according to this article: http://butunclebob.com/ArticleS.DavidChelimsky.FitNesseAndHibernate). The problem is I have no idea which properties to change/add to make this work. Does anyone here know how I can solve this?
(Thanks in advance :)

Here is my hibernate.properties file:
Code:
hibernate.connection.driver_class=com.mysql.jdbc.Driver
hibernate.connection.url=jdbc:mysql://127.0.0.1/db
hibernate.connection.username=user
hibernate.connection.password=password
hibernate.dialect = org.hibernate.dialect.MySQLDialect
hibernate.c3p0.min_size=5
hibernate.c3p0.max_size=20
hibernate.c3p0.timeout=1800
hibernate.c3p0.max_statements=50


============================================
I have resolved this myself, I found out that it had nothing to do with the container at all, it was as simlpe as explicitly importing the jar files into the FitNesse tests... (just in case anyone else gets the same problem sometime) :o)


Top
 Profile  
 
 Post subject: Re: Using Hibernate with FitNesse
PostPosted: Tue Aug 06, 2013 6:46 am 
Newbie

Joined: Tue Aug 06, 2013 6:43 am
Posts: 1
Hi, I´m having a similar problem.
What do you mean by:

"it was as simlpe as explicitly importing the jar files into the FitNesse tests"

Thank you!


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