当前位置: 代码迷 >> Java面试 >> java.lang.NoClassDefFoundError: org/hibernate/HibernateException
  详细解决方案

java.lang.NoClassDefFoundError: org/hibernate/HibernateException

热度:506   发布时间:2016-04-17 20:19:39.0
求救一个JSP页面在tomact上运行的问题,十万火急呀!!!
登录截面login.jsp运行时没问题,但是点击登录功能按钮后,却出现以下异常信息,请各位高手给指点一下,谢谢了!

HTTP   Status   500   -  

--------------------------------------------

type   Exception   report

message  

description   The   server   encountered   an   internal   error   ()   that   prevented   it   from   fulfilling   this   request.

exception  

javax.servlet.ServletException:   Servlet   execution   threw   an   exception
com.stuman.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:89)


root   cause  

java.lang.NoClassDefFoundError:   org/hibernate/HibernateException
java.lang.Class.getDeclaredConstructors0(Native   Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
java.lang.Class.getConstructor0(Class.java:1930)
java.lang.Class.newInstance0(Class.java:278)
java.lang.Class.newInstance(Class.java:261)
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:143)
org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.java:280)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:218)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1192)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:430)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.stuman.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:89)


note   The   full   stack   trace   of   the   root   cause   is   available   in   the   Apache   Tomcat/5.0.28   logs.



------解决方案--------------------
java.lang.NoClassDefFoundError: org/hibernate/HibernateException


hibernate的包 正确放置了吗
------解决方案--------------------
同意楼上的。
代码迷推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.daimami.com/search?q=317
  相关解决方案