Hi Brian,
You're right, I put the question wrong. Sorry about that.
The issue is this:
if I define 2 mappings like this 

<cfset THIS.mappings={}>
<cfset THIS.mappings["/components"]="D:\www\components">
<cfset THIS.mappings["/includes"]="D:\www\includes">

outside onApplicationstart() but inside the constructor area and I later use 
them with CreateObject() the components are instantiated correctly.
But if I put those 3 lines inside the onApplicationStart() and use 
APPLICATION.mappings instead of THIS.mappings like this:

<cffunction name="onApplicationStart">
<cfset APPLICATION.mappings={}>
<cfset APPLICATION.mappings["/components"]="D:\www\components">
<cfset APPLICATION.mappings["/includes"]="D:\www\includes">
<cfset APPLICATION.objects = {}>
<cfset APPLICATION.objects.security = 
CreateObject('component','components.security')>

I get the errormessage

"Could not find the ColdFusion Component or Interface components.security."

when the line with CreateObject() is read. That line processed OK when using 
the 1st method. I wonder why this is. Do mappings have to be stored in the THIS 
scope of Application.cfc?

Marc 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304362
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to