Issues

Select view

Select search mode

 

NOT YET FIXED! ServletException occurs when mapping is defined with custom CFML resource provider

Fixed

Description

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:

Environment

Last tested on Lucee 5.0.0.153 express edition (and before with Lucee 4.5 and 5.0.0.098)

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

Affects versions

Created 20 January 2016 at 21:27
Updated 17 February 2021 at 21:01
Resolved 1 February 2016 at 13:45

Activity

Show:

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:47
Edited

I tested it on a fresh 5.0.0.174-BETA express version now, and got the following error:

Steps to reproduce:

  1. download latest 5.0 express version

  2. start express version once, so the /webapps/ROOT/WEB-INF/lucee files are created

  3. stop the express version

  4. 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/

  5. 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

  6. 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

  7. 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!

Flag notifications