Tomcat 5.0.28数据连接池配置

http://www.blogjava.net/qq13367612/articles/16217.html

按照网上的方法配置连接池后无法使用,需要检查以下配置:

1)Tomcat 5.0\conf\Catalina\localhost\admin.xml

<Resource auth="Container" type="javax.sql.DataSource" name="jdbc/EasyDBCN" description="DB Connection"/>

2)Tomcat 5.0\conf\Catalina\localhost\balancer.xml

<Resource auth="Container" type="javax.sql.DataSource" name="jdbc/EasyDBCN" description="DB Connection"/>

3)Tomcat 5.0\conf\Catalina\localhost\manager.xml

<Resource auth="Container" type="javax.sql.DataSource" name="jdbc/EasyDBCN" description="DB Connection"/>

4)Tomcat 5.0\conf\Catalina\localhost\mmrate.xml

<Resource auth="Container" type="javax.sql.DataSource" name="jdbc/EasyDBCN" description="DB Connection"/>

5)Tomcat 5.0\conf\Catalina\localhost\ROOT.xml

<Resource auth="Container" type="javax.sql.DataSource" name="jdbc/EasyDBCN" description="DB Connection"/>

6)Tomcat 5.0\conf\Catalina\localhost\webdav.xml

<Resource auth="Container" type="javax.sql.DataSource" name="jdbc/EasyDBCN" description="DB Connection"/>

7)Tomcat 5.0\conf\server.xml

<Resource type="javax.sql.DataSource" name="jdbc/EasyDBCN"/>

    <ResourceParams name="jdbc/EasyDBCN">
      <parameter>
        <name>maxWait</name>
        <value>5000</value>
      </parameter>
      <parameter>
        <name>maxActive</name>
        <value>10</value>
      </parameter>
      <parameter>
        <name>password</name>
        <value>easysoft</value>
      </parameter>
      <parameter>
        <name>url</name>
        <value>jdbc:sybase:Tds:192.168.1.1:5000/easy</value>
      </parameter>
      <parameter>
        <name>driverClassName</name>
        <value>com.sybase.jdbc2.jdbc.SybDriver</value>
      </parameter>
      <parameter>
        <name>maxIdle</name>
        <value>5</value>
      </parameter>
      <parameter>
        <name>username</name>
        <value>easy_dbo</value>
      </parameter>
    </ResourceParams>

8)Tomcat 5.0\conf\web.xml

<resource-ref>
  <description>DB Connection</description>
  <res-ref-name>jdbc/EasyDBCN</res-ref-name>
  <res-type>javax.sql.DataSource</res-type>
  <res-auth>Container</res-auth>
</resource-ref>

9)Tomcat 5.0\webapps\easyrate\WEB-INF\web.xml

<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/EasyDBCN</res-ref-name>
<res-type>javax.sql.DataSource </res-type>
<res-auth>Container</res-auth>
</resource-ref>

你可能感兴趣的:(Tomcat 5.0.28数据连接池配置)