Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Jesse Shaffer
Jesse ShafferPriority
Labels
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 18 March 2016 at 13:41
Updated 28 April 2022 at 02:28
Edit:
I have a process of packaging projects into LARs using Maven + Lucee 5's JSR223 engine. However, the problem is that when compiling this way, request-oriented scopes such as CGI, FORM, and URL do not seem to be available in the compiled templates. There needs to be a flag for the JSR223 engine that tells it to recognize these scopes.
Original Description:
I have a component in a
.lucee
file that is compiled and loaded from a.lar
file, with the following function:public function getLoginToken() { if (!cgi.auth_user.isEmpty()) { return javaNew("org.apache.shiro.authc.UsernamePasswordToken") .init(hash(cgi.auth_user,"md5"), cgi.auth_user); } }
Calling that function, however, results in:
Lucee 5.0.0.219-RC Error (expression) Message variable [cgi] doesn't exist
That error is not present if I am using the component in source form, not loaded from a .lar file.