OpenBSD Handbook

    Theme
    • Part I. Install & Configure
      • Introduction to OpenBSD
      • Installing OpenBSD
      • The X Window System
      • Networking on OpenBSD
      • System Configuration
      • OpenBSD Basics
      • Managing Software: Packages and Ports
    • Part II. Daily Operations
      • OpenBSD Desktop Environments
      • Multimedia
      • Printing
      • Linux Compatibility
      • Windows Compatibility
      • Games
    • Part III. System Administration
      • Virtualization
      • Storage and File Systems
      • Updating and Upgrading
      • Localization
      • The OpenBSD Boot Process
      • Security
    • Part IV. Networking & Daemons
      • Services
        • Database
          • MariaDB
          • PostgreSQL
          • Redis
          • memcached
        • Directory
          • YP (NIS)
          • LDAP
        • File
          • NFS
          • Samba
        • FTP Services
          • ftpd
          • ProFTPD
          • vsftpd
          • Pure-FTPd
          • TFTP
        • Mail
          • OpenSMTPD Mail Server
          • Dovecot IMAP and POP3 Server
          • Postfix
          • Exim
          • Rspamd
        • Name
          • Unbound DNS Resolver
          • NSD Authoritative DNS Server
          • BIND DNS Server
        • Networking
          • OpenBGPD
          • rad
          • DHCP on OpenBSD
          • slaacd
        • Web
          • Apache HTTP Server
          • nginx Web Server
          • OpenBSD httpd Web Server
          • relayd Reverse Proxy
        • Logging
          • syslogd
        • Monitoring
          • SNMP
        • Remote Access
          • Audit OpenSSH
          • OpenSSH Server
        • File Synchronization
          • rsync
        • Messaging
          • RabbitMQ Message Broker
        • Time
          • NTP Time Synchronization
      • PF
        • pfctl cheat sheet
        • PF Anchors
        • PF Filter Rules
        • PF Forwarding
        • PF Lists and Macros
        • PF Load Balancing
        • PF Logging
        • PF NAT
        • PF Options
        • PF Policies
        • PF Shortcuts
        • PF Tables
      • Advanced Networking
        • High Availability and State Replication
        • Multi-WAN and Policy-Based Routing
        • VPN and Cryptographic Tunneling
        • Classic and Lightweight Tunnels
        • IPv6 at Scale
        • QoS and Traffic Shaping
        • MPLS and Label Distribution
        • Network Services at Scale
        • Virtualization and Host Networking
        • Large-Scale L2 and L3 Design
        • Telemetry, Logging, and Flow Export
        • Hardening and Operational Safety
        • Reference Architectures
        • Troubleshooting Playbooks
      • Serial Communication
    • Part V. Miscellaneous
      • Virtualization Cheat Sheet
      • OpenBSD Cheatsheet
      • How-to Guides
        • Complete the First 30 Minutes After Installation
        • Check Hardware Compatibility Before Installing
        • Bootstrap Wi-Fi Firmware Without Ethernet
        • Set Up OpenBSD as a Laptop or Workstation
        • Configure Laptop Power Management
        • Run OpenBSD as a Virtual Machine Guest
        • Install OpenBSD on a VPS or Cloud Server
        • Install OpenBSD with Full-Disk Encryption
        • Troubleshoot Web Browsers on OpenBSD
        • Create an Administrator Account with doas and SSH Keys
        • Establish a Conservative Security Baseline
        • Manage OpenBSD with Ansible
        • Recover Access and Reset the Root Password
        • Collect OpenBSD Diagnostic Evidence
        • Configure Secure Remote Access with OpenSSH
        • Set Up WordPress on OpenBSD
        • Build Third-Party Software from Ports
        • Use FIDO Security Keys with OpenSSH
        • Build OpenBSD from Source
        • Configure Wi-Fi Roaming and Wired Failover
        • Dual-Boot OpenBSD on a UEFI System
        • Troubleshoot PF, NAT, and Routing
        • Automate OpenBSD Installation with Autoinstall and PXE
        • Route Multiple VLANs with PF
        • Configure a Road-Warrior WireGuard VPN
        • Troubleshoot Package Installation and Update Failures
        • Route IPv6 Networks without NAT
        • Schedule Recurring Maintenance
        • Plan a Docker Workload Migration to OpenBSD
        • Build a Mail Server with OpenSMTPD, Dovecot, and Rspamd
        • Build a Simple Router and Firewall
        • Monitor an OpenBSD System
        • Back Up and Restore an OpenBSD System
        • Configure softraid RAID1
        • Recover an OpenBSD System That Does Not Boot
        • Install Z shell (zsh)
      • OpenBSD for Linux Users
      • OpenBSD for FreeBSD Users
      • OpenBSD for macOS Users
    • OpenBSD FAQ
    • OpenBSD Architectures
      • OpenBSD Package Search

        lucee-6.2.8.20p0

        Package search / Categories / OpenBSD 8.0 release
        โ† Back to search
        OpenBSD branch
        OpenBSD 8.0 releaseCurrent snapshot

        OpenBSD 8.0 release ยท amd64

        JVM-based scripting language for web apps (open-source CFML)

        Project homepage: https://lucee.org/

        Description

        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 fully compatible with the CFML Script and Tag Language. Lucee is a JVM language and runs on the JVM as a servlet and will work with any servlet container (e.g. Apache Tomcat, Eclipse Jetty) or application server (e.g. JBoss AS, GlassFish). This package is setup to run Lucee under Tomcat.

        Package information

        Ports path
        lang/lucee/v6
        Package architecture
        *
        Maintainer
        Stuart Henderson <stu.ports@spacehopper.org>
        Categories
        lang, www
        Available flavors
        None listed

        Ports list build and test dependencies as well as runtime dependencies. pkg_add selects those needed for installation.

        Direct dependencies

        Runtime

        • devel/jdk/21 jdk->=11v0,<22v0
        • www/tomcat/v9

        Build

        • archivers/unzip
        OpenBSD README

        This README contains unresolved ports variables; replace them before using its commands.

        +-----------------------------------------------------------------------
        | Running lucee on OpenBSD
        +-----------------------------------------------------------------------
        
        Configuring Tomcat to support Lucee
        ===================================
        Lucee is a Java-based CFML engine. It runs as a servlet in a container;
        this package is designed to work with the Apache Tomcat servlet container,
        you will need to make a few configuration changes to tomcat to use it.
        If you have not yet modified Tomcat's configuration, this readme includes
        a patch which can be used:
        
        	# patch -d ${CATALINA_BASE}/conf < ${LOCALBASE}/share/doc/pkg-readmes/lucee
        
        Then skip to the next section in this file, "Starting the service
        and online configuration".
        
        If you have already modified Tomcat's configuration and need to edit
        manually, there are two possible ways to proceed.
        
        1. Insert the contents of /var/tomcat/conf/web-lucee.xml in Tomcat's
        ${CATALINA_BASE}/conf/web.xml file. This will need to be kept up-to-date
        with future Lucee releases.
        
         -or-
        
        2. Modify Tomcat configuration to include web-lucee.xml itself; this is
        the method used by the patch below, initial setup is slightly more complex
        but ongoing maintenance is reduced.
        
           a) Change the <Context> line in ${CATALINA_BASE}/conf/context.xml to read
              <Context xmlBlockExternal="false">.
        
           b) Add lines after the first <?xml...?> line at the top of
              ${CATALINA_BASE}/conf/web.xml, so it looks like this:
        
           <?xml version="1.0" encoding="ISO-8859-1"?>
           <!DOCTYPE root [
               <!ENTITY lucee SYSTEM "./web-lucee.xml" >
           ]>
        
           c) Towards the bottom of web.xml, add the CFML-related file extensions
              to the <welcome-file-list> section:
        
        	<welcome-file-list>
        	    <welcome-file>index.cfm</welcome-file>
        	    <welcome-file>index.html</welcome-file>
        	    <welcome-file>index.htm</welcome-file>
        	    <welcome-file>index.jsp</welcome-file>
        	</welcome-file-list>
        
           d) Add "&lucee;" at the bottom of the </web-app> section to include
              the "lucee" xml entity defined above. This tells Tomcat to include
              the contents of the web-lucee.xml file containing the Lucee-related
              settings.
        
        	&lucee;
        	</web-app>
        
        Starting the service and online configuration
        =============================================
        
        # rcctl enable tomcat
        
        - If you need to set JVM options you can do so like this:
        # rcctl set tomcat flags -Xms256m -Xmx1024m -XX:MaxPermSize=128m
        
        # rcctl restart tomcat
        
        - Connect to the administration pages. At first run of a successful new
        installation, you will need to set a password by writing a file
        (${CATALINA_BASE}/lucee/config/server/lucee-server/context/password.txt)
        and importing it.
        
        	http://localhost:8080/lucee/admin/
        
        - The package places the default "welcome" pages in a separate directory,
        ${CATALINA_BASE}/webapps/lucee-default; copy them to ${CATALINA_BASE}/webapps/ROOT
        if you want to see them when you connect to http://localhost:8080/.
        
        - Reference documentation is available at http://localhost:8080/lucee/doc/.
        
        - You can add pages to /var/tomcat/webapps/ROOT to be used for "localhost".
        Additional host configurations can be added to ${CATALINA_BASE}/conf/server.xml.
        Use the localhost configuration as a template; the _tomcat user will need to be
        able to write to <appBase>/ROOT/WEB-INF, so set ownership and permissions
        accordingly.
        
        - Log files are kept in several locations. Consult them if things don't work
        as expected, and don't forget to rotate/archive them as appropriate.
        
        	${CATALINA_BASE}/logs
        	${CATALINA_BASE}/lucee/config/server/lucee-server/context/logs
        	${CATALINA_BASE}/lucee/config/web/*/logs (various dirs, per-context)
        
        Patch to unmodified Tomcat sample configuration
        ===============================================
        
        --- context.xml.orig
        +++ context.xml
        @@ -16,7 +16,7 @@
           limitations under the License.
         -->
         <!-- The contents of this file will be loaded for each web application -->
        -<Context>
        +<Context xmlBlockExternal="false">
         
             <!-- Default set of monitored resources. If one of these changes, the    -->
             <!-- web application will be reloaded.                                   -->
        --- web.xml.orig
        +++ web.xml
        @@ -1,4 +1,8 @@
         <?xml version="1.0" encoding="UTF-8"?>
        +<!DOCTYPE root [
        +    <!ENTITY lucee SYSTEM "./web-lucee.xml" >
        +]>
        +
         <!--
           Licensed to the Apache Software Foundation (ASF) under one or more
           contributor license agreements.  See the NOTICE file distributed with
        @@ -4747,9 +4751,11 @@
           <!-- to use within your application.                                      -->
         
             <welcome-file-list>
        +        <welcome-file>index.cfm</welcome-file>
                 <welcome-file>index.html</welcome-file>
                 <welcome-file>index.htm</welcome-file>
                 <welcome-file>index.jsp</welcome-file>
             </welcome-file-list>
         
        +&lucee;
         </web-app>
        

        Package guides

        • Installing and updating packages

        Package details as JSON

        Report a bug