Skip to main content
Inspiring
June 9, 2008
Question

Calling cfcs from secure page fails (https)

  • June 9, 2008
  • 1 reply
  • 333 views
I'm trying to submit a form to a secure url (https). I'm able to submit successfully but the called page makes a call
to a cfc (com.utility). It chokes on this call. I'm able to call this cfc successfully on other pages via regular
http (not SSL) so that tells me it's not a issue with the cfc itself. Anybody know why this is, how to fix or even how to troubleshoot it?

<cfform id="credit-card-form" action="#secureBaseURL##myself##xfa.paynow#" method="post">
where
"#secureBaseURL#myself##xfa.paynow#" evaluates to "https://our.secure.server/path/to/processingscript.cfm"


Could not find the ColdFusion Component or Interface com.utility.

Ensure that the name is correct and that the component or interface exists.
This topic has been closed for replies.

1 reply

Inspiring
June 9, 2008
ajdklfajdlk wrote:
> I'm trying to submit a form to a secure url (https). I'm able to submit
> successfully but the called page makes a call
> to a cfc (com.utility). It chokes on this call. I'm able to call this cfc
> successfully on other pages via regular
> http (not SSL) so that tells me it's not a issue with the cfc itself.
> Anybody know why this is, how to fix or even how to troubleshoot it?

Hi,

Is your secure site on a different server, or have a different physical
directory on the remote server? If so, make sure that your CFC actually
exists in the same location on your secure directory. If your non-secure
and secure site are both pointing to the exact same physical location,
then you wouldn't be seeing this error.

--
Daniel Short
Site Drive, Inc.
Adobe Community Expert

(correct the spelling of inc to send me an email)
Inspiring
June 10, 2008
The site is
http://www.domain.com
and the secure site is
https://www4682.secure.com/domain
where domain is our domainname and secure is our secure domainname
and /domain is a virtual directory on IIS.
I have all my components in a directory named "com" off the webroot.

What i would like to do is be able to call my components from either the secure or non-secure site using
the same code. Currently i'm able to call my components from the non-secure url successfully. When I try calling them from a secure page CF chokes saying it can't find it

Could not find the ColdFusion Component or Interface com.componentname

I believe the issue has to do with trying to call the cfc from the sslwebroot
WITHOUT the appended virtual directory "/domain", where of course it wouldn't find the component, but i'm unsure.

Any ideas how i can fix this?