Copy link to clipboard
Copied
We're running ColdFusion 10 Update 2. It was running on Java 1.6 and we'd like to upgrade to 1.7. The server is Windows 2003 32-bit.
I installed the Java 1.7 JRE and pointed the JVM path to the default folder in the CF Admin, but the services would not restart. Editing the jvm.config to point back to the original folder location (x:\coldfusion10\jre) enabled me to restart the service. So, I re-installed the JRE to x:\coldfusion10\jre2 and pointed the JVM path there, but had the same issue.
I did some reading and saw some posts that stated that the full JDK is needed and not just the JRE, so I installed that to the same path. Same result.
Any thoughts on what I can do next?
Copy link to clipboard
Copied
I don't think ColdFusion 10 was certified for Java 7 (1.7) until update 7 or 8.Try applying the latest update to your ColdFusion installation before switching JVM versions. Also, when you install the JDK, there should be a JRE folder inside the JDK folder. Point ColdFusion to That JRE folder.
Copy link to clipboard
Copied
Hello Jerky,
Thank you for your post. ColdFusion 10 is supported with Java 7. Please refer to http://blogs.coldfusion.com/post.cfm/new-updates-for-coldfusion-9-9-0-1-9-0-2-and-10-java-7-now-supp... for the same.
Here are some instructions, which may be helpful:-
1. Download and install a supported version of JDK. Note that ColdFusion requires the Java HotSpot Server virtual machine (jre/bin/server/jvm.dll), which is not available with the JRE download.
2. ColdFusion stores the JVM startup parameters in a file called jvm.config. Back up this file and open it a text editor. This file has a setting called "java.home". Update this setting with a value that contains the path to your new JRE. For example, java.home=C:\\Program Files\\java\jdk1.7.0_15\\jre. The directory path to this file can be found at the following location depending on the type of your ColdFusion installation.
CF9 Single Server: <cf_root>\runtime\bin
CF9 Multiserver: <jrun_root>\bin\
CF10 Server: <cf_root>\cfusion\bin
3. Restart ColdFusion for the change to take effect.
Update jvm.config from the ColdFusion Administrator
You can update the java.home setting by accessing the ColdFusion Administrator and navigating to Server Settings > Java and JVM > Java Virtual Machine Path. However, this option is available in the Single Server installation of ColdFusion 9 and Server installation of ColdFusion 10 only.
Hope this helps.
Regards,
Anit Kumar
Copy link to clipboard
Copied
Any updates for getting CF10 to work with Java 8? I had installed Java 8 a couple of weeks ago and it has been working fine. Out of nowhere, this morning, I can't log into cfadmin...when i log in, it keeps just going to the login page. If I try to run a site, it says I cannot access datasources...something about not being able to find jce.jar. So I followed some of the steps I saw online like making sure ethe java_home was pointing ot the jre directory in the new jdk and I copies msvcr100.dll to the cfusion/bin directory and copied over tools.jar to cfusion/lib. Now I get "HTTP Status 500 - coldfusion.server.ServiceFactory$ServiceNotAvailableException: The Runtime service is not available." Here is the stack trace info:
type Exception report
message coldfusion.server.ServiceFactory$ServiceNotAvailableException: The Runtime service is not available.
description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: coldfusion.server.ServiceFactory$ServiceNotAvailableException: The Runtime service is not available. coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:129) coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422) org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:199) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.lang.Thread.run(Thread.java:745)
root cause
coldfusion.server.ServiceFactory$ServiceNotAvailableException: The Runtime service is not available. coldfusion.server.ServiceFactory.getRuntimeService(ServiceFactory.java:117) coldfusion.CfmServlet.init(CfmServlet.java:99) coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:121) coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422) org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:199) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.lang.Thread.run(Thread.java:745)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.54 logs.
What do i do? I am at a loss and cannot move forward. Help!!!!
Thanks!
Eric Roberts
Application Developer
Andy Frain Services
Copy link to clipboard
Copied
Hi Eric,
In case it gives an error message, please share the same.
Regards,
Anit Kumar
Copy link to clipboard
Copied
Also, Eric, you haven’t clarified: are you running on at least update 14 of CF10? That’s what added support for Java8 in CF10.
And if you’d say yes, I’d wonder if you might confirm whether you may have had any errors in that or previous updates you had applied. You can see a log for each in the HF-updates, which will have a folder for each update applied. It can be that CF still comes up sometimes, even when something may have been amiss. (And the installer status windows would have said if there were any errors, but people often don’t notice when it says that. The logs are the best way to know for sure.)
/charlie
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more