Link to home
Start Free TrialLog in
Avatar of jduawa
jduawa

asked on

CreateObject and Component Explorer

given the code below i get the following message using the coldfusion component explorer (http://localhost/cfide/componentutils/componentdoc.cfm?)
Component not found
The component definition file for component 'sms_root.components.cust' cannot be found on this server.

if i remove the following line from the code
<cfset VARIABLES.objGeneralDAO=CreateObject("component", "components.generalDAO")>
then the component explorer can find the component without issue.  I am wondering why
<cfcomponent displayname="TESTCFC" extends="generalFuncs">
	<cfscript>
		init();
	</cfscript>
    
    <cffunction name="init">
    	<cfreturn this />
    </cffunction>
    
    <cfset VARIABLES.objGeneralDAO=CreateObject("component", "components.generalDAO")>
    
   
</cfcomponent>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Andrew Maurer
Andrew Maurer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
what you are using is relative paths when you do CreateObject("component", "components.generalDAO")
Avatar of jduawa
jduawa

ASKER

the cfc works fine in the application just in the component explorer it flips out
Avatar of jduawa

ASKER

it is indeed something with the path of that createobject code
Thanks