• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CF 21 The Runtime service is not available error on macOS Monterey

Community Beginner ,
Dec 21, 2022 Dec 21, 2022

Copy link to clipboard

Copied

hello, on http://localhost:8500/CFIDE/administrator/ I am getting an error with the message "coldfusion.server.ServiceFactory$ServiceNotAvailableException: The Runtime service is not available."

I am running CF21 on macOS Monterey. The java version on my system is  "19.0.1". Please help with any ideas on how to overcome this. Thank you. 

 

cfservererror.png

 

Views

690

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 4 Correct answers

Community Expert , Dec 24, 2022 Dec 24, 2022

BKBK is right to note that the coldfusion-error.log confirms you are running Java 11.0.11. As I'd noted, Java 11 is what CF 2021 comes with by default. (The original installer in Nov 2020 came with 11.0.1, and the updated installers in Sept 2021 and Oct 2022 come with 11.0.11.)

 

But again, BKBK, if you missed it in my first reply, CF2021 does not currently support Java 19. Changing CF to use that is not going to be what yazy should do here, nor should anyone--at least until Adobe comes out with

...

Votes

Translate

Translate
Community Expert , Dec 25, 2022 Dec 25, 2022

Charlie, I saw your remark that ColdFusion does not support Java 19. I in fact had that in mind. But, looking back, that didn't come out clearly in my reply.

 

@yazy27665374pke1 ,  your relative path, "../../jre/Contents/Home" may probably be correct. The reason I suggest using the absolute path is as follows. We will then be 100% sure that what you notice is so by design. That is, ColdFusion 2021 is designed such that, if you attempt to use Java 19, ColdFusion will deliberately refuse to use it

...

Votes

Translate

Translate
Community Expert , Dec 25, 2022 Dec 25, 2022

I agree that's an unlikely scenario. CF is a J2EE application that runs on a Java application server (Java itself, Tomcat running on Java). CF just isn't "smart" enough to arbitrarily choose a compatible Java version. There would have to be an external binary that figures this out before CF runs, I think.

 

Dave Watts, Eidolon LLC 

Votes

Translate

Translate
Community Beginner , Dec 29, 2022 Dec 29, 2022

I deleted Java 19 from my Mac. I reinstalled Coldfusion and it worked!

Dave, Charlie, BKBK — thank you all very much for your inputs.

Votes

Translate

Translate
Community Expert ,
Dec 21, 2022 Dec 21, 2022

Copy link to clipboard

Copied

Some readers may want to assert that your problem is with that Java 19.0.1. Maybe, but maybe not.

 

First, CF2021 does not in fact currently support anything but Java 11 (the latest being currently update 11.0.17). But unless you have specifically changed your cf to use that specific Java, it would instead use the one that CF is already configured to use. Open the cf jvm.config file, in the cfusion/bin folder, and see the first uncommented line with java.home. What is that set to? If it's the coldfusion/jre folder, then that WILL be a Java 11 version (unless someone copied a new jvm into that folder). 

 

As for the error, it may have nothing at all to do with what java version cf is using. Look in the cf logs, especially the coldfusion-error.log and coldfusion-out.log. Look for errors during the startup of cf. See anything amiss?

 

If not, and you need help, and you may want to show us the logs, please offer that as an attachment, not by pasting the text here. Or offer ONLY the lines since the last cf startup. 


/Charlie (troubleshooter, carehart.org)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 22, 2022 Dec 22, 2022

Copy link to clipboard

Copied

Hello Charlie,

Thank you for your assistance. In the cf jvm.config file, the value for java.home is set to "../../jre/Contents/Home". I have attached the error and out logs for your review.

I have tried to go through them, but I am having difficulty understanding all the details. If I am unable to resolve the issue by reviewing the logs, I will consider reinstalling Coldfusion next week.

Thank you for your help and have a happy holiday season.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 24, 2022 Dec 24, 2022

Copy link to clipboard

Copied

The files coldfusion-error.log and coldfusion-out.log pertain to a ColdFusion installation that:

  1.  is installed with Java 11.0.11 (LTS), quite likely the Java that ships with ColdFusion. You can see that in coldfusion-error.log;
  2.  has stopped running.

 

In other words, the path to Java 19.0.1 is probably not "../../jre/Contents/Home". If you want to use Java 19.0.1 with ColdFusion, I will suggest that you use the absolute path of the Java 19.0.1 installation directory.

 

