I am switching over to using an xml configuration to cfc
configuration, so that could very well have something to do with it,
but in this case it's saying it can't find the config, so I don't
know. I have verified that I do have a coldbox.cfc in the config
folder and the permissions on it should be correct. In any case here
is the application.cfc and after that the coldbox.cfc:
<cfcomponent extends="coldbox.system.coldbox" output="false">
<!--- APPLICATION CFC PROPERTIES --->
<cfset this.name = hash(getCurrentTemplatePath())>
<cfset this.applicationName = hash(getCurrentTemplatePath())>
<cfset this.sessionManagement = true>
<cfset this.sessionTimeout = createTimeSpan(0,0,30,0)>
<!--- COLDBOX STATIC PROPERTY, DO NOT CHANGE UNLESS THIS IS NOT THE
ROOT OF YOUR COLDBOX APP --->
<!--- <cfset COLDBOX_APP_ROOT_PATH =
getDirectoryFromPath(getCurrentTemplatePath())> --->
<cfset COLDBOX_APP_ROOT_PATH = getDirectoryFromPath("/application")>
<!--- COLDBOX PROPERTIES --->
<cfset COLDBOX_CONFIG_FILE = "">
<cfset COLDBOX_APP_MAPPING = "application">
<!--- <cfset this.mappings["/"] = COLDBOX_APP_ROOT_PATH> --->
<!--- on Application Start --->
<cffunction name="onApplicationStart" returnType="boolean"
output="false">
<cfscript>
//Load ColdBox
loadColdBox();
return true;
</cfscript>
</cffunction>
<!--- on Request Start --->
<cffunction name="onRequestStart" returnType="boolean" output="true">
<!--- *************************************************************
--->
<cfargument name="targetPage" type="string" required="true" />
<!--- *************************************************************
--->
<cfsetting enablecfoutputonly="yes">
<cfset objRequest = GetPageContext().GetRequest()>
<!--- Reload Checks --->
<cfset reloadChecks()>
<!--- Process A ColdBox Request Only --->
<cfif findNoCase('index.cfm', listLast(arguments.targetPage, '/'))>
<cfset processColdBoxRequest()>
</cfif>
<!--- WHATEVER YOU WANT BELOW --->
<cfsetting enablecfoutputonly="no">
<cfreturn true>
</cffunction>
<!--- on Application End --->
<cffunction name="onApplicationEnd" returnType="void"
output="false">
<!--- *************************************************************
--->
<cfargument name="applicationScope" type="struct" required="true">
<!--- *************************************************************
--->
<!--- WHATEVER YOU WANT BELOW --->
</cffunction>
<!--- on Session Start --->
<cffunction name="onSessionStart" returnType="void"
output="false">
<cfset super.onSessionStart()>
<!--- WHATEVER YOU WANT BELOW --->
</cffunction>
<!--- on Session End --->
<cffunction name="onSessionEnd" returnType="void" output="false">
<!--- *************************************************************
--->
<cfargument name="sessionScope" type="struct" required="true">
<cfargument name="appScope" type="struct" required="false">
<!--- *************************************************************
--->
<cfset super.onSessionEnd(argumentCollection=arguments)>
<!--- WHATEVER YOU WANT BELOW --->
</cffunction>
</cfcomponent>
COLDBOX.CFC :
component
{
void function development()
{
coldbox.HandlerCaching=false;
coldbox.HandlersIndexAutoReload=true;
coldbox.IOCObjectCaching=false;
coldbox.DebugMode=true;
coldbox.DebugPassword="xxx";
coldbox.ReinitPassword="xxx";
debugger.EnableDumpVar=true;
coldbox.EnableColdboxLogging=true;
coldbox.onInvalidEvent="";
coldbox.ConfigAutoReload=true;
coldbox.EnableBugReports=false;
coldbox.EnableSQLLogging=true;
coldbox.IOCFrameworkReload=true;
}
void function production()
{
HandlerCaching=true;
coldbox.HandlersIndexAutoReload=false;
coldbox.IOCObjectCaching=true;
coldbox.DebugMode=false;
coldbox.DebugPassword="xxx";
coldbox.ReinitPassword="xxx";
debugger.EnableDumpVar=true;
coldbox.EnableColdboxLogging=true;
coldbox.onInvalidEvent="";
coldbox.ConfigAutoReload=false;
coldbox.EnableBugReports=true;
coldbox.EnableSQLLogging=false;
coldbox.IOCFrameworkReload=false;
ioc.reload = false;
ioc.objectcaching = true;
}
void function configure()
{
coldbox =
{
AppName ="xxx",
AppMapping ="D:/application",
DebugMode =true,
DebugPassword ="",
// EnableColdfusionLogging ="false",
//EnableColdboxLogging ="true",
//ColdboxLogsLocation ="logs",
DefaultEvent ="ehFlex.nothing",
RequestStartHandler ="",
RequestEndHandler ="",
ApplicationStartHandler ="ehGeneral.onApplicationStart",
SessionStartHandler ="",
SessionEndHandler ="",
UDFLibraryFile ="",
CustomErrorTemplate ="",
//MessageboxStyleOverride =false,
HandlersIndexAutoReload =true,
ConfigAutoReload =false,
ExceptionHandler ="",
onInvalidEvent ="",
// MyPluginsLocation" =""
HandlerCaching =false,
//IOCFramework ="coldspring"
//IOCDefinitionFile ="config/coldspring.xml.cfm"
//IOCObjectCaching =""
//IOCFrameworkReload =true
RequestContextDecorator ="",
ProxyReturnCollection =false
};
settings = {
auditLogFile ="xxx.log" ,
uploadSizeThreshold ="100000000" ,
downloadSizeThreshold ="200000000" ,
};
debugger =
{
enableDumpVar = false,
persistentRequestProfilers = true,
maxPersistentRequestProfilers = 20,
maxRCPanelQueryRows = 10,
//Panels
showTracerPanel = true,
expandedTracerPanel = true,
showInfoPanel = true,
expandedInfoPanel = true,
showCachePanel = true,
expandedCachePanel = true,
showRCPanel = true,
expandedRCPanel = true,
showModulesPanel = true,
expandedModulesPanel = false
};
environments =
{
development = "xxx",
production = "yyy"
};
cacheBox =
{
caches =
{
// Named cache for all coldbox event and view template caching
template =
{
provider =
"coldbox.system.cache.providers.CacheBoxColdBoxProvider",
properties =
{
objectDefaultTimeout = 120,
objectDefaultLastAccessTimeout = 30,
useLastAccessTimeouts = true,
freeMemoryPercentageThreshold = 0,
reapFrequency = 2,
evictionPolicy = "LRU",
evictCount = 2,
maxObjects = 300,
objectStore = "ConcurrentSoftReferenceStore" //memory sensitive
}
},
sampleCache1 =
{
provider="coldbox.system.cache.providers.CacheBoxProvider",
properties =
{
objectDefaultTimeout="20",
useLastAccessTimeouts="false",
reapFrequency="1",
evictionPolicy="LFU",
evictCount="1",
maxObjects="100",
objectStore="ConcurrentSoftReferenceStore"
}
},
sampleCache2 =
{
provider = "coldbox.system.cache.providers.CFProvider"
}
},
// Please note that each object store could have more configuration
properties
scopeRegistration =
{
enabled = true,
scope = "application",
key = "cacheBox"
},
defaultCache =
{
objectDefaultTimeout = 60,
objectDefaultLastAccessTimeout = 30,
useLastAccessTimeouts = true,
reapFrequency = 2,
freeMemoryPercentageThreshold = 0,
evictionPolicy = "LRU",
evictCount = 1,
maxObjects = 200,
// Our default store is the concurrent soft reference
objectStore = "ConcurrentSoftReferenceStore",
// This switches the internal provider from normal cacheBox to
coldbox enabled cachebox
coldboxEnabled = false
}
};
interceptors = [
{class="coldbox.system.interceptors.security",
properties={rulesSource="xml",
rulesFile="config/securityrules.xml.cfm",
debugMode=true,
validatorIOC="securityManager"}
}
];
ioc = {
framework = "coldspring",
reload = true,
objectCaching = false,
definitionFile = "config/coldspring.xml.cfm"
};
logBox =
{
// Define Appenders
root = { levelMin="FATAL", levelMax="INFO", appenders="*" },
appenders =
{
/* coldboxTracer =
{
class="coldbox.system.logging.appenders.ColdboxTracerAppender",
layout="coldbox.testing.cases.logging.MockLayout",
properties =
{
name = "default"
}
}, */
rollingFile =
{
class="coldbox.system.logging.appenders.AsyncRollingFileAppender",
levelMax="WARN",
levelMin="FATAL",
properties=
{
filePath="/#appMapping#/logs",
autoExpand="true",
fileMaxSize="3000",
fileMaxArchives="5"
}
}
}
};
}
}