No Webcontext created by 6.2 on Debian

Preface to say I am a long time Lucee user on Windows and have enough linux experience to get myself in trouble (which may be the case here…it’s been a while)

I’ve set up some debian VMs on proxmox and installed 6.2.0.321 on one of them and MySQL on another. The web & server admins load fine and I was able to create verified datasources pointing at the MySQL vm. So this part of my homelab setup is working fine and seems to indicate I didn’t mess up the install.

I have HOSTS set up on both my windows machine and the webserver to point homeApps.local to 192.168.1.147 but they resolve to the Apache2 Debian default page and http://homeapps.local/index.cfm is a 404.

For the life of me I can’t figure out why server admin isn’t picking up the VHost I set up in server.xml

<Host name="homeApps.local" appBase="webapps">
     <context-path="" docBase="/var/www/sites/homeApps">
<Alias> www.homeApps.local</Alias>
</Host>

My test index.cfm is at /var/www/sites/homeApps/index.cfm

I’ve restarted lucee_ctl multiple times

The only things that appears in server admin is the admin context

http://192.168.1.147:8888/lucee/admin/web.cfm | /opt/lucee/tomcat/webapps/ROOT

Is there something I have to do in linux to get mod_cfml to do it’s magic? Or is it something I’ve missed in setting up Apache2?

Or???

TIA

OS: Linux (6.1.0-33-amd64) 64bit
Java Version: 21.0.6
Tomcat Version: 10.1.39
Lucee Version: 6.2.0.321

Did you look in the Tomcat, Lucee or Apache logs?

Just wondering… in your server.xml host tag configuration I can see a dash inbetween the tags directive and the path attribute. Is that a typo?

<Host name="homeApps.local" appBase="webapps">
     <context-path="" docBase="/var/www/sites/homeApps">
<Alias> www.homeApps.local</Alias>
</Host>

Shouldn’t it be…

<Host name="homeApps.local" appBase="webapps">
     <context path="" docBase="/var/www/sites/homeApps">
<Alias>www.homeApps.local</Alias>
</Host>

Pretty sure that will break or Tomcat ignore the directive. There is also a space precending in the alias value. However, above you are using the context directive Are you using mod_cfml and that directive together? Wouldn’t that be a problem? If you want to deactivate mod_cfml and use another approach of setting up the web context , here is a walkthrough on windows in another (unrelated) post, which in Tomcat is pretty the same on linux:

1 Like

My suggestion is

change everything to lowercase, this is consistent with UNIX/LINUX configurations and overtime will save you hours of headaches.

in /etc/hosts

you should have two or three lines that are like this

::1 homeApps.local
127.0.0.1 homeApps.local
ExternalIP homeApps.local – ie 1.2.3.4 homeApps.local

1 Like

I managed to get rid of the 404 on http://homeapps.local/index.cfm as I hadn’t run a2ensite on the homeApps.conf file. It serves html fine now but is not being parsed by Lucee.

Nothing in Lucee or Apache2 logs but this does occur on every restart of the service in the catalina. And it seems to be context related so probably the reason but there is no other information as to why.

19-Apr-2025 10:40:12.871 SEVERE [main] org.apache.catalina.core. StandardContext . loadOnStartup Servlet [RestServlet] in web
application [] threw load() exception
java. lang. ClassCastException: class lucee.runtime. exp. PageServletException cannot be cast to class
lucee.loader.servlet . jakarta. ServletExceptionlavax (lucee.runtime.exp. PageServletException and
lucee. loader. servlet jakarta . ServletExceptionJavax are in unnamed module of loader java.net. URLClassLoader @18769467)
at lucee.loader.servlet .jakarta.RestServlet.init (RestServlet.java:42)

Probably unrelated but I’ve gotten this errors while using Log Viewer and Log Analyzer plugins

"variable [NAME] doesn't exist;lucee.runtime.exp.ExpressionException: variable [NAME] doesn't exist
/lucee_plugin_directory/loganalyzer/overview.cfm:82
/lucee/admin/plugin/Plugin.cfc:82
/admin/plugin.cfm:83
/admin/web.cfm:521
/admin/web.cfm:515
NAME

Just typos. I can’t copy & paste from a promox VM.

I did have an issue where JAVA_HOME & jre PATH weren’t set up so I fixed that (not sure if that matters)

I tried to set up the context manually per Andreas

/opt/lucee/tomcat/conf/Catalina/homeApps/root.xml

<?xml version='1.0' encoding='utf-8'?>
<Context docBase="/var/www/sites/homeApps">
<watchResource>WEB-INF/web.xml</WatchedResource>
</Context>

/opt/lucee/tomcat/conf/server.xml

<Host name="homeApps.local" appBase="webapps">
<Context path="" docBase="/var/www/sites/homeApps" />
<Alias>www.homeApps.local</Alias>
</Host>

After restarting I get the following error

[CFMLServlet] threw exception
java. lang. ClassCastException: class lucee.runtime. exp. PageServletException cannot be cast to class
lucee loader.servlet jakarta. ServletExceptionlavax (lucee.runtime. exp. PageServletException and
lucee loader.servlet jakarta. ServletExceptionJavax are in unnamed module of loader java.net. URLClassLoader @18769467)
at lucee.loader.servlet.jakarta.CFMLServlet.init(CFMLServlet.java:42)

I just created a new VM, installed apache2 and ran the installer again and got the following error

Error running /opt/lucee/sys/install_mod_proxy.sh -m install -t 8888 -f
etc/apache2/apache2.conf -c /usr/sbin/apachectl -e /usr/sbin/httpd: child
process exited abnormally
Press [Enter] to continue:

I believe this happened on the other VM so not sure if that’s the cause or not

I just ran the install on a new VM running Ubuntu server (previous VM was debian 12) and got exactly the same error.

UPDATE: I just ran the 7 BETA installer on a new VM and it completed without error. So maybe an issue with the 6.x installer?

I’ll now see if the webcontext issue is resolved…

UPDATE 2: Used the 7.0.0.202 installer with exactly the same server VM template (Debian 12/Apache2 ) using default Lucee settings and

IT WORKS. No screwing around…right out of the box.

So I guess there’s something borked in the 6.x installer script for Debian 12 and Ubuntu server 24.05? It’s absolutely repeatable (because I tried installing 6.x over a dozen times)

does the 6.2.1.118-RC installer work?

I only did this fix recently for 6.2.1, same code as 7, so it should be fine

https://luceeserver.atlassian.net/browse/LDEV-5408

Yes! That runs without error. I haven’t tried setting up a webcontext yet but given that 7 Beta worked I’m guessing this will as well. I’ll post back if not.

1 Like