Tomcat 5.5에서는 기존에 사용하던 ResourceParams 태그를 지원하지 않습니다.
대신 다음과 같이 설정합니다.
- server.xml
<Resource name="jdbc/mydb" auth="Container" type="javax.sql.DataSource"
maxActive="100"
maxIdle="30"
maxWait="10000"
username="test"
password="1234"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/test?autoReconnect=true"
removeAbandoned="true"
removeAbandonedTimeout="60"
logAbandoned="true"
/>
<Context ~>
<ResourceLink name="jdbc/mydb" global="jdbc/mydb" type="javax.sql.DataSource"/>
</Context>
-web.xml
<resource-ref>
<description>Oracle Datasource example</description>
<res-ref-name>jdbc/mydb</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
[출처] [본문스크랩] [Tomcat5.5] DBCP configure|작성자 메멘토