Issues
- NOT YET FIXED! ServletException occurs when mapping is defined with custom CFML resource providerLDEV-700Resolved issue: LDEV-700Michael Offner
- Make retry settings for email sending configurableLDEV-698Michael Offner
- cfdump eval throws wrong error when evaluation failedLDEV-696Resolved issue: LDEV-696Michael Offner
NOT YET FIXED! ServletException occurs when mapping is defined with custom CFML resource provider
Description
Environment
Last tested on Lucee 5.0.0.153 express edition (and before with Lucee 4.5 and 5.0.0.098)
relates to
Details
Assignee
Michael OffnerMichael OffnerReporter
Paul KlinkenbergPaul KlinkenbergPriority
NewFix versions
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Details
Details
Assignee
Reporter
Priority
Fix versions
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Activity
Zac Spitzer14 February 2021 at 19:28
, have you tried the support for installing cfml resource extensions?
https://docs.lucee.org/guides/lucee-5/extensions.html#cfml-based-virtual-file-system
Paul Klinkenberg1 February 2016 at 14:50
By the way, I do not have any option to re-open the issue, afai see.
Paul Klinkenberg1 February 2016 at 14:47Edited
I tested it on a fresh 5.0.0.174-BETA express version now, and got the following error:
Steps to reproduce:
download latest 5.0 express version
start express version once, so the /webapps/ROOT/WEB-INF/lucee files are created
stop the express version
copy the files from https://github.com/paulklinkenberg/lucee-azure-provider/tree/master/WEB-INF/lucee into /webapps/ROOT/WEB-INF/lucee/components/ and /webapps/ROOT/WEB-INF/lucee/lib/
Add the resource provider to /webapps/ROOT/WEB-INF/lucee/railo-web.xml.cfm like so: https://github.com/paulklinkenberg/lucee-azure-provider/blob/master/WEB-INF/lucee/example%20lucee-web.xml.cfm#L13
Add a resource mapping to /webapps/ROOT/WEB-INF/lucee/railo-web.xml.cfm like so: https://github.com/paulklinkenberg/lucee-azure-provider/blob/master/WEB-INF/lucee/example%20lucee-web.xml.cfm#L30-L34
start the express version again
Michael Offner1 February 2016 at 13:45
i will set this ticket to solved, if it does not work for you please reopen.
Paul Klinkenberg28 January 2016 at 19:00
I will check it as soon as the snapshot build has completed. Awesome!
I have created a CFML Resource Provider for the "blob storage" of Microsoft Azure, which is kind of the same thing as the S3 resource. See the (debug) version here: https://github.com/paulklinkenberg/lucee-azure-provider
When I use this resource provider by adding a mapping to it in the lucee-web.xml.cfm, the web context does not start up anymore.
lucee-web.xml.cfm:
The error which is thrown for any call to the web context is:
A workaround for this, is to remove the mapping from the lucee-web.xml.cfm file, and add it on the fly for each request in Application.cfc, by using this.mappings.
Unfortunately, that workaround only works if the resourceProvider.cfc file has been instantiated before the mapping is created, as can be seen in this example Application.cfc, or the test code at https://github.com/paulklinkenberg/lucee-azure-provider/blob/master/test/Application.cfc: