Skip to main content
johnb77214017
Inspiring
March 8, 2024
Question

Intermittent Application not found in Rest CF2023

  • March 8, 2024
  • 1 reply
  • 254 views

Does not seem to be a rhyme or reason to this, but every once in a while I get

javax.servlet.ServletException:Application v1 could not be found.

The App CFC in the dir has the name

 

component {
  this.name = "v1";
  this.applicationTimeout = createTimeSpan(1, 0, 0, 0);
 
I saw some other answers that could be the application timing out, but it happens more than once a day.
    This topic has been closed for replies.

    1 reply

    BKBK
    Community Expert
    Community Expert
    April 2, 2024

    Some suggestions:

    1.  Confirm that the service v1 is registered on the Rest Services page in the ColdFusion Administrator. If it is, click on the button to edit the service, and then press the Update Service button.
      If it isn't, then Houston, Houston, we've got a problem!
    2.  Verify whether there are any related errors in the logs. In particular, ensure that the Application.cfc never generates errors and is always accessible to the REST cfc.
    3.  Go to the Caching page in the ColdFusion Administrator and press the button to clear the component cache. (In case ColdFusion used a cached class instead of a freshly generated class.)
    4.  Verify whether the start times of the rest service are registered in restservice.log. To test, restart ColdFusion (at a convenient time, of course), and verify whether the start time of the rest service is registered in restservice.log during the restart.
    5.  If, following all of above, the issue persists, then temporarily increase the application timeout to 2 days, and monitor.