Solved

CFMX7 component location issue

Posted on 2006-06-17
7
297 Views
Last Modified: 2013-12-24
"Could not find the ColdFusion Component OdysseyRFID_com.components.dataGateway"

if I input http://xxx.xxx.xxx.xxx/OdysseyRFID_com/index.cfm my page works perfectly.

if I input http://www.mydomain.com/ .. I get the error above

Why is this? Pleas Help!

0
Comment
Question by:cottyengland
7 Comments
 

Author Comment

by:cottyengland
ID: 16927736
Here is some of the application.CFC code

<cfcomponent>
<cfset This.name = "OdysseyHome">
<cfset This.Sessionmanagement=true>
<cfset This.Sessiontimeout="#createtimespan(0,0,10,0)#">
<cfset This.applicationtimeout="#createtimespan(0,0,1,0)#">
<cfset  This.dns = "OdysseyRFID_com">

<cfset Request.componentPath = "OdysseyRFID_com" />

<!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: --->
      <cffunction name="OnApplicationStart">

<cflock scope="Application"       timeout="10" >
  <cfset APPLICATION.dsn = "OdysseyRFID_com">
       <cfset application.dataGateway = createObject("component",request.componentPath & ".components.dataGateway").init(this.dns) />
      <cfset application.staticGateway = createObject("component",request.componentPath & ".components.loadstaticData").init(this.dns) />
      </cflock>
</cffunction>

Cotty

0
 
LVL 2

Expert Comment

by:jalpino
ID: 16928307
If you have access to it, set up a Mapping in the CFAdmin for 'OdysseyRFID_com' and point it to the 'OdysseyRFID_com/' directory. A Mapping would definitely clear up your issue, as there is no mistake to where the mapping points to.

As far as why your component doesn't get created, could it be possible that the webroot of your 'http://xxx.xxx.xxx/' address points to  the 'OdysseyRFID_com' s parent directory, where as the domain 'alias' http://www.example.com/ points directly to the OdysseyRFID_com directory. If thats the case, then it would explain why your calls to 'OdysseyRFid_com.components.xxx' dont get picked up, try using just 'components.xxx' instead.

Hope this helps,

JAlpino

 
0
 

Author Comment

by:cottyengland
ID: 16929530
Thanks. The path did clear it up, but exposed another seemingly similiar issue. In addition to the subdirectoy called "components" I have another called "services". In this directory is a form called "Flashresponder.cfc". Now it cannot find that form, or directory, even though it is the same directory as the logical map in CFMX.

Cotty
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
LVL 12

Expert Comment

by:mmc98dl1
ID: 16956176
Services is a reserved name for a CF directory - I dont know why or when this happened, but I cam eacross it the other day. rename to service and you should be ok.
0
 

Author Comment

by:cottyengland
ID: 16964893
Thanks for the help. actually the problem was that IIS was resolving to the directory ...wwwroot/rfidcomposer. as soon as I removed the <cfset Request.componentPath = "OdysseyRFID_com" />  from the application cfc it started finding everything just fine.

Thanks for the help
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 17269568
PAQed with points refunded (500)

CetusMOD
Community Support Moderator
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Build and evolve an interactive experience 1 99
Web Development Tools for MVC 3 110
How to move and access a folder outside of the root folder 4 112
http to https 3 78
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question