-->
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.  [ 5 posts ] 
Author Message
 Post subject: Hibernate and SessionBeans
PostPosted: Mon Jan 12, 2004 3:45 pm 
Beginner
Beginner

Joined: Mon Jan 12, 2004 3:39 pm
Posts: 23
Hello everyone,

I'm using Hibernate and SessionsBeans in my appl.

I'm trying to run a JUnit teste case in wich I get the remote interface that has access to my DAO. I get the remote instance just fibe but when I try to persist any object I get a NoClassDefFound for hibernate class.

Since it is in my classpath I don't know what might me wrong.


Thanks,
Vanessa.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 12, 2004 3:53 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Either hibernate.jar is not in your classpath or your classloader does not find it. Unable to tell with so few info.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 12, 2004 4:47 pm 
Beginner
Beginner

Joined: Mon Jan 12, 2004 3:39 pm
Posts: 23
As I said it is in my classpth.

When I run a JUnit test accessing the DAO directly, not using sessionBeans, it works just fine.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 12, 2004 4:48 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Well then it is not on your application server classpath. This is a classpath issue, believe me.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 12, 2004 6:49 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Check the 'classpath' line your MANIFEST.MF of your app too.

_________________
Emmanuel


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