javax.naming.NameNotFoundException: Name ZKING is not bound in this Context 的问题

runqianReportLogger : [ERROR] - Name ZKING is not bound in this Context
javax.naming.NameNotFoundException: Name ZKING is not bound in this Context

这是一个数据源,在tomcat的目录下conf配置文件中,context.xml添加数据源:ZKING
<Resource
name="ZKING"
type="javax.sql.DataSource"
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@88.11.34.40:1521:telsalesdb"
username="ZKTELSALES2014"
password="ZTS-14619"
maxIdle="5"
maxWait="5000"
maxActive="5"
logAbandoned="true"
removeAbandoned="true"
removeAbandonedTimeout="60"/>

Tomcat在启动的时候会加载这个配置文件

大家好: 很高兴自己在不断学习的过程中,积累知识和经验。也能够为了正在学习的网友们提供好的资料,一起学习,一起努力。成就自己的梦想.............
原文地址:https://www.cnblogs.com/su5012-lingyao/p/5110730.html