Skip to main content
donalda36766875
Participant
August 25, 2023
Question

Error after changing CFAdmin password Could not initialize class net.sf.ehcache.config.Configuration

  • August 25, 2023
  • 2 replies
  • 2224 views

I inherited a few ColdFusion applications when I assumed the role of a company's CF guy.

Problem is, I did not receive the password for CFAdmin.  There was no turnover so no way to reach out to someone who was already long gone.

I used the passwordreset.bat to change the admin password, restarted the CF 2021 service and tried again to get into the administrator.  Got past the login screen but with a problem message instead of the administrator.

The full error from the application log says "Error","http-nio-8500-exec-9","08/24/23","21:20:15",cfadmin,"Could not initialize class net.sf.ehcache.config.ConfigurationFactory The specific sequence of files included or processed is: F:\ColdFusion2021\cfusion\wwwroot\CFIDE\administrator\enter.cfm, line: 684 "
Any direction to get this resolved would be really appreciated.

    2 replies

    Community Expert
    August 25, 2023

    Try stopping CF, clearing the Java cache files, then restarting CF again. This should force CF to recompile any previously compiled pages. I'm pretty sure this is different from the ehcache error you're seeing, but give it a try. The Java cache files directory is cfclasses. I don't remember where it is exactly, but you can find it from the command line using "dir /s cfclasses" from the CF root directory.

     

    Dave Watts, Eidolon LLC 

     

     

    Dave Watts, Eidolon LLC
    donalda36766875
    Participant
    September 6, 2023

    Hi Dave.  This answer also much appreciated but the clearing of the JAVA cache files per your instructions did not get me through the issue.

    Turns out one page (that has been found) on the site was also erroring.  Two queries on the page had both cachedwithin and blockfactor options used.  I commented out those options in both queries and the page does load properly. 

    I guess it kinda makes sense regarding the cachedwithin since it does appear to be a caching problem.

    You mention that the Java cache files directory is cfclasses.  Not sure what to do with that info but I did find that directory.

    Any other thoughts on this would be really appreciated.

    Charlie Arehart
    Community Expert
    Community Expert
    September 6, 2023

    Donald, to your last point you would want to stop cf, then delete all the files in that cfclasses directory (or just delete the directory and cf will recreate it on restart). Then start cf and test the admin again.

     

    Then again, you say at the start of your last reply to Dave that "clearing of the JAVA cache files per your instructions did not get me through the issue." What did you do? 🙂 Maybe you clicked the "clear template cache", instead? That clears them from MEMORY, but clearing the cfclasses folder deletes them from disk instead.

     

    Let's hear how it all goes. 

    /Charlie (troubleshooter, carehart. org)
    Charlie Arehart
    Community Expert
    Community Expert
    August 25, 2023

    To be clear, the new problem has nothing to do with the password or login, as you may have already suspected. As for the error, it's related to the caching settings underlying cf.

     

    As for you seeing it on login, it may be simply that you or the previous person using the browser you're on were visiting the page related to that, when last logged in.

     

    And I assume your primary goal is just to get into the admin for some reason, right? Try visiting the admin in a different browser, or if none then open a new private window/incognito window, just to see if it gets you in.

     

    Then you may find some specific admin page gets this error, but then you can hit the back button to get out of it. 

     

    Then you (and we) can later turn your attention to the caching error. Someone else maybe well recognize it and suggest a solution for it.

     

    But let us know if you can at least use these suggestions to get into SOME working admin page. 

    /Charlie (troubleshooter, carehart. org)
    donalda36766875
    Participant
    September 6, 2023

    Hi Charlie.  Answer much appreciated. 

    Apologies for the delay.  I have been away.

    Neither the different browser nor the incognito window managed to get me into CFAdmin.  I get the same error message as before.

    This is not a server I setup but sort of inherited it as a contractor so limited knowledge exists about the original configuration.  It was a CF9 to CF16 to CF2021 upgrade before I arrived.

    Any other thoughts on this?

    Charlie Arehart
    Community Expert
    Community Expert
    September 6, 2023

    I do have more thoughts, but given that this didn't help, I'd have gone down the route Dave offered the next day. And now that you've replied to him, I'll offer a response to that, below. 

    /Charlie (troubleshooter, carehart. org)