在tomcat 5中的数据源配置和tomcat 6是不一样的,应该这样配置
 在tomcat\conf\context.xml中的<context>
中加入
   <Resource name="jdbc/rdms"
                    auth="Container"
                    type="javax.sql.DataSource"
                    maxActive="20"
     factory="org.apache.commons.dbcp.BasicDataSourceFactory"
                    maxIdle="10"
                    maxWait="10000"
                    username="root"
                    password="1979621"
                    driverClassName="com.mysql.jdbc.Driver"
                    url="jdbc:mysql://localhost:3306/rdms"
                     />

  千万要注意其中的driverClassName,而不是drivername!

 
 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-29
  • 2022-12-23
猜你喜欢
  • 2021-05-07
  • 2021-12-11
  • 2022-12-23
  • 2022-02-13
  • 2021-10-04
相关资源
相似解决方案