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

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

New Here ,
Jan 18, 2023 Jan 18, 2023

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
 
 
TOPICS
Advanced techniques
143
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 ,
Jan 19, 2023 Jan 19, 2023
LATEST

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
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