gsr
02/26/2023, 1:20 AMcomponent implements="IStringsFactory" {
the implements is in the same folder as component
interface {
public ILocalizedStrings function getStrings(required string directory, required string defaultLocale);
}
i am getting an error Could not find the ColdFusion component or interface com.IStringsFactory.Adam Cameron
IStringFactory, but the error is talking about com.IStringFactory. Those are two different things, and you don't show us where that com.StringFactory reference comes from.gsr
02/26/2023, 11:49 AMAdam Cameron
Adam Cameron
<cfset Application.factory = new appcfc.com.StringsFactory()>... <http://appcfc.com|appcfc.com> seems a rather odd package path too. And doesn't match the error message either.gsr
02/26/2023, 1:23 PMgsr
02/26/2023, 2:02 PMgsr
02/26/2023, 2:02 PMAdam Cameron
Adam Cameron
/appcfc/com/StringsFactor.cfc in the file system? Or are there mappings that resolve either appcfc or <http://appcfc.com|appcfc.com> ?
It would be really helpful if you could give us enough information to not have to guess all this stuff.Adam Cameron
/var/www/yourapp/yourFile.cfm, and then there's /var/www/yourapp/appcfc/com/StringFactory.cfc and /var/www/yourapp/appcfc/com/IStringFactory.cfc ?