Solved

CFMX7 component location issue

Posted on 2006-06-17
7
292 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 12

Expert Comment

by:mmc98dl1
Comment Utility
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
Comment Utility
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
Comment Utility
PAQed with points refunded (500)

CetusMOD
Community Support Moderator
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
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 reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…

744 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now