NoClassDefFoundError: Could not initialize class 

解决方案 »

  1.   


    type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception javax.servlet.ServletException: Servlet execution threw an exception
    com.university.goodsmanager.web.filter.GoodsManagerFilter.doFilter(GoodsManagerFilter.java:23)
    root cause java.lang.NoClassDefFoundError: Could not initialize class com.university.goodsmanager.dao.util.HbnUtil
    com.university.goodsmanager.dao.hbndao.HbnDaoImpl.queryUser(HbnDaoImpl.java:65)
    com.university.goodsmanager.biz.service.impl.UserManagerImpl.login(UserManagerImpl.java:18)
    com.university.goodsmanager.web.control.LoginAction.process(LoginAction.java:18)
    com.university.goodsmanager.web.control.Controller.process(Controller.java:18)
    com.university.goodsmanager.web.control.Controller.doPost(Controller.java:10)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    com.university.goodsmanager.web.filter.GoodsManagerFilter.doFilter(GoodsManagerFilter.java:23)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.26 logs.
      

  2.   

    记得以前我也有过这样,好像是classpath上的设置有问题
      

  3.   

    xml文件没有将相关的东西配置上去
      

  4.   

    (小母牛做火箭,牛逼轰轰带闪电。) haha!