数据库MySQL 5.7.18,打开IE浏览器,在地址栏中输入http://localhost:8080/22,并按下Enter键,进入本程序主页面,输入密码mr和mrsoft后打不开图书管理系统?
无语_mrkj 发表于2017-07-13 13:12
那您看看Eclipse的控制台有什么错误信息,贴上来,我再看看?
另外,数据库附加了吗?
数据库用phpadmin附加了,MyEclipse控制台信息如下:
at com.mysql.jdbc.Connection.createNewIO(Connection.java:1851)
at com.mysql.jdbc.Connection.<init>(Connection.java:450)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:207)
at com.core.ConnDB.getConnection(ConnDB.java:32)
at com.core.ConnDB.executeQuery(ConnDB.java:50)
at com.dao.ManagerDAO.checkManager(ManagerDAO.java:73)
at com.action.Manager.managerLogin(Manager.java:53)
at com.action.Manager.doGet(Manager.java:28)
at com.action.Manager.doPost(Manager.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:29)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
警告: DbConnectionManager.getConnection() 获得数据库链接失败.
链接类型:com.mysql.jdbc.Driver
链接位置:jdbc:mysql://127.0.0.1:3306/db_library?user=root&password=rootmysql&useUnicode=true
2017-7-13 17:13:39 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet Manager threw exception