Questions tagged [lucee]

Lucee is a light-weight dynamic scripting language for the JVM that enables the rapid development of simple to highly sophisticated web applications.

Lucee is a modern dynamic scripting language for the JVM that enables the rapid development of simple to highly sophisticated web applications.

The Lucee language supports multiple development paradigms, including object orientation with inheritance and interfaces, and functional constructs like higher-order functions, closures, map(), and reduce().

The Lucee application server includes built-in functionality, through tags and functions, to address many of the common requirements of web application development. These include session management, image manipulation, PDF creation, XML generation and processing, security, date manipulation, and more.

Lucee versions

Current Stable Version: 5.2.7.62 // Release Date: 4 May 2018

Previous Stable Version: 5.2.6.60 // Release Date: 15 Mar 2018

It is recommended to use the latest stable released version.

Features

Database access

Lucee has built-in support for the following databases:

  • DB2
  • Firebird
  • H2 Database Engine in Embedded and Server Mode
  • Hypersonic SQL Database
  • Microsoft SQL Server
  • MySQL
  • JDBC-ODBC Bridge
  • Sybase
  • Oracle
  • PostgreSQL

Lucee also supports any database for which a JDBC driver is available.

Web services

Lucee has built-in support for calling, and consuming data returned from, existing web services, along with the ability to easily configure and expose web services to be consumed. Lucee supports three types of web services:

ORM

Lucee has built-in support for the object relational mapping (ORM) framework Hibernate, facilitating Hibernate usage from Lucee code without complex and explicit configuration.

Caching

Lucee has built-in support for multiple caching systems, including Infinispan, Ehcache, and Memcached, and can be extended with additional systems.

Cache implementations can be configured within the Lucee server, then used within an application -- both explicitly and implicitly -- for the caching of database results, function call results, external HTTP request results, serialized session storage, and as a flexible backing store for an in-process RAM-based file-system abstraction.

Virtual filesystems

Lucee supports multiple virtual file systems -- built-in abstractions of various local and remote resources -- including zip, HTTP, FTP, S3, and RAM. These allow the Lucee server and developer to treat access to an abstracted resource in the same manner as a local file system.

Sample Lucee code

Lucee is derived from the ColdFusion Markup Language (CFML) and therefore has support for both the tag-based and script-based based versions of CFML:

Tag example

<cfset myVar = "Hello World">
<cfoutput>#myVar#</cfoutput>

Script example

myVar = "Hello World";
echo(myVar);

Both the above examples will assign the string "Hello World" as the value of the variable myVar, then output that value to the response buffer, typically for display in a web browser.

480 questions
16
votes
3 answers

How to log information from inside

I am learning to use . Is there any way I can log some messages or values inside the ? like outside I can use , Is there any way or Tag something like that, i can use to print the messages in log file inside…
CFUser
  • 2,295
  • 5
  • 32
  • 37
13
votes
3 answers

Prime number performance difference ACF vs. Lucee

The following code to find prime numbers greatly differs between Adobe ColdFusion (10) and Lucee (4.5) regarding performance. Tested on the same machine (6C i7 3930k @ 4 GHz, Windows 10 64 Bit, JVM memory settings equal on both CFML engines: JDK7…
Alex
  • 7,743
  • 1
  • 18
  • 38
11
votes
2 answers

Unexpected behaviour with accessors=true on a component

I am trying to use synthesised accessors on a component on Lucee (although this issue seems to be the same on ColdFusion too). Repro code: // Person.cfc component accessors=true { property firstName; property lastName; function…
Adam Cameron
  • 29,677
  • 4
  • 37
  • 78
11
votes
2 answers

How to view undelivered mails in Railo server?

How can I view undelivered mails in railo server? Does it have any undelivered mail folder in server admin? smtp server name and password are provided properly. And my network connection is also good. But I cant see the undelivered mail in ralio…
cfprabhu
  • 5,267
  • 2
  • 21
  • 30
10
votes
1 answer

Lucee randomly generates new sessions when using JQuery’s load() method

I have a web page that you log into which then creates a session variable that’s checked on all subsequent page accesses and if it doesn’t exist or doesn’t match whats recorded against the session ID you get kicked out of the page. Code…
haddow64
  • 676
  • 1
  • 7
  • 24
9
votes
3 answers

Which web frameworks are available for CFML?

Which active CFML based frameworks are available for ColdFusion / Lucee? Please note: This is a community wiki Q&A as it is a question that comes up quite a lot.
John Whish
  • 3,016
  • 17
  • 21
9
votes
1 answer

Reset Lucee Server admin password

I recently installed Lucee and cannot remember the password I set for the server admin (luceee/admin/server.cfm). How do I go about resetting the server admin password?
Alex
  • 463
  • 3
  • 12
8
votes
1 answer

How do I locate a custom tag instantiation in a coldFusion App

I am migrating a very old app (currently running in CF8) to Lucee. But I am running into a problem with what appears to be a custom tag of some sort. I have tried to make sure that all the virtual directories are the same in IIS for both the old…
Lance
  • 3,193
  • 2
  • 32
  • 49
7
votes
1 answer

Using Leigh version of S3Wrapper.cfc Can't get past Init

I am new to S3 and need to use it for image storage. I found a half dozen versions of an s2wrapper for cf but it appears that the only one set of for v4 is one modified by Leigh…
Lance
  • 3,193
  • 2
  • 32
  • 49
7
votes
6 answers

Docs for installing Lucee?

I wish to use an alternative to ColdFusion. Researching Railo, I found the pointers to Lucee. There do not appear to be any docs explaining how to set up a Linux/Apache/Tomcat/MySQL platform for Lucee, and then install Lucee on top of it. I've tried…
6
votes
1 answer

Can onCFCRequest, or a similar function, be used to write data from a cfc to the caller request scope?

I'd like to initiate some logging of requests and, more importantly, queries within my application. Lucee makes this pretty easy, and I'm able to log all queries within any given page run with a few lines of code within the onRequestEnd…
Nicholas
  • 1,974
  • 4
  • 20
  • 46
6
votes
3 answers

Lucee/CF - Clean up comma delimited list

I have a list of items that are not formatted consistently that I need to sort. item 1, item 3.0 ,item 8 , item 1.0 , item 4, item 5, item 6, item 10 Basically, some items could have spaces (multiple even) before or after the comma (,). I…
HPWD
  • 2,232
  • 4
  • 31
  • 61
6
votes
2 answers

How to Dynamically write implicit getters and setters in ColdFusion/Lucee Components?

I want to be able to dynamically write a set of getters and setters in CFML/LUCEE components ( No hardcoded cfproperty tags).
edam
  • 910
  • 10
  • 29
6
votes
1 answer

Lucee - Coldfusion new keyword not working

I am trying to invoke a component using the new keyword but it is not working. The following method below works fine: But when I try to use the…
Yamaha32088
  • 4,125
  • 9
  • 46
  • 97
6
votes
1 answer

Does server.railo exist on a Lucee instance or not?

I have this code: And it outputs top-level keys for coldfusion, java, lucee, os, separator, servlet. Note that railo is not listed there. However if I do this: It then outputs the usual struct one…
Adam Cameron
  • 29,677
  • 4
  • 37
  • 78
1
2 3
31 32