Skip to main content
Participating Frequently
December 12, 2011
Question

CFC Error Plese help

  • December 12, 2011
  • 5 replies
  • 3810 views

I'm getting this error all of the sudden on my developer box and I can't figure it out.  I'm almost positive its the server and not the code.  Any help on getting me thru this would be great.

Could not find the ColdFusion component or interface /login/com/.security.

Ensure that the name is correct and that the component or interface exists.
The error occurred in C:\ColdFusion9\wwwroot\myMobiSaver\mymobi\login\Application.cfm: line 25
23 :           <cfscript>
24 :                // create the Security object
25 :                Security = createObject("component","#Application.cfcRoot#.security");
26 :                // store authenticate method of security object as roles variable. 
27 :                variables.roles=Security.authenticate(cflogin.name,cflogin.password);
This topic has been closed for replies.

5 replies

Participating Frequently
December 13, 2011

Below is the error I get when I use your code.

The .login.com.security name is not a valid component or interface name.

Component and interface names cannot be empty and cannot start or end with a period.

Inspiring
December 13, 2011

I presume you have confirmed that myMobi.login.com.security is indeed a valid package?

Participating Frequently
December 13, 2011

Here is the value of application.cfcRoot

<cfparam name="Application.cfcRoot" type="string" default="/myMobi/login/com">


Inspiring
December 13, 2011

As suggested, give my a solution a go.

I honestly have never seen cfc's get referenced by /, it's always been .notation for me.

Participating Frequently
December 12, 2011

I took the period out like you said and that does not fix the issue.  The code works on the live server just not on the development one.

Inspiring
December 13, 2011

please post the value of #Application.cfcRoot#

Inspiring
December 12, 2011

Here we go again ...

DJsonicimpulse - There seems to a problem with your account or computer. If you are truly not posting those links you should look into it because it is obviously a continuing issue.

 

-Leigh

Inspiring
December 13, 2011

-==cfSearching==- wrote:

Here we go again ...

DJsonicimpulse - There seems to a problem with your account or computer. If you are truly not posting those links you should look into it because it is obviously a continuing issue.

The problem is detailed here:

http://www.korambayil.com/

It took me about 30sec to find.  "DJsonicimpulse", sort it it out, pls.

--

Adam

Inspiring
December 13, 2011

Might seem novel but maybe you should give this a try..your pathing seems weird to me

Security = createObject("component","#replace(Application.cfcRoot,"/",".","ALL")#security");

Community Expert
December 12, 2011

My guess is that you need to delete the dot in front of "security":

Security = createObject("component","#Application.cfcRoot#.security");

should be

Security = createObject("component","#Application.cfcRoot#security");

I'm guessing that the value of Application.cfcRoot has changed sometime recently.

Dave Watts, CTO, Fig Leaf Software

Dave Watts, Eidolon LLC