Skip to main content
Participant
Jan 18, 2023 7:08 PM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

1 reply

BKBK
Community Expert
Community Expert
Jan 19, 2023 4:18 PM UTC

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.

Translate