标签:sel this sele context max -- his text resource
在tomcat的context文件里加上数据源,
-->
<Resource validationQuery="select ‘x‘ from dual" testOnBorrow="true" maxWait="5000" maxIdle="2" maxActive="50" password="commu" username="commu" url="jdbc:oracle:thin:@192.168.1.150:1521:orcl" driverClassName="oracle.jdbc.driver.OracleDriver" type="javax.sql.DataSource" name="acc_cm"/>
<Resource validationQuery="select ‘x‘ from dual" testOnBorrow="true" maxWait="5000" maxIdle="2" maxActive="50" password="acc_ic" username="acc_ic" url="jdbc:oracle:thin:@192.168.1.150:1521:orcl" driverClassName="oracle.jdbc.driver.OracleDriver" type="javax.sql.DataSource" name="acc_ic"/>
<Resource validationQuery="select ‘x‘ from dual" testOnBorrow="true" maxWait="5000" maxIdle="2" maxActive="50" password="acc_op" username="acc_op" url="jdbc:oracle:thin:@192.168.1.150:1521:orcl" driverClassName="oracle.jdbc.driver.OracleDriver" type="javax.sql.DataSource" name="acc_op"/>
<Resource validationQuery="select ‘x‘ from dual" testOnBorrow="true" maxWait="5000" maxIdle="2" maxActive="50" password="acc_st" username="acc_st" url="jdbc:oracle:thin:@192.168.1.150:1521:orcl" driverClassName="oracle.jdbc.driver.OracleDriver" type="javax.sql.DataSource" name="acc_st"/>
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
标签:sel this sele context max -- his text resource
原文地址:https://www.cnblogs.com/zhiws/p/9269696.html