測試環境:JBuilder X + Tomcat 4.1
1.數據庫連接池需要commons-dbcp-1.1,commons-pool-1.1這兩個jar包,確認JBuilder程序目錄下的thirdparty\jakarta-tomcat-4.1.24-LE-jdk14\common\lib下面有這兩個jar包,記憶中Tomcat 4.1好像是沒有這兩個包。
2.
把
JDBC
驅動包
COPY
到
JBuilder
程序目錄下的
thirdparty\jakarta-tomcat-4.1.24-LE-jdk14\common\lib
里。
3.
在你的
project
下面有個
Tomcat
目錄,需要添加數據連接池配置內容的文件是
webapps\jb-******.xml(******
是你的
Web Module
名
)
需要注意的是,要把這個注釋去掉
<!--This comment marks this file as generated, so it may be deleted and regenerated at any time. To preserve manual changes to this file, delete this comment.-->
4.
我的
jb-*******.xml
如下:

?2

?3

?4

?5

?6

?7

?8

?9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

5. 在 web-info\web.xml 下添加如下內容:

2

3

4

5

6

7
