安德烈 发表于 2017-5-3 12:02

二手交易网站源码运行时报错,求解决方法

本帖最后由 安德烈 于 2017-5-3 12:07 编辑

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: org.hibernate.exception.GenericJDBCException: Cannot open connection      cn.lee.market.filter.HibernateFilter.doFilter(HibernateFilter.java:50)
root cause
org.hibernate.exception.GenericJDBCException: Cannot open connection      org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)      org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)      org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)      org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)      org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:420)      org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)      org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:118)      org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:57)      org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1319)      cn.lee.market.filter.HibernateFilter.doFilter(HibernateFilter.java:33)
root cause
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)      com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)      com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)      com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3491)      com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3423)      com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:910)      com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3923)      com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1273)      com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2031)      com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:718)      com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)      sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)      sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)      sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)      java.lang.reflect.Constructor.newInstance(Constructor.java:513)      com.mysql.jdbc.Util.handleNewInstance(Util.java:406)      com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302)      com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:282)      java.sql.DriverManager.getConnection(DriverManager.java:582)      java.sql.DriverManager.getConnection(DriverManager.java:154)      org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)      org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:417)      org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)      org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:118)      org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:57)      org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1319)      cn.lee.market.filter.HibernateFilter.doFilter(HibernateFilter.java:33)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.
Apache Tomcat/6.0.13

magicbook 发表于 2017-5-10 15:59

好像是数据库连接问题

tlb955926 发表于 2017-5-11 08:59

magicbook 发表于 2017-5-10 15:59
好像是数据库连接问题

.
{:3_43:}{:3_50:}

zhang66666 发表于 2017-5-14 19:50

缺少这个hibernate框架库,下载个全的,挂上去试试
页: [1]
查看完整版本: 二手交易网站源码运行时报错,求解决方法