javax.servlet.ServletException: Servlet execution threw an exception

beenin 2009-03-21 11:39:10
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)

...全文
455 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhj92lxs 2009-03-21
  • 打赏
  • 举报
回复
同意楼上,重复了
mQney 2009-03-21
  • 打赏
  • 举报
回复
duplicate property mapping: teacher

好像是这个teacher 在配置文件中重复了

81,119

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