Driver directory not being loaded into corda classpath

Description

I was adding a structured logger into SDX's corda recently.

Here: https://docs.corda.r3.com/node-structure.html?highlight=drivers%20directory it says:

and there seems to be a feeling that the drivers directory is automagically added to the classpath. But running with a fat corda jar, we do not see those jars being added to the class path.

In order to add to the class path (in this case so that log4j can be configured to use a client supplied log4j layout), i had to add this to node.conf:

I've probably got the wrong end of the stick here, in which case do please let me know, but i think we should:

  • add something to the docs re a directory in which to put things we want corda to load (ie be explicit about whether it's drivers/ or not and also if not we should create a convention to follow - this will make support's life so much easier going forwards)

  • decide whether we automatically put things in whichever dir we pick into the classpath - again i believe we should as it would stop support calls

Thanks

Status

Assignee

Roman Vasiliev

Reporter

ben wyeth

Labels

Priority

High

Fix versions

Ported to...

Corda 4.3

Feature Team

Operational Experience

CVSS Vector

None

Severity

Medium

Story Points

1

Sprint

Affects versions

Configure