java.sql.SQLException: Access denied for user 'root'@'localhost'2011-05-05 1:31异

java.sql.SQLException: Access denied for user 'root'@'localhost'2011-05-05 1:31异常:

严重: Servlet.service() for servlet default threw exception
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)



javax.servlet.ServletException: org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: Cannot open connection; uncategorized SQLException for SQL [???]; SQL state [null]; error code [0]; Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: YES)); nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: YES))



org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: Cannot open connection; uncategorized SQLException for SQL [???]; SQL state [null]; error code [0]; Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: YES)); nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: YES))



原因:applicationContext.xml 中配置的连接数据库的用户名或密码错误!


猜你喜欢

转载自bioubiou.iteye.com/blog/1432869