BoxLang: Our new JVM Dynamic Language made by Ortus! Check it out: https://www.boxlang.io

Scheduled task context is not preserved when using Standard CF2021 + IIS installation

Description

I ran into an issue when using the coldbox scheduler.

It seems like the application context is not preserved when a task is executed. Most noticeably is that wirebox is unable to find class instances as wirebox will call expandPath( "/" & CFCName ) to try and locate a cfc. However expandPath will return the path to the coldfusion webroot, which in my case is C:\ColdFusion2021\cfusion\wwwroot\.

This issue does not occur when using a commandbox server.

For the sake for preservation I have attached the slack discussion (albeit inelegantly copy pasted) regarding the issue

My exact environment setup is as follows:

  • Windows Server 2019 Standard

  • ColdFusion Standard 2021.0.15.330303

  • Tomcat Version is listed as 9.0.93.0

  • Java Version 11.0.11  

  • IIS configure using the ‘Web Server Configuration Tool’

  • Coldbox-7.3.0+16

Attachments

1
  • 29 Aug 2024, 07:15 PM

Activity

Show:

Jon Clausen August 30, 2024 at 2:38 AM

Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Affects versions

Priority

Sentry

Created August 29, 2024 at 7:23 PM
Updated August 30, 2024 at 2:38 AM

Flag notifications