2 qq 36894168 qq_36894168 于 2017.01.04 18:48 提问

新手求指教这是哪里错了啊?

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)

2个回答

caozhy
caozhy   Ds   Rxr 2017.01.04 23:40

java.lang.NoClassDefFoundError: Could not initialize class cn.itcast.user.dao.DaoFactory
无法初始化 cn.itcast.user.dao.DaoFactory 很可能是数据连接或者配置的问题

baij1230
baij1230   2017.01.04 21:37

题主把xml文件和配置文件发一下吧。就是.xml结尾的文件或者prop包中的

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!