首页上一页 1 下一页尾页 3 条记录 1/1页
《JSP项目开发全程实录》第八章在线考试系统的问题
发表在JavaWeb图书答疑
2009-02-24
是否精华
是
否
版块置顶:
是
否
书中第八章在线考试系统,我按照教程说的,将Struts 1.2和SQL Server 2000数据库驱动包拷贝到Tomcat安装路径下的webapps文件夹中的08\WEB-INF\lib文件夹中了(一共11个文件),
我的系统是win2003,sql2000也安装了sp4,设置成了sa不要密码的访问,混合验证。
Tomcat中打开,主页可以打开,但是当用tsoft,密码111登录后台时,或者注册新用户时,就显示下边的错误了。请问应该如何配置啊?谢谢各位老师指点!
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: java.lang.NullPointerException
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
java.lang.NullPointerException
com.wgh.core.ConnDB.executeQuery(ConnDB.java:58)
com.wgh.dao.ManagerDAO.checkManager(ManagerDAO.java:15)
com.wgh.action.Manager.managerLogin(Manager.java:44)
com.wgh.action.Manager.execute(Manager.java:22)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.
--------------------------------------------------------------------------------
Apache Tomcat/6.0.18
我的系统是win2003,sql2000也安装了sp4,设置成了sa不要密码的访问,混合验证。
Tomcat中打开,主页可以打开,但是当用tsoft,密码111登录后台时,或者注册新用户时,就显示下边的错误了。请问应该如何配置啊?谢谢各位老师指点!
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: java.lang.NullPointerException
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
java.lang.NullPointerException
com.wgh.core.ConnDB.executeQuery(ConnDB.java:58)
com.wgh.dao.ManagerDAO.checkManager(ManagerDAO.java:15)
com.wgh.action.Manager.managerLogin(Manager.java:44)
com.wgh.action.Manager.execute(Manager.java:22)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.
--------------------------------------------------------------------------------
Apache Tomcat/6.0.18