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