-->
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: ClassDefNotFould exception
PostPosted: Wed Nov 05, 2003 9:24 am 
Newbie

Joined: Tue Nov 04, 2003 4:48 am
Posts: 12
Location: Iran
i deployed my application on jboss and copied the hibernate2.jar to ${jboss.home}/server/default/lib but trying my application gives me this error:

javax.servlet.ServletException: Unexpected Error
java.lang.NoClassDefFoundError: net/sf/hibernate/MappingException
at org.shabdiz.shabware.session.SessionEJB.ejbCreate(SessionEJB.java:98)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java

the mentioned line is :
sessionFactory= new Configuration().configure().buildSessionFactory();

Thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 05, 2003 9:52 am 
Regular
Regular

Joined: Fri Sep 05, 2003 12:01 am
Posts: 80
Location: Bogot
are you deploying a webapp?

If so, you should put you hibernate2.jar in WEB-INF/lib

I place things like jdbc drivers that are shared by differeny applications in the same server in the $JBOSS_DIST/lib directory, maybe hibernate could also work there.

Hope it helps

_________________
Mauricio Hern


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 06, 2003 1:33 am 
Newbie

Joined: Tue Nov 04, 2003 4:48 am
Posts: 12
Location: Iran
I am working on jboss. The mentioned class is in hibernate2.jar and it is at the $JBOSS_HOME/server/default/lib but still i am getting this error message


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.