Modules location not being honoured


This issue was apparent in ColdBox 5 and I was able to hardcode around it then but it looks as though it is still present in the ColdBox 6 RC. I am using the latest cbmarkdown module.

The error detail is:
The instance could not be located in any declared scan location(s) (mypath.cb.models) or full path location
The error message is:
Requested instance not found: 'Processor@cbmarkdown'

I have ColdBox installed in a folder above root.
e.g. /mypath/cb/coldbox
Modules are in:

My Application.cfc has this configuration:
this.mappings["/coldbox"] = expandPath("/mypath/cb/coldbox");
this.mappings["/wirebox"] = expandPath("/mypath/cb/wirebox");
this.mappings["/modules"] = expandPath("/mypath/cb/modules");
this.mappings["/handlers"] = expandPath("/mypath/cb/handlers");
this.mappings["/models"] = expandPath("/mypath/cb/models");
this.mappings["/views"] = expandPath("/mypath/cb/views");

I also have modules configured in /mypath/cb/config/Coldbox.cfc
conventions = {
modulesLocation = "modules"

The code that is generating this issue is:
html = application.wireBox.getInstance( "Processor@cbmarkdown" ).toHTML( "[Text for link](");

I've tried numerous settings to no avail.
The version of Lucee is Lucee
Using tomcat 9.0.30 and Java 11.0.6


Luis Majano
July 22, 2020, 2:42 PM

What about other models in other modules? This is really a very custom app layout. I would need samples to reproduce, but not sure what you are trying to accomplish. Anyways, I need more data on this or a way to reproduce without me spending a day getting your layout.

Also, is it ANY model from any module? or from a specific module?

Brad Wood
July 22, 2020, 2:52 PM

Please zip up a standalone working app we can run locally to see this. I agree, these mappings and folders are very atypical and I’d need to see what’s going on.

Cannot Reproduce


Luis Majano


Pat Moody