java 启动tomcat时报错:TNS:listener does not currently know of SID given in connect descriptor

30-Apr-2019 14:25:01.080 警告 [RMI TCP Connection(2)-127.0.0.1] org.springframework.web.context.support.XmlWebApplicationContext.refresh Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'notificationListener': Unsatisfied dependency expressed through field 'userDataManager'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'customUserDataManager': Unsatisfied dependency expressed through field 'pec'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngineConfiguration' defined in file [D:\work\小蓝\HbiParent\core\target\core\WEB-INF\classes\spring\applicationContext-activiti.xml]: Cannot create inner bean 'com.hand.hap.activiti.custom.CustomUserTaskParseHandler#79405deb' of type [com.hand.hap.activiti.custom.CustomUserTaskParseHandler] while setting bean property 'customDefaultBpmnParseHandlers' with key [0]; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.hand.hap.activiti.custom.CustomUserTaskParseHandler#79405deb': Unsatisfied dependency expressed through field 'autoDelegateListener'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'autoDeliverListener': Unsatisfied dependency expressed through field 'preferencesService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sysPreferencesServiceImpl' defined in file [D:\work\小蓝\HbiParent\core\target\core\WEB-INF\classes\com\hand\hap\system\service\impl\SysPreferencesServiceImpl.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'requestAD': Unsatisfied dependency expressed through field 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in file [D:\work\小蓝\HbiParent\core\target\core\WEB-INF\classes\spring\applicationContext-redis.xml]: Cannot resolve reference to bean 'codeCache' while setting bean property 'caches' with key [5]; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'codeCache': Unsatisfied dependency expressed through field 'languageProvider'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'languageProvider' defined in file [D:\work\小蓝\HbiParent\core\target\core\WEB-INF\classes\spring\applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Cannot create PoolableConnectionFactory (Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
 )
30-Apr-2019 14:25:01.092 严重 [RMI TCP Connection(2)-127.0.0.1] org.springframework.web.context.ContextLoader.initWebApplicationContext Context initialization failed
 org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'notificationListener': Unsatisfied dependency expressed through field 'userDataManager'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'customUserDataManager': Unsatisfied dependency expressed through field 'pec'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngineConfiguration' defined in file [D:\work\小蓝\HbiParent\core\target\core\WEB-INF\classes\spring\applicationContext-activiti.xml]: Cannot create inner bean 'com.hand.hap.activiti.custom.CustomUserTaskParseHandler#79405deb' of type [com.hand.hap.activiti.custom.CustomUserTaskParseHandler] while setting bean property 'customDefaultBpmnParseHandlers' with key [0]; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.hand.hap.activiti.custom.CustomUserTaskParseHandler#79405deb': Unsatisfied dependency expressed through field 'autoDelegateListener'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'autoDeliverListener': Unsatisfied dependency expressed through field 'preferencesService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sysPreferencesServiceImpl' defined in file [D:\work\小蓝\HbiParent\core\target\core\WEB-INF\classes\com\hand\hap\system\service\impl\SysPreferencesServiceImpl.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'requestAD': Unsatisfied dependency expressed through field 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in file [D:\work\小蓝\HbiParent\core\target\core\WEB-INF\classes\spring\applicationContext-redis.xml]: Cannot resolve reference to bean 'codeCache' while setting bean property 'caches' with key [5]; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'codeCache': Unsatisfied dependency expressed through field 'languageProvider'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'languageProvider' defined in file [D:\work\小蓝\HbiParent\core\target\core\WEB-INF\classes\spring\applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Cannot create PoolableConnectionFactory (Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
 )

配置文件 

<Resource auth="Container" driverClassName="oracle.jdbc.driver.OracleDriver"
          username="***" password="***!1234"
          maxActive="100" maxIdle="30" maxWait="10000" name="jdbc/hap_dev"
          removeAbandoned="true" removeAbandonedTimeout="300" testWhileIdle="true"
          timeBetweenEvictionRunsMillis="86400" type="javax.sql.DataSource"
          url="jdbc:oracle:thin:@117.**.**.***:9581:***"
          validationQuery="select 1 from dual"/>

url="jdbc:oracle:thin:@117.**.**.***:9581:***"   把9581:*** 改成 9581/***

  • 0
    点赞
  • 0
    评论
  • 0
    收藏
  • 打赏
    打赏
  • 扫一扫,分享海报

©️2022 CSDN 皮肤主题:编程工作室 设计师:CSDN官方博客 返回首页

打赏作者

小发明家啦啦啦啦啦

你的鼓励将是我创作的最大动力

¥2 ¥4 ¥6 ¥10 ¥20
输入1-500的整数
余额支付 (余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值