Thanks for your suggestion Tom, the application.url.webroot var is okay.

I think I've found the problem, the original error message is a bit misleading 
(shock!).

In farcry\farcry_core\admin\Application.cfm
line 6: <cfinclude template="/farcry/#stApps[cgi.server_name]#/www/Application.cfm">

The cgi.server_name var returns the server name (i.e. 'localhost') without the port 
(that would require cgi.server_port).

But in farcry\apps.cfm, the script sets stApps['localhost:8500'] to the application's 
folder name.

So, the cfinclude in application.cfm is being interpreted as
<cfinclude template="/farcry/#stApps['localhost']#/www/Application.cfm">

As the key in the stApps structure is named 'localhost:8500' and not "localhost", the 
cfinclude attempt throws an error.


The easiest thing for me to do was to remove the port number from apps.cfm so the 
script now reads:

<cfscript>
stApps = structNew();
stApps['localhost'] = 'farcry_test';
</cfscript>

If I'm on the right track here, maybe the Farcry core code needs an update to take 
account of port numbers in this part of the code?

Thanks,
Anne K.
RACP

>>> [EMAIL PROTECTED] 16/10/04 1:37:13 am >>>
Just a guess....In config/_serverSpecificVars.cfm try setting
application.url.webroot to "/farcry_test" then refresh your
application scope by appending "updateapp=1" to the URL.

~tom

On Fri, 15 Oct 2004 22:43:43 +1000, E Publisher <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I just installed farcry. Using the CFMX server, unzipped farcry to C:\farcry, and my 
> app name is farcry_test.
> I can access the application at http://localhost:8500/farcry_test but I'm getting an 
> error when trying to access the Farcry admin at http://localhost:8500/farcry 
> 
> THE CF ERROR IS:
> 
> Could not find the included template /Application.cfm.
> Note: If you wish to use an absolute template path (e.g. 
> TEMPLATE="/mypath/index.cfm") with CFINCLUDE then you must create a mapping for the 
> path using the ColdFusion Administrator. Using relative paths (e.g. 
> TEMPLATE="index.cfm" or TEMPLATE="../index.cfm") does not require the creation of 
> any special mappings. It is therefore recommended that you use relative paths with 
> CFINCLUDE whenever possible.
> 
> The error occurred in C:\farcry\farcry_core\admin\Application.cfm: line 9
> 
> 7 :
> 8 :     <cfcatch>
> 9 :             <cfinclude template="/Application.cfm">
> 10 :    </cfcatch>
> 11 : </cftry>
> 
> -------------------------------------------------------------------------------------
> 
> MY CFMX SERVER VIRTUAL MAPPINGS in JRUN-WEB.XML:
> 
>   <virtual-mapping>
>     <resource-path>/farcry</resource-path>
>     <system-path>C:/farcry/farcry_core/admin/</system-path>
>   </virtual-mapping>
> 
>   <virtual-mapping>
>     <resource-path>/farcry_test</resource-path>
>     <system-path>C:/farcry/farcry_test/www/</system-path>
>   </virtual-mapping>
> 
> -------------------------------------------------------------------------------------
> 
> MY CFMX MAPPING IN CFMX ADMINISTRATION:
> 
> Logical path -   /farcry
> Directory path -   C:\farcry
> 
> -------------------------------------------------------------------------------------
> 
> MY APPS.CFM
> 
> <cfscript>
> stApps = structNew();
> stApps['localhost:8500'] = 'farcry_test';
> </cfscript>
> 
> -------------------------------------------------------------------------------------
> 
> Any thing wrong with those settings that I'm not seeing? If not, what else could be 
> causing it?
> Thanks.
> 



---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to