3
votes

Running ColdFusion 10 Update 18 on Server 2012 R2 with IIS 8.5. I've made changes to a CFC, and created a new CFC file as well to test. The changes I made aren't being reflected, and the new file returns a 404 File Not Found.

I've done the following:

  • Checked the Jakarta virtual directory exists
  • Removed and readded the site with the CF Web Config tool
  • Cleared the WEB-INF class temporary folder
  • Clicked all the Clear Cache buttons in CF Admin
  • Unchecked all cache options in CF Admin

I inherited this setup and do not have any prior ColdFusion experience. Thanks!

1
What is used to create / interact with the cfc? - James A Mohler
We're using ColdBox. I think that is what you are asking. - J Stacy
If using coldbox, try to reinit. - beloitdavisja
To reinit, I just load index.cfm?fwreinit=1 correct? This worked on my test VM, but not on our production. They should be identical systems. - J Stacy
Are you attempting to browse to the cfc directly, or is there a cfm page that calls it? - Dan Bracuk

1 Answers

0
votes

Maybe you can add some supplemental functionality to your application.

I adapted this to your fw1init=1 query param.

Your intercept in index.cfm or futher upstream if necessary.

<cfscript>
if (find('404;',CGI.query_string)){
    location('index.cfm?fwreinit=1'); 
}   
</cfscript>

In your Application.cfc

<cfscript>
public boolean function OnRequestStart(required string Target){
if (structkeyExists(url, 'fwreinit') and url.fwreinit){
    if (isDefined('application')){
        structClear(application);
        onApplicationStart();
    }
    if (isDefined('session')){
        structClear(session);
        onSessionStart();
    }
}
}   
</cfscript>