Use Google to find out how to obtain this path for MacOS Monterey. Then put it in jvm.config, and restart ColdFusion.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 24, 2022 Dec 24, 2022

Copy link to clipboard

Copied

BKBK is right to note that the coldfusion-error.log confirms you are running Java 11.0.11. As I'd noted, Java 11 is what CF 2021 comes with by default. (The original installer in Nov 2020 came with 11.0.1, and the updated installers in Sept 2021 and Oct 2022 come with 11.0.11.)

 

But again, BKBK, if you missed it in my first reply, CF2021 does not currently support Java 19. Changing CF to use that is not going to be what yazy should do here, nor should anyone--at least until Adobe comes out with an update to support it.

 

But I will say (in addition to my other reply here just now) that yazy's problem really does not seem to be related to Java at all, at least based on what we've seen so far. 


/Charlie (troubleshooter, carehart.org)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 25, 2022 Dec 25, 2022

Copy link to clipboard

Copied

Charlie, I saw your remark that ColdFusion does not support Java 19. I in fact had that in mind. But, looking back, that didn't come out clearly in my reply.

 

@yazy27665374pke1 ,  your relative path, "../../jre/Contents/Home" may probably be correct. The reason I suggest using the absolute path is as follows. We will then be 100% sure that what you notice is so by design. That is, ColdFusion 2021 is designed such that, if you attempt to use Java 19, ColdFusion will deliberately refuse to use it, and instead default to its own Java, which is Java 11.

 

But I think that is an unlikely scenario. If you point ColdFusion to the correct Java 19 path, ColdFusion should give you an error telling you that Java 19 is incompatible.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 25, 2022 Dec 25, 2022

Copy link to clipboard

Copied

I agree that's an unlikely scenario. CF is a J2EE application that runs on a Java application server (Java itself, Tomcat running on Java). CF just isn't "smart" enough to arbitrarily choose a compatible Java version. There would have to be an external binary that figures this out before CF runs, I think.

 

Dave Watts, Eidolon LLC 

Dave Watts, Eidolon LLC

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 24, 2022 Dec 24, 2022

Copy link to clipboard

Copied

Yazy, your screenshots of the startup log lines show clearly that CF is starting and then ending about 30 seconds later.  Are you saying that during that time, you visited the CF Admin and got the error you show?  I ask because I would have expected to see error lines in either of those, when you got the error you offered initially here.

 

As for the startup lines, they show no problem at all. (They also show that you seem to have this instance of CF being monitored by the CF PMT monitor, but I don't see that being a cause of the error above.)

 

Since the error is not about startup (it seems), we need to look elsewhere.

 

First, help us out: was this CF instance working for some hours, days, weeks, or months, then suddenly not working? What changed? Did you apply CF updates, perhaps? Anything else you can think of? Did you or anyone tweak any underlying CF config files, perhaps trying to solve some other problem?

 

If you had recently applied a CF update, look to the CF update installation log, which is NOT in the same cf logs folder, but in another location entirely. I have a blog post on where to find that, and how to quickly confirm if the update worked with 0 errors or not. 

 

Finally, I hear you saying you are tempted to just reinstall CF. I understand how some folks get to that point of frustration or desparation (or simply lack of interest in finding a solution). I'll note that I have nearly always been able to help folks find and fix whatever was amiss. I do it with people daily. If you might be open to as little as 30 or even 15 minutes working together remotely, it may not take much longer for us to save you that effort of a reinstall.  You can learn more about my rates, approach, satisfaction guarantee, and more at carehart.org/consulting. I offer my online booking calendar there, and though it doesn't offer weekend hours, we can arrange that via email (address offered there also).

 

That said, I'm happy to keep helping here only. It's just that I can't always respond readily, and with the holidays it may be even more challenging, but I'll try to watch out for your reply.


/Charlie (troubleshooter, carehart.org)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 29, 2022 Dec 29, 2022

Copy link to clipboard

Copied

I deleted Java 19 from my Mac. I reinstalled Coldfusion and it worked!

Dave, Charlie, BKBK — thank you all very much for your inputs.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 29, 2022 Dec 29, 2022

Copy link to clipboard

Copied

LATEST

Congratulations!

 

Dave Watts, Eidolon LLC 

Dave Watts, Eidolon LLC

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation