首页上一页 1 下一页尾页 4 条记录 1/1页
《JAVA项目开发实例自学手册》登录数据库报出“加载数据库驱动失败!”错误,请问如何解决?(JTDS)
发表在Java图书答疑
2008-09-02
是否精华
是
否
版块置顶:
是
否
《JAVA项目开发实例自学手册》中在搭建第5章销售管理系统时,按时视频的指导进行了搭建。成功启动Tomacat5,首页登录页面也出现了,输入用户名和密码后,点击登录按钮后出现下列错误,同时Tomcat上提示“加载数据库驱动失败”。请问如何解决?
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
com.tool.JDBConnection.executeQuery(JDBConnection.java:57)
com.dao.ManagerDao.employeeCheck(ManagerDao.java:122)
com.webtier.ManagerServlet.checkManager(ManagerServlet.java:109)
com.webtier.ManagerServlet.doGet(ManagerServlet.java:34)
com.webtier.ManagerServlet.doPost(ManagerServlet.java:309)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
com.tool.JDBConnection.executeQuery(JDBConnection.java:57)
com.dao.ManagerDao.employeeCheck(ManagerDao.java:122)
com.webtier.ManagerServlet.checkManager(ManagerServlet.java:109)
com.webtier.ManagerServlet.doGet(ManagerServlet.java:34)
com.webtier.ManagerServlet.doPost(ManagerServlet.java:309)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.