javax.servlet.ServletException: Servlet execution threw an exception
exception
javax.servlet.ServletException: Servlet execution threw an exception
com.gdms.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:66)
root cause
java.lang.ExceptionInInitializerError
com.gdms.dao.hibernate.HibernateUtil.<clinit>(HibernateUtil.java:20)
com.gdms.web.struts.action.LoginAction.execute(LoginAction.java:47)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
com.gdms.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:66)
root cause
org.hibernate.MappingException: duplicate property mapping: teacher
org.hibernate.mapping.PersistentClass.checkPropertyDuplication(PersistentClass.java:344)
org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:334)
org.hibernate.mapping.RootClass.validate(RootClass.java:188)
org.hibernate.cfg.Configuration.validate(Configuration.java:839)
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1000)
com.gdms.dao.hibernate.HibernateUtil.<clinit>(HibernateUtil.java:15)
com.gdms.web.struts.action.LoginAction.execute(LoginAction.java:47)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
com.gdms.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:66)