Skip to main content
Participant
February 18, 2022
Answered

Can't upgrade jdk past 11.0.10 (CF2021)

  • February 18, 2022
  • 1 reply
  • 1767 views

We got a request in today to update java to 11.0.14 (latest). This is our only 2021 server, but it's been up for a bit and unfortunately was installed prior to the version that defaulted to java 11.0.11. We have no issue moving to any version from 11.0.2 up through 11.0.10. Any version after that won't start the service. The only output for an error is:

Element JDKPATH is undefined in FORM. The specific sequence of files included or processed is: E:\ColdFusion2021\cfusion\wwwroot\CFIDE\administrator\settings\jvm.cfm, line: 227 "
    This topic has been closed for replies.
    Correct answer Daniel232329128pmi

    Hi all,

    I got a chance to dig into this more. I did a fresh install of coldfusion 2021 on a new server and had no issues. So I took its JVM config and copied over the java args. At that point, my current server could get past 11.0.10 with no issue. The removed lines ended up being 

    -Djava.security.manager

    -Djava.security.policy={application.home}\\lib\\coldfusion.policy

    -Djava.security.auth.policy={application.home}\\lib\\neo_jaas.policy

    -Dlog4j2.formatMsgNoLookups=true

    We haven't done too much with this server overall. However, we did follow a few guides during the log4j mishaps. I'm guessing these came from this.

    Again though, thank you so much for the help and tips. It was a great learning experience.


    I had spoken slightly too soon. I reached back out to the client and they said they did need the sandbox security set (the clients local IT added it when putting in content). Ultimately, this issue turned out to be: https://community.adobe.com/t5/coldfusion-discussions/coldfusion-2021-conflict-between-sandbox-security-and-java-11-0-11/m-p/12207456

     

    I applied the workaround provided by Charlie into the jvm.config args -Djdk.lang.Process.allowAmbiguousCommands=true

    1 reply

    BKBK
    Community Expert
    Community Expert
    February 19, 2022

    The error "Element JDKPATH is undefined in FORM" is usually caused by a bitness mismatch. That is, a 32Bit <> 64Bit mismatch, where you install a 32Bit JDK for 64Bit ColdFusion or a 64Bit JDK for 32Bit ColdFusion.

     

    See, for example, https://community.adobe.com/t5/coldfusion-discussions/element-jdkpath-is-undefined-in-form-after-java-upgrade/td-p/3451613 

     

    If that is so in your case, the solution will be obvious:

    • Install a 32Bit JDK for 32Bit ColdFusion or a 64Bit JDK for 64Bit ColdFusion
    Participant
    February 21, 2022

    The error message is misleading. JDK 11.0.11 (or newer) shows and OS architecture of x86_x64, despite being pulled explicitly from the x64 version of the java page, implying it's agnostic to either. We checked 11.0.10 which showed it running x64 on ColdFusion (versions all pulled from the same pages).

    Charlie Arehart
    Community Expert
    Community Expert
    February 21, 2022

    Daniel, are you saying things are still unresolved? If so let me clarify that whatever is amiss seems to be on your end. I've helped hundreds of folks make that upgrade so it does indeed work.

     

    It may be very difficult through back and forth here to determine what's amiss for you, but I suspect we could solve it in less than 15 minutes, in an online session together. If you're interested, check out the consulting page at carehart.org. I track time in as little as 15 minute increments, and you won't pay for time you don't value. 

    /Charlie (troubleshooter, carehart. org)