I have a J2EE project using Hibernate and Maven.
The hibernate part works fine and I can do what I need from a few classes. However, when I try to use Hibernate tools from a servlet, I get :
SEVERE: Servlet.service() for servlet [servlets.ImproServletTest] in context with path [/ImproDB] threw exception [Servlet execution threw an exception] with root cause
java.lang.ClassNotFoundException: org.hibernate.HibernateException
I suppose this points to hibernate classes that are not available in WEB-INF. I assume that I need to hard copy the jars in WEB-INF directory to get this sorted.
However, the hibernate classes were imported via Maven. I can see them into Eclipse project explorer in : "ProjectName/Java Resources/Libraries/Maven Dependencies". But there does not seem to be such directories in my project workspace (I mean on my hard drive). Where are these jars supposed to be located on the hard drive? What is the best practise to include them into WEB-INF hoping that this will solve my issue?
Thx in advance.
Aucun commentaire:
Enregistrer un commentaire