Copy link to clipboard
Copied
Hey CF Community! I'm a new System Administrator for my college and I've started taking over some applications that run CF2021. Recently, while working in my lower environment I have been unable to start the ColdFusion Application Server. When I run the cfstart.bat to check for errors, I get the following:
Exception in thread "main" java.lang.NoClassDefFoundError: =TRUE
Caused by: java.lang.ClassNotFoundException: =TRUE
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
I did not make any updates to CF so I am unsure why I am getting this error all of a sudden. If more info is needed to debug the issue let me know and I will provide it. Any help would be greatly appreciated.
Copy link to clipboard
Copied
Are you saying this cf is one you always ran in the past by using cfstart from the command line like that? And have you tried (then or now) to run the command line "as admin"?
If so, please clarify if there's more below what you shared as the error message. There may be something useful there. On the surface, I don't recognize the problem from what you've shared so far.
Also, when was the last time that Cf ran successfully? That may be a clue. You can find that info in the logs. Note that if you run cf from the command line, you won't find it updating the coldfusion-out and coldfusion-error logs. But you will find the server.log tracking startup and shutdown, among other things.
Copy link to clipboard
Copied
Hey Charlie! Thanks for reaching out.
I usually run Cf by starting the application server service, but get the error saying Windows could not start it. I looked through some other discussion threads on here involving the same issue, and they mentioned to run the cfstart (I did run with elevated privileges) to get a more verbose output. I shared the only messages that are given when I run cfstart.
When I look at event viewer for more info on the failed service, I see the following:
The ColdFusion 2021 Application Server service terminated with the following service-specific error:
The system cannot find the file specified.
The last time CF ran successfully was around 2 months ago. I haven't had to work in that environment in that time period and with other stuff coming up this was put in the backburner.
I just checked the server.log as you suggested, and the last error was on 7/03 alerting us that our JDBC user failed to login to the db. I'm familiar with updating the password when the app server is running but not while it isn't. Would that login failed cause the app server not to start?
My apologies if this is trivial, I'm still learning CF. But enjoying it every step of the way!
Copy link to clipboard
Copied
From what you have said, I think you have done things correctly. In particular, you should run ColdFusion as you have usually done: that is, by starting the application server service. That narrows the focus of the issue and ensures that the solution you eventually find will fit your usual way of working.
Looking at the Event Viewer is a useful debugging step. "The system cannot find the file specified." suggests that ColdFusion's start-up process cannot find a file it needs. Or, perhaps, a required file has been corrupted.
I would therefore suggest you look into the following configuration files:
My suggestion consists of the following 3 checks, in turn. Only when you finish doing them should you try to restart ColdFusion.
1. Installed packages
For the moment, install all the packages. The steps are:
2. Java Virtual Machine configuration
The Java Virtual Machine configuration is situated by default at \cfusion\bin\jvm.config. To check it,
java.home=C:\\Program Files\\Java\\jdk-11
3. Runtime configuration (XML)
Once you are satisfied with the above steps, restart the ColdFusion 2021 services. Begin by restarting ColdFusion .NET, ColdFusion Add-On and ColdFusion ODBC Agent/Server (assuming they are present), and then restart, as last, the ColdFusion 2021 Application Server.
Copy link to clipboard
Copied
Nikolas, sorry I missed your reply yesterday (I'm at the Adobe CF summit which ends later today). So first, yes, it's smart to try to start cf from the command line when it won't start as a service. And second, the windows event log always says that in this case, and it's a useless message--not ever indicative if what's the true problem.
But there's just not enough in that message you offered to recommend what's amiss.
bkbk offers a whole lot you can try, but if it's either daunting or unsuccessful, I'll say that it may be hard to sort this out via this kind of of back and forth.
If it's more important to get it done today, we could get on a shared desktop session together and we may well solve this readily. I offer such consulting, in as little as 15-minute blocks. More at carehart.org/consulting.
And while my online calendar doesn't offer slots today, I could fit you in for this. I just couldn't risk someone grabbing me for an extended session. My contact info is on that site.
Otherwise, I guess let us know hoenyiu
Nikolas, sorry I missed your reply yesterday (I'm at the Adobe CF summit which ends later today). So first, yes, it's smart to try to start cf from the command line when it won't start as a service. And second, the windows event log always says that in this case, and it's a useless message--not ever indicative if what's the true problem.
But there's just not enough in that message you offered to recommend what's amiss.
bkbk offers a whole lot you can try, but if it's either daunting or unsuccessful, I'll say that it may be hard to sort this out via this kind of of back and forth.
If it's more important to get it done today, we could get on a shared desktop session together and we may well solve this readily. I offer such consulting, in as little as 15-minute blocks. More at carehart.org/consulting.
And while my online calendar doesn't offer slots today, I could fit you in for this. I just couldn't risk someone grabbing me for an extended session. My contact info is on that site.
Otherwise, I guess let us know how you go with any or all of bkbk's steps.