I came across a strange problem this morning when trying to do some development on one of our servers that is not using the default Sun JVM (the server is Win2K3, CFMX7.0.2 running on BEA JRockit 5).
Whilst this normally runs like a dream, I decided to stomp out an application.cfc. The result? A big fat error. I kept getting the error “CFCServlet must be initialized“.
After some poking around, I found that if I flipped CFMX back onto the default JVM all was good, it appeared to be JRockit that was causing the issue.
If you’re here after coming through Google, this is where I also say that I haven’t found a fix, if you want to use JRockit, you can’t use application.cfc’s, you need to switch back and suffer the performance degradation. I also can’t say if this situation gets better or worse on CFMX 8 or different versions of JRockit as I haven’t checked.


I wonder if it’s some kind of weird case sensitivity error. Did you try using the correct case for the file name? It should be Application.cfc (with a capital A.)
Case doesn’t appear to make any difference Dan. I can only think there is something that CF does when dealing with application.cfc’s that uses a part of the JVM thats not considered “standard”.