“model” is the default scan location, but scan locations are not recursive. If you have beans in a sub directory, you will need to add that as a scan location or do the map().to() specifically for each of them.
Alternatively, you can use the mapDirectory(“model”) method in your wirebox.cfc config file to have it recursively map everything in your model directory. You might need to do that first though so your specific mappings for your services override that.
None-the-less, it appears that whatever you have configured is working to some extent since you are apparently creating instances of your beans. You’re asking WireBox for the beans right? (As opposed to directly creating them via createObject().
Enable debug logging for coldbox.system and check your logs for warnings about whether or not the datasource called “dsn” was found.
Also, you’re looking in the variables scope of your bean for the myDSN variable, right?
Thanks!
~Brad