折腾了一上午,总算找到了答案!
不同的版本连接池配置的方法不一样,另外不要按tomcat主页上的配置来做 ,完全是误导我们!
只需要在E:/apache-tomcat-5.5.23/conf下的context.xml里面加上
<Resource
auth="Container"
name="jdbc/helloDS"
type="javax.sql.DataSource"
password="jpsoft"
driverClassName="oracle.jdbc.driver.OracleDriver"
maxIdle="5"
maxWait="-1"
username="lxm"
url="jdbc:oracle:thin:@localhost:1521:orcl"
maxActive="10"/>
其他的东西都不要管,我是这样做的,大家可以试下...
不同的版本连接池配置的方法不一样,另外不要按tomcat主页上的配置来做 ,完全是误导我们!
只需要在E:/apache-tomcat-5.5.23/conf下的context.xml里面加上
<Resource
auth="Container"
name="jdbc/helloDS"
type="javax.sql.DataSource"
password="jpsoft"
driverClassName="oracle.jdbc.driver.OracleDriver"
maxIdle="5"
maxWait="-1"
username="lxm"
url="jdbc:oracle:thin:@localhost:1521:orcl"
maxActive="10"/>
其他的东西都不要管,我是这样做的,大家可以试下...