Skip to content

'unable to find resource [jdbc/crm-api]' exception during startup despite 'jdbc.required' and other database related properties are disabled #10250

@MLenterman

Description

@MLenterman

Current Behavior

Seems that the framework is still trying to find the default database, which fails because the integration doesn't use a database and therefor has no jdbc defined in the resources.yml, only the needed jms connection.

resources/DeploymentSpecifics.properties:

manageDatabase.active=false
jdbc.migrator.active=false
jdbc.required=false

resources.yml:

jms:
  - name: "artemis"
    type: "org.apache.activemq.ActiveMQXAConnectionFactory"
    url: "vm://localhost?jms.xaAckMode=1"

Expected Behavior

'jdbc.required=false' should be honored.

Environment Information

Can even open the console. v9.4 (no snapshot)

Steps To Reproduce

No response

Configuration

Input

No response

What database are you using?

No response

What browsers are you seeing the problem on?

No response

Relevant Log Output

Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultDataSource' defined in class path resource [springTOMCAT.xml]: Failed to instantiate [javax.sql.DataSource]: Factory method 'getDataSource' threw exception with message: unable to find resource [jdbc/crm-api] using locators [org.frankframework.jdbc.datasource.ResourceObjectLocator@6bf5fc5d, org.frankframework.jndi.JndiObjectLocator@5c9187be]

Anything else?

No response

Metadata

Metadata

Assignees

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions