F
ff_ff
Unregistered / Unconfirmed
GUEST, unregistred user!
测试时出现:
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
root cause
java.lang.ExceptionInInitializerError
com.sonic.HibernateUtil.<clinit>(HibernateUtil.java:14)
com.sonic.struts.action.LoginAction.execute(LoginAction.java:54)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.
跟踪到
com.sonic.HibernateUtil.<clinit>(HibernateUtil.java:14)
com.sonic.struts.action.LoginAction.execute(LoginAction.java:54)
分别是
HibernateUtil中:
throw new ExceptionInInitializerError(ex);
LoginAction中:
Session session = HibernateUtil.Session();
各们大哥,
我想是hibernate加载hibernate.cfg.xml文件的问题。
如果有空能不能指点一下。十分感谢。
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
root cause
java.lang.ExceptionInInitializerError
com.sonic.HibernateUtil.<clinit>(HibernateUtil.java:14)
com.sonic.struts.action.LoginAction.execute(LoginAction.java:54)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.
跟踪到
com.sonic.HibernateUtil.<clinit>(HibernateUtil.java:14)
com.sonic.struts.action.LoginAction.execute(LoginAction.java:54)
分别是
HibernateUtil中:
throw new ExceptionInInitializerError(ex);
LoginAction中:
Session session = HibernateUtil.Session();
各们大哥,
我想是hibernate加载hibernate.cfg.xml文件的问题。
如果有空能不能指点一下。十分感谢。