-->
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.  [ 1 post ] 
Author Message
 Post subject: HibernateListener ClassNotFound
PostPosted: Sat Jan 08, 2011 9:09 am 
Newbie

Joined: Fri Jan 07, 2011 3:51 pm
Posts: 2
Hey community,

i'm kind of a hibernate newbie trying to add hibernate to a java webapp.
this goes not so well, one of the reasons for this is the following problem:

afaik you need a "listener" entry in the web.xml to "start" hibernate with the application, this listener looks like this:
Code:
<listener>
    <listener-class>org.mypackage.HibernateListener</listener-class>
</listener>


i did this, but i keep getting a "ClassNotFoundException" concerning the HibernateListener Class.
(consider that my HibernateListener is actually in the org.mypackage-package)

additionally to the web.xml entry i wrote a HibernateUtil, added Hibernate Annotations to the model class and wrote a hibernate.cfg.xml file.

so, is there anything else i didn't think of? any step missing to set up hibernate?

regards
matt


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.