Unable to start Lucee : Service not responding


New install of Lucee, using the windows installer lucee-

Checking the install log I have:

Installing IIS Connector (this can take some time…)
Script exit code: 0

Script output:

Script stderr:

Starting Lucee Service
Unable to start Lucee : Service not responding

Checking logs under the Tomcat directory
[2022-10-17 15:06:21] [info] [924604] Apache Commons Daemon procrun ( 64-bit) started.
[2022-10-17 15:06:21] [info] [924604] Running Service ‘Lucee’…
[2022-10-17 15:06:21] [info] [927720] Starting service…
[2022-10-17 15:06:21] [error] [927720] Found ‘C:/Program Files (x86)/Java/jre1.8.0_341\bin\client\jvm.dll’ but couldn’t load it.
[2022-10-17 15:06:21] [error] [927720] %1 is not a valid Win32 application.

The error is of course: ERR_CONNECTION_REFUSED

I use ACF locally on this PC, which works okay.

Apologies, I didn’t find an install guide.

Don’t forget to tell us about your stack!

OS: Windows 10
Java Version: jre1.8.0_341
Tomcat Version: ???
Lucee Version:

Some more troubleshooting shows Tomcat not starting via Windows services.

I have created java_home, and jre_home system environment variables.

When starting via windows:


Windows could not start the Apache Tomcat 9.0 Lucee on Local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code 1.


Using CATALINA_BASE: “C:\lucee\tomcat”
Using CATALINA_HOME: “C:\lucee\tomcat”
Using CATALINA_TMPDIR: “C:\lucee\tomcat\temp”
Using JRE_HOME: “C:\Program Files (x86)\Java\jre1.8.0_341”
Using CLASSPATH: “C:\lucee\tomcat\bin\bootstrap.jar;C:\lucee\tomcat\bin\tomcat-juli.jar”

which opens another terminal with Tomcat running

There is an error:
17-Oct-2022 16:35:38.737 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=C:\lucee\tomcat\temp
17-Oct-2022 16:35:38.752 WARNING [main] org.apache.catalina.core.AprLifecycleListener.init The Apache Tomcat Native library failed to load. The error reported was [C:\lucee\tomcat\bin\tcnative-1.dll: Can’t load AMD 64-bit .dll on a IA 32-bit platform]
java.lang.UnsatisfiedLinkError: C:\lucee\tomcat\bin\tcnative-1.dll: Can’t load AMD 64-bit .dll on a IA 32-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)

Do I need to run a 32 JRE? Is that what it is complainign about?

Spitballing based on the detailed info you provided and the error message. It thinks your environment is 32bit.

Double check that you are running 64bit. Based on the path (x86), that’s 32 bit JRE. Perhaps you have two versions and need an updated environment variable?

I really just accepted the defaults for all of the installer options, so it’s strange that it might choose a 32 bit jre when it wants a 64 bit one.

I have installed a 64 bit JDK now as well. ( one of the installer errors specified I wanted a JDK )

In the end, I un-installed Lucee, removed the two environment variables, rebooted, re-installed and chose the option to use the bundled JRE, and now the URL Rapid web development with Lucee! works.


1 Like

Good catch, I have changed the auto detect java to require a 64 bit version for the next release