Copy link to clipboard
Copied
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
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.
Copy link to clipboard
Copied
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>
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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*.
Copy link to clipboard
Copied
I think you should log it as a bug, as you suggested.
https://tracker.adobe.com/ (I think)