14:39:54,296  WARN JDBCExceptionReporter:233 - SQL Error: 0, SQLState: null
14:39:54,296 ERROR JDBCExceptionReporter:234 - Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: YES))
14:39:54,296  WARN SettingsFactory:147 - Could not obtain connection to query metadata
applicationContext.xml代码:
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:aop="http://www.springframework.org/schema/aop"
    xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd"
default-autowire="byType">

<!-- 数据源  -->
<bean id="dataSource" 
class="org.apache.commons.dbcp.BasicDataSource" 
destroy-method="close">
   <property name="driverClassName">
        <value>com.mysql.jdbc.Driver</value>
   </property>
   <!-- 修改数据库用户名 密码 -->
   <property name="url" >
        <value>jdbc:mysql://localhost:3306/chat</value>
   </property>
  
   <property name="username">
       <value>root</value>
   </property>
  
   <property name="password">
       <value>521239</value>
   </property>
  
  </bean>
 
 <bean id="sessionFactory" 
      class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
      <property name="dataSource">
         <ref local="dataSource"/>  
      </property>
      <property name="mappingResources">
         <list>
               <value>com.bean/User.hbm.xml</value>
         </list>
      </property>
      <property name="hibernateProperties">
         <props>
            <prop key="hibernate.dialect">
               org.hibernate.dialect.MySQLDialect
            </prop>
            <prop key="hibernate.show_sql">
               true
            </prop>
         </props>
      </property>
   </bean>
 
 
<!-- dao -->
    <bean id="userDao" class="com.dao.impl.UserDAOImpl" scope="singleton">
<property name="sessionFactory">
<ref local="sessionFactory" />
</property>
</bean>
<!-- service -->
<bean id="userService" class="com.service.impl.UserServiceImpl" scope="singleton">
    <property name="userDao" >
       <ref local="userDao"/>
     </property>
 </bean>
 
 <bean id="userAction" class="com.action.user.UserAction" scope="prototype">
   <property name="service" ref="userService"></property>
 </bean>
</beans>
数据库名:chat
用户名:root
密码:521239
mysql相关服务已开启
请问问题出在哪儿
初学者,大家帮帮忙