We're updating the issue view to help you get more done. 

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:

1 ├── drivers // Contains a Jolokia driver used to export JMX metrics, the node loads any additional JAR files from this directory at startup.

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:

1 jarDirs = ["drivers"]

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

Unassigned

Reporter

ben wyeth

Priority

Medium

Labels

None

Severity

Medium

Fix versions

None

Ported to...

None

Feature Team

Operational Experience

Affects versions

Corda 4.1