In order to be invoked, your CFC's need to be in the same directory of
the calling page, or in a folder specified in ColdFusion Administrator
as a mapping, the web root, or a custom tag path.
(http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=buildingComponents_27.html
"Specifying the CFC location")

For instance, if you created a mapping in the Admin called
/hereBeDragons and it pointed to c:\someDirectory and in someDirectory
you had a file called Elliot.cfc then you could create an instance of
that CFC anywhere in your app as petesDragon =
createObject("component","hereBeDragons.Elliot")

You're skipping aroud a lot, so it's hard to help you.  Are you using
shared hosting?  A VPS?  Do you have access to the CF administrator web
interface?  Are you still getting your "Access
denied(java.io.filepermission
C:\coldfusion8\wwwroot\web-inf\cftags\componet.cfc read)" error??  Did
you copy that error message exactly, because the actual file name is
"component.cfc"?


The code you posted earlier looked like so:
createObject("component", "components.site_user")

Do you have a folder called "components" in your web root, or a folder
called "components" in one of your custom tag paths, or a ColdFusion
mapping called "components"?  That will be a good start.

Take things one step at a time and tell us what errors you are getting. 
If all of this code worked on your development environment, chances are
you just are missing some mapping on your production server.

~Brad


-------- Original Message --------
Subject: Re: ajaxCFC Access Denied
From: David Torres <[email protected]>
Date: Wed, June 17, 2009 9:51 am
To: cf-talk <[email protected]>


I had created some new CFCs for this enhancement. Do you know if this
new CFCs need to be some how register in order to work on the server? By
the way this is not my production server. It is host by hostmysite.

Thanks,
David



>What Charlie pointed out was simply a syntax issue separate from what
>appears to be a permissions problem.
>
>Your error seems to be that ColdFusion does not have read access to the
>web-inf directory. What user is ColdFusion running under? If CF starts
>with Windows as a service, a user can be specified for that service. 
>The default with windows is "System". If this is your production
>server, I would recommend creating a special user for CF to run as which
>is NOT an administrator for security's sake. That user will need access
>to the web-inf directory among other things. BTW: component.cfc is the
>base object that all components inherit from.
>
>Here is a knowledge base article on the subject:
>http://kb2.adobe.com/cps/172/tn_17279.html
>
>~Brad
>
>Thank you for replying,
>
>I made the change:
><cffunction name="setPermUser" returntype="any" hint="Set User
>Permission" access="remote"> 
>
>Still the same error. 
>
>David 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323586
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to