I've got 2 ColdFusion apps built with a similar layout. They were built about the same time. I've recently upgraded my local server to ColdFusion 9. They both work fine locally but when I visit them through my IP one doesn't run the application.cfm. The other does. They're both running on the same server. Any ideas?
My first thought is that on a case-sensitive file system, Application.cfm MUST have a capital A.
If your application has an Application.cfc, and an Application.cfm or onRequestend.cfm page, ColdFusion ignores the CFM pages.
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=AppEvents_01.html
Related
I just installed ColdFusion 2016 Developer Edition on my Windows 7 laptop and configured it to use the built-in web server. Previously I was using ColdFusion 11.
Now I have a case-sensitivity problem, but only for non-ColdFusion (.cfm) resources. For example, all css and js references are now case-sensitive, whereas they weren't when I was using ColdFusion 11. The same is true for calls to images and plain html files. All cfm files load just fine.
I modified the context.xml file (in the /cfusion/runtime/conf folder) to include <Context AllowLinking="true" caseSensitive="true"> (and yes, I also tried caseSensitive="false") and have restarted several times, but no luck yet.
The 404 error messages specify Apache Tomcat/8.5.11.
Any ideas on how to restore case-insensitivity? Thanks in advance for any help.
I seem to have "fixed" this. I enabled IIS on my laptop and used the Web Server Configuration tool to set it up with ColdFusion. (I also changed the path for the default website in IIS to /cfusion/wwwroot since that's where all my code is.) Everything seems to be working well now, with no case sensitivity for cfm or non-cfm pages. I no longer need to include the port (8500) in the URL for my applications, but do need to include it to reach the CF Administrator.
We are testing our cf code (which all works fine on a CF9 Windows Server 2008 machine) for migration to a CF11 Windows 2012 R2 machine. We have a test machine setup and all the code moved over and so far the cfm pages seem to work fine as well as the Application.cfc page but when we call a cfc via AJAX or we visit the cfc methods directly we get an IIS 500.0 error Application could not be found. If I look in the application.log for CF all I see for the error is "Application could not be found. The specific sequence of files included or processed is: ""
Anybody else run into this?
We had the same problem. We upgraded the Java SE Runtime Environment to 1.8.0_91 from 1.8.0_66, restarted ColdFusion and it fixed the issue. Find your upgrade here:
http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
Renshi, (or for others finding this in the future), is the request which is failing one where your URL referred to a folder off your webroot called /api?
If so, then the error you got is due to a change in CF11 (update 11) which effectively made/api a "reserved url" for CF, in support of the REST services feature added in CF11.
You can implement a workaround to the problem (assuming you don't intend to use CF's REST feature in ANY CF app) by commenting out the few lines that refer to the "/api" servlet-mapping in CF's web.xml file. For more details, see this blog post:
http://chads-tech-blog.blogspot.com/2017/03/coldfusion-2016-broke-my-api-and-how-i.html
I just moved my CFWheels app from CF9 to CF11 and I've lost the REST urls from my previous setup.
For example before I had example.com/controller/view and now I get example.com/index.cfm?controller=foo&action=bar
The weird thing is that when I hardcode the url in it doesn't convert it or throw an error.
Is there a setting in the administrator's panel that I should check? I did a comparison with my previous setup but I have't found anything.
This is what I did to get it to work.
I uncomented the xml code inside web.config in the root of my application. Set the <directoryBrowse enabled="true" /> renamed the htaccess and ISAPIrewrite4.ini. Then restarted the server and Coldfusion through services.
I think the trick happened when I renamed the two files that were unnecessary for my setup (htaccess for apache and ISAPI rewrite for IIS 6).
Good luck to anyone running through this issue :)
I needed to install Coldfusion 8 on my local Windows 7 PC, to do some testing. I took the easy route and installed the Standalone server, which included a built in web server. I didn't really need a fully fledged web server, just needed to test.
So after some time of Coldfusion working fine. It started displaying the source code of the page. In other words, Coldfusion was not parsing the page. Merely displaying the source code.
I've worked out that the following line will make the page display source code
<?xml version="1.0" encoding="utf-16"?>
Even if I remove this line from the source code, the source code is still displayed. So I have to make another .cfm file with all the code except the above line, for it to run.
My question is, how do I clear the Coldfusion Standalone Web Server's cache? I've tried the usual restarting of Coldfusion to no avail.
Update: I eventually used a workaround of just renaming the files ie: testing1.cfm, testing2.cfm. For anyone else getting this issue, just use a standalone web server like Apache.
Have you tried restarting ColdFusion?
Have you tried clearing the cache in your browser?
For what it is worth, I prefer to use a web server even when doing development. I have found that using the CF web server and having all my projects under the CF web root can lead to pathing issues in production.
Not sure if you have already fixed this issue but there is an option in the ColdFusion administrator under the Settings > Caching option. At the bottom is a button named Clear Template Cache Now. Clicking that button will empty (remove) any templates that ColdFusion has cached. The next request to that template will force ColdFusion to recompile it if it has been modified.
I have several Coldfusion sites on a Win 2K3 IIS6 server and I wanted to ease into Railo. I was hoping to install Railo on the same server and just set up a particular IIS virtual host to use Railo instead of Adobe CF server.
It seems Adobe CF Server will still process the request for .cfm files even though I pointed the isapi mapping to the Railo dll.
I shut down Adobe Coldfusion 8 service and got Railo working on the IIS virtual host but it takes about 15 or so seconds to process a single .cfm file with the now() function in it. If I run the same cfm file via the port Railo is running on it is very fast.
is it possible to run Railo and CF Server side by side without JRun? And why would Railo and IIS be so slow?
Yes. A number of people have done such. Some (like Mike Henke and Matt Woodward) have gone even further and installed Open BlueDragon, Railo and Adobe CF at the same time. Matt has a really nice blog posting on how to do it here. He also has a nice set of presentation slides on this here.
The easiest way would be to download Railo Express (includes Jetty) and run that on a different port, like 8080.