无法处理 PropertyOverrideConfigurer 中的键“dataSource” - 无效键“dataSource”:预期为“beanName.property”

问题描述 投票:0回答:1

我正在oracle中安装sailpoint,属性配置是:

##### Data Source Properties #####
dataSource.maxWaitMillis=10000
dataSource.maxTotal=50
dataSource.minIdle=5
#dataSource.minEvictableIdleTimeMillis=300000
#dataSource.maxOpenPreparedStatements=-1

dataSource.username=identityiq
dataSource.password=1:ACP:VHGrGBFYLIDoRdWK2VUg0s0hZuSraCRCrW0MKqWumLc=

##### Oracle #####
## URL Format: dataSource.url=jdbc:oracle:<drivertype>:<username/password>@<database>:<port>:<sid>
###dataSource=jdbc:oracle:thin:identityiq/Password*1234@(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = 10.0.160.58) (PORT = 1521))) (CONNECT_DATA = (SID = IDENTITYIQ)));
dataSource.url=jdbc:oracle:thin:@nediacredhat8.dodiis.ic.gov:1521:identityiq
dataSource.driverClassName=oracle.jdbc.driver.OracleDriver
sessionFactory.hibernateProperties.hibernate.dialect=org.hibernate.dialect.Oracle12cDialect
activeMQMessageServiceManager.activemqJdbcAdapter=org.apache.activemq.store.jdbc.adapter.OracleJDBCAdapter

当我运行 iiq 控制台时,出现错误:

iiq.hostname : sailpoint_hostname-console
2023-11-22T08:18:10,753  WARN main springframework.context.support.ClassPathXmlApplicationContext:559 - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'versionChecker' defined in class path resource [configBeans.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Unable to check IdentityIQ database version: Unable to connect to: jdbc:oracle:thin:@oracle_hostname:1521:identityiq
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'versionChecker' defined in class path resource [configBeans.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Unable to check IdentityIQ database version: Unable to connect to: jdbc:oracle:thin:@oracle_hostname:1521:identityiq

即使我在属性文件中硬编码密码和/或使用 tnsname 连接:

##### Data Source Properties #####
dataSource.maxWaitMillis=10000
dataSource.maxTotal=50
dataSource.minIdle=5
#dataSource.minEvictableIdleTimeMillis=300000
#dataSource.maxOpenPreparedStatements=-1

##dataSource.username=identityiq
##dataSource.password=1:ACP:VHGrGBFYLIDoRdWK2VUg0s0hZuSraCRCrW0MKqWumLc=

##### Oracle #####
## URL Format: dataSource.url=jdbc:oracle:<drivertype>:<username/password>@<database>:<port>:<sid>
dataSource=jdbc:oracle:thin:identityiq/Password*1234@(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = oracle_hostname) (PORT = 1521))) (CONNECT_DATA = (SID = IDENTITYIQ)));
###dataSource.url=jdbc:oracle:thin:identityiq/Password*1234@oracle_hostname:1521:identityiq
dataSource.driverClassName=oracle.jdbc.driver.OracleDriver
sessionFactory.hibernateProperties.hibernate.dialect=org.hibernate.dialect.Oracle12cDialect
activeMQMessageServiceManager.activemqJdbcAdapter=org.apache.activemq.store.jdbc.adapter.OracleJDBCAdapter

使用 tnsname 连接,我收到错误:

iiq.hostname : sailpoint_hostname-console
2023-11-22T08:29:41,533  WARN main springframework.context.support.ClassPathXmlApplicationContext:559 - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanInitializationException: Could not process key 'dataSource' in PropertyOverrideConfigurer; nested exception is org.springframework.beans.factory.BeanInitializationException: Invalid key 'dataSource': expected 'beanName.property'
org.springframework.beans.factory.BeanInitializationException: Could not process key 'dataSource' in PropertyOverrideConfigurer; nested exception is org.springframework.beans.factory.BeanInitializationException: Invalid key 'dataSource': expected 'beanName.property

' 如何在Oracle上连接sailpoint?

javascript oracle datasource sailpoint
1个回答
0
投票

包含 JDBC URL 的行以“dataSource=”开头。这应该是“dataSource**.url**=”。所以,它缺少一个关键字。

© www.soinside.com 2019 - 2024. All rights reserved.