码迷,mamicode.com
首页 > 数据库 > 详细

javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

时间:2018-07-05 18:24:58      阅读:413      评论:0      收藏:0      [点我收藏+]

标签: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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!