type Exception report
message Servlet execution threw an exception
description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an exception
root cause
java.lang.NoClassDefFoundError: Could not initialize class cn.itcast.user.dao.DaoFactory
cn.itcast.user.service.UserService.(UserService.java:8)
cn.itcast.user.web.servlet.RegistServlet.doPost(RegistServlet.java:26)
javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
题主把xml文件和配置文件发一下吧。就是.xml结尾的文件或者prop包中的
java.lang.NoClassDefFoundError: Could not initialize class cn.itcast.user.dao.DaoFactory
无法初始化 cn.itcast.user.dao.DaoFactory 很可能是数据连接或者配置的问题