Skip to main content
Inspiring
February 28, 2025
Answered

Having issue with cf2023_scripts location

  • February 28, 2025
  • 1 reply
  • 510 views

I'm migrating from cf2021 Standard to cf2023 Standard and have a snag.  If I try to utilize an ajax component it is throwing this error.  It appears to be utilizing my virtual host as the location for the coldfusion scripts instead of the coldfusion install.

 

I'm using RHEL9 with apache.

 

Ajax component activates this path looking for what to do.

http://<URL>/cf2023_scripts/ajax/package/cfajax.js

    Correct answer karih38190410

    So, the key was in /lib/neo-runtime.xml

    neo-runtime.xml

    It's pointed to cf2023_scripts instead of /cf_scripts/scripts/

    Restarted CF and it works as expected now

     

    Without sounding all accusational I believe this is a bug.

    1 reply

    Inspiring
    February 28, 2025

    Here is a copy of the wsconfig file and I'm assuming this is where the problem lies?

     

    # Where to find uriworkermap.properties

    JkMountFile "/opt/ColdFusion/config/wsconfig/1/uriworkermap.properties"

    JkMountCopy "All"

    # Where to put jk logs

    JkLogFile "/opt/ColdFusion/config/wsconfig/1/mod_jk.log"

    # custom environment variables

    JkEnvVar REDIRECT_URL

    JkEnvVar REDIRECT_REMOTE_HOST

    JkEnvVar REDIRECT_PATH

    JkEnvVar REDIRECT_QUERY_STRING

    JkEnvVar REDIRECT_HTTP_ACCEPT

    JkEnvVar REDIRECT_HTTP_USER_AGENT

    JkEnvVar REDIRECT_REMOTE_ADDR

    JkEnvVar REDIRECT_SERVER_NAME

    JkEnvVar REDIRECT_SERVER_PORT

    JkEnvVar REDIRECT_SERVER_SOFTWARE

    # Set the jk log level [debug/error/info]

    JkLogLevel info

    # Select the timestamp log format

    JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

    AddHandler jakarta-servlet .cfm .cfml .cfc .cfr .cfswf

    DirectoryIndex index.cfm

    Alias /cf_scripts "/opt/ColdFusion/cfusion/wwwroot/cf_scripts"

    <Directory "/opt/ColdFusion/cfusion/wwwroot/cf_scripts">

    Options Indexes FollowSymLinks

    AllowOverride None

    Require all granted

    </Directory>

    <Files ~ ".hbmxml$">

    Require all denied

    </Files>

    karih38190410AuthorCorrect answer
    Inspiring
    February 28, 2025

    So, the key was in /lib/neo-runtime.xml

    neo-runtime.xml

    It's pointed to cf2023_scripts instead of /cf_scripts/scripts/

    Restarted CF and it works as expected now

     

    Without sounding all accusational I believe this is a bug.

    Community Expert
    February 28, 2025

    First, great job on debugging this yourself! That can be difficult. Second, you may be right - it may be a bug. But what exactly did it have inside your neo-runtime.xml? Was it the literal value cf2023_scripts, or was it a pointer to an environment variable? Either way, you should probably file it as a bug, since you had to manually edit your file to resolve it.

     

    Dave Watts, Eidolon LLC