`

java.lang.NoClassDefFoundError: org/hibernate/Hibe

阅读更多
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.bsnotice.utils.EncodingFilter.doFilter(EncodingFilter.java:27)


root cause 

java.lang.NoClassDefFoundError: org/hibernate/HibernateException
	com.bsnotice.service.BsNoticeServiceImpl.<init>(BsNoticeServiceImpl.java:11)
	com.bsnotice.action.IndexListBsNoticeAction.execute(IndexListBsNoticeAction.java:25)
	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:689)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	com.bsnotice.utils.EncodingFilter.doFilter(EncodingFilter.java:27)


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



  • 错误原因:Hibernate包没有加到\WEB-INF\lib下。
  • 将Hibernate所需的Jar包COPY到\WEB-INF\lib下,即可。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics