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
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值