?
Solved

CFMX7 component location issue

Posted on 2006-06-17
7
Medium Priority
?
299 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
Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

 
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

The Ideal Solution for Multi-Display Applications

Check out ATEN’s VS1912 12-Port DP Video Wall Media Player at InfoComm 2017. Kerri describes how easy it is to design creative video walls in asymmetric layouts and schedule detailed playlists ahead of time with its advanced scheduling feature.

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!
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
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. …
Suggested Courses
Course of the Month13 days, 16 hours left to enroll

801 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