Solved

CFMX7 component location issue

Posted on 2006-06-17
7
298 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
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.

 
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
What You Need to Know when Searching for a Webhost Provider
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…

717 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