Solved

CFMX7 component location issue

Posted on 2006-06-17
7
295 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

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…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

803 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