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

Having issue with cf2023_scripts location

Community Beginner ,
Feb 28, 2025 Feb 28, 2025

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

156
Translate
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 1 Correct answer

Community Beginner , Feb 28, 2025 Feb 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.

Translate
Community Beginner ,
Feb 28, 2025 Feb 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>

Translate
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 ,
Feb 28, 2025 Feb 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.

Translate
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 ,
Feb 28, 2025 Feb 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
Translate
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 ,
Feb 28, 2025 Feb 28, 2025

I got the idea to search the code from the cfusion directory for cf2023 and found it that way.  It was set to cf2023_scripts exactly.  I looked at my previous CF 2021 server and saw the correct value there and ported it over to the new server, restarted CF and *poof*.

Translate
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 ,
Feb 28, 2025 Feb 28, 2025
LATEST

I think you should log it as a bug, as you suggested.

 

https://tracker.adobe.com/ (I think)

 

Dave Watts, Eidolon LLC
Translate
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