Skip to main content
Participant
January 18, 2023
Question

Java Jar Loaded through application.javaSettings with reloadOnChange = true Periodic Failures

  • January 18, 2023
  • 1 reply
  • 135 views

We're experiencing occasional "class not found" errors after modifying a java jar set to reloadOnChange.

These are the settings we use in our various application.cfc(s):

 

this.javaSettings = {LoadPaths = [ 'G:\www\_config\autoLoadJar\' ], loadColdFusionClassPath = true, reloadOnChange= true, watchInterval = 5, watchExtensions = "jar,class,xml" };
 
In our server farm we have a number of servers hosting a dozen plus different web applications each with ColdFusion 2021. Generally the jar loading works as expected, but sometimes after updating a jar, although most the applications function correctly and recognize the change, one or two will lose access to any of the classes in the updated jar. Any request to a page or cfc referencing a class file results in a "class not found" error. Resetting the specific application or restarting the service fixes the issue. Note that other applications on the same machine function correctly.
 
Any help would be appreciated.
 
Arthur
 
 
This topic has been closed for replies.

1 reply

BKBK
Community Expert
Community Expert
January 19, 2023

Might the applications be queueing for access to the same resource? You could experiment by using different values of watchInterval in their respective Application.cfc files. For example, 2, 3, 4, 5, 6, and so on.