Restarting tomcat on latest Lucee with the s3 extension enabled causes web contexts to fail.

Description

We have a problem using Lucee and the Amazon S3 Extension.

After we install the extension we can access the web context that also has an s3 mapping and load content via that mapping with no problem.

However, when we restart tomcat we get a blank page on that same context, and an error in the Application.log.

Then, without restarting tomcat, if we change the version of the S3 extension from within lucee/admin to a different version (for example either from 0.9.4.119 to 0.9.4.116, or from 0.9.4.116 to 0.9.4.119 ) we can connect to that context.

This is the error we get in the application.log :

error

"ERROR","ajp-nio-8009-exec-1","10/21/2019","11:48:18","","configuration;Request Error: Invalid class name: org.jets3t.service.utils.RestUtils$ConnManagerFactory;lucee.runtime.exp.PageRuntimeException: Request Error: Invalid class name: org.jets3t.service.utils.RestUtils$ConnManagerFactory
at org.jets3t.service.S3Service.listAllBuckets(S3Service.java:1461)
at org.lucee.extension.resource.s3.S3.list(S3.java:260)
at org.lucee.extension.resource.s3.S3.get(S3.java:600)
at org.lucee.extension.resource.s3.S3.exists(S3.java:453)
at org.lucee.extension.resource.s3.S3Resource.exists(S3Resource.java:320)
at lucee.runtime.config.ConfigWebUtil._getExistingFile(ConfigWebUtil.java:382)

 

This may be related to org.lucee.jets3t-0.9.4.0006L.jar which uses:

org.lucee.httpcomponents.httpclient;bundle-version=4.5.2

There is a bug in HttpClient 4.5.2 that reports the same error we are seeing. (https://issues.apache.org/jira/browse/HTTPCLIENT-1727)

Modifying the extension-s3 MANIFEST.MF to specify the httpclient org.lucee.httpcomponents.httpcore;bundle-version=4.5.3 didn't work

Also, modifying the extension-s3 MANIFEST.MF to specify the following didn't work:
org.lucee.httpcomponents.httpcore;bundle-version=4.4.10,
org.lucee.httpcomponents.httpclient;bundle-version=4.5.6

(org.lucee.httpcomponents.httpcore;bundle-version=4.4.10, org.lucee.httpcomponents.httpclient;bundle-version=4.5.6 are installed)

We see in the logs org-lucee-httpcomponents-httpcore-4-4-4.jar and org-lucee-httpcomponents-httpclient-4-5-2.jar

Application.log

"INFO","Thread-567","10/22/2019","13:22:22","lucee.runtime.CFMLFactoryImpl","Reset 2 Unused PageContexts"
"INFO","ajp-nio-8009-exec-2","10/22/2019","13:22:24","OSGi","add bundle:C:\lucee\tomcat\lucee-server\bundles\com.mysql.cj-8.0.15.jar"
"INFO","ajp-nio-8009-exec-2","10/22/2019","13:22:24","OSGi","start bundle:com.mysql.cj:8.0.15"
"INFO","Thread-631","10/22/2019","13:22:45","lucee.runtime.CFMLFactoryImpl","Reset 2 Unused PageContexts"
"INFO","ajp-nio-8009-exec-3","10/22/2019","13:23:25","OSGi","add bundle:C:\lucee\tomcat\lucee-server\bundles\s3.extension-0.9.4.122-SNAPSHOT.jar"
"INFO","ajp-nio-8009-exec-3","10/22/2019","13:23:25","OSGi","start bundle:s3.extension:0.9.4.122-SNAPSHOT"
"INFO","ajp-nio-8009-exec-3","10/22/2019","13:23:25","OSGi","add bundle:C:\lucee\tomcat\lucee-server\bundles\org.lucee.bouncycastle.bcprov-1.52.0.jar"
"INFO","ajp-nio-8009-exec-3","10/22/2019","13:23:25","OSGi","start bundle:org.lucee.bouncycastle.bcprov:1.52.0"
"INFO","ajp-nio-8009-exec-3","10/22/2019","13:23:25","OSGi","add bundle:C:\lucee\tomcat\lucee-server\bundles\org.lucee.jets3t-0.9.4.0006L.jar"
"INFO","ajp-nio-8009-exec-3","10/22/2019","13:23:25","OSGi","start bundle:org.lucee.jets3t:0.9.4.0006L"
"INFO","ajp-nio-8009-exec-3","10/22/2019","13:23:25","OSGi","add bundle:C:\lucee\tomcat\lucee-server\bundles\org-lucee-httpcomponents-httpcore-4-4-4.jar"
"INFO","ajp-nio-8009-exec-3","10/22/2019","13:23:25","OSGi","start bundle:org.lucee.httpcomponents.httpcore:4.4.4"
"INFO","ajp-nio-8009-exec-3","10/22/2019","13:23:25","OSGi","add bundle:C:\lucee\tomcat\lucee-server\bundles\org-lucee-httpcomponents-httpclient-4-5-2.jar"
"INFO","ajp-nio-8009-exec-3","10/22/2019","13:23:25","OSGi","start bundle:org.lucee.httpcomponents.httpclient:4.5.2"
"INFO","ajp-nio-8009-exec-3","10/22/2019","13:23:25","OSGi","add bundle:C:\lucee\tomcat\lucee-server\bundles\jackson-core-asl-1.9.13.jar"
"INFO","ajp-nio-8009-exec-3","10/22/2019","13:23:25","OSGi","start bundle:jackson-core-asl:1.9.13"
"INFO","ajp-nio-8009-exec-3","10/22/2019","13:23:25","OSGi","add bundle:C:\lucee\tomcat\lucee-server\bundles\jackson-mapper-asl-1.9.13.jar"
"INFO","ajp-nio-8009-exec-3","10/22/2019","13:23:25","OSGi","start bundle:jackson-mapper-asl:1.9.13"
"INFO","ajp-nio-8009-exec-3","10/22/2019","13:23:25","OSGi","add bundle:C:\lucee\tomcat\lucee-server\bundles\java.xmlbuilder-1.1.0.jar"
"INFO","ajp-nio-8009-exec-3","10/22/2019","13:23:25","OSGi","start bundle:java.xmlbuilder:1.1.0"

 

Environment

tomcat 8.5 latest
tomcat 9.0.27 (latest)
Java 8 (latest openjdk)
Java 11 (built in with lucee installer)
Lucee 5.3.4.54-RC
Lucee 5.3.3.62 (release version)

OS Windows Server 2016 (10.0) 64bit

Status

Assignee

Unassigned

Reporter

steve duke

Affects versions

5.3.4.54
5.3.3.62

Priority

New
Configure