views:

240

answers:

1

i am geting the following errot when i am tryinh to run my j2ee projrct. the same project was working before and i started geting this exception now. i am sure that all class are there along with their mapping files

if i remove mappping of jobtitle from my hibernate.cfg.xml ien the project is running

java.lang.ExceptionInInitializerError
hrm.dao.HibernateUtil.<clinit>(HibernateUtil.java:28)
hrm.dao.AbstractDAO.<init>(AbstractDAO.java:29)
hrm.dao.JobSpecificationDAO.<init>(JobSpecificationDAO.java:22)
hrm.actions.JobSpecificationAction.execute(JobSpecificationAction.java:53)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)

java.lang.ClassNotFoundException: hrm.dao.Jobtitle
+1  A: 
java.lang.ClassNotFoundException: hrm.dao.Jobtitle

means you do indicate a mapping in your hibernate.cfg.xml, but a mapping to a class which is not in the classpath of the j2ee project.

VonC