Lucee 7.1 installation errors without an internet connection

I have installed Lucee 7.1 on Windows without any problems, but on a server without an internet connection there are errors , even though the installation appears error free.

The error is “The mail extension is not installed or does not provide the class
[org.lucee.extension.mail.SMTPVerifier]”

In the application log I see entries like
“download failed for groupID:com.sun.mail;artifactId:jakarta.mail;version:2.0.1:pom] from
https://repo1.maven.org/maven2/com/sun/mail/jakarta.mail/2.0.1/jakarta.mail-2.0.1.pom org.apache.http.conn.ConnectTimeoutException”

It seems that lucee-7.1.2.191-windows-x64-installer.exe requires an internet connection to install all components.

Lucee Version: 7.1.2.191
Mail Extension: 1.1.0.17
Environment: Windows 2022
Internet Access: None

Hi Peter,

Thanks for the clear report, that helps a lot.

The installer finishes fine without internet access, but the Mail extension still needs the Jakarta Mail library the first time mail is used, for example when verifying an SMTP server. On a server with no connection that download times out, and you then see “The mail extension is not installed or does not provide the class [org.lucee.extension.mail.SMTPVerifier]”, even though the extension is listed as installed.

I’ve logged this as LDEV-6946 so a 7.1 install works fully offline. In the meantime, a workaround is to install the same 7.1.2.191 build on a machine with internet access, let it fetch the library once, and copy that installation to the offline server, or give the offline server temporary access so the library can be downloaded once.

We’ll update this thread once there’s a fix.

When you say “copy that installation to the offline server”, do you mean backup Lucee, then copy the whole C:\Lucee folder and sub-folders, or C:\Lucee\tomcat\lucee-server folder and sub-folders, or which files specifically in which folders?

I am running 6.2 on several servers and was looking to at least upgrade to 7.1. I was going to try version 8 but the https://github.com/lucee/Lucee/releases/download/8.0.0.304/lucee-8.0.0.304-windows-x64-installer.exe file is absent. I tried replacing the C:\Lucee\lib\lucee-7.1.2.191.jar with lucee-8.0.0.304.jar but there were so many library conflicts.

Hi Peter,

Lucee stores the libraries it downloads in a local Maven folder, by default C:\Lucee\tomcat\lucee-server\mvn. So you don’t need to copy the whole installation. On a machine with internet access, install 7.1.2.191, add the Mail extension and send one test mail (or verify the SMTP server) so the libraries are downloaded. Then stop Lucee on the offline server, copy that mvn folder over to the same location, and start Lucee again.

On 8.0: swapping only the core jar from a 7.1 install isn’t supported, which explains the conflicts you saw. For now please use the full 8.0.0.304 package, for example the Express zip from the release page. We’re looking into the missing Windows installer.

The offline issue itself is fixed for 7.1 under LDEV-6946 and will be in the next 7.1.2 build. I’ll update here once it’s out.

Hi, I have the same problem with a Lucce server that is normally able to download all updates to Lucee and to Extensions:

Could not find the artifact [org.lucee:lucee:7.1.2.191] (type: jar) in any of the configured repositories: [Central Repository:, https://maven-central.storage-download.googleapis.com/maven2/, https://cdn.lucee.org/]. Verify the artifact coordinates and version are correct.

So there seems to be a general issue?

Rüdiger