How To Make Lucee "Look in the right folder"

I’ll preface this by saying that I am pretty new to server settings in general, not just Lucee settings.

Today I took a server out of our main pool to upgrade it from to to At a point when I thought the upgrade had completed, I restarted Lucee in Lucee-Tomcat Service Control. When I tried to get back into the Lucee Server Admin, it said that I didn’t have a password stored. Ruh-roh. Upon adding the password in the appropriate place and importing, I found out that all of our server settings were gone (datasources, mappings, etc.). I exported the settings from another prod server using CommandBox and imported into the problematic server and again restarted Lucee. The mappings now look good but I have the following problem with the server. The “root” folder appears to be one level too low. When an Application.cfm file references “/child1/targetFile.cfm,” it looks for “/parent/child2/child1/targetFile.cfm” rather than “/parent/child1/targetFile.cfm”. The Application.cfm file in reference is in “/parent/child2”. There is a mapping for “/child1” that directs to the actual Windows path for “child1”. What do I need to do to get the path correct again?

OS: Windows Server 2012 R2 Datacenter
Java Version: 1.8.0_181 (Oracle Corporation) 64bit
Tomcat Version: Apache Tomcat/8.5.33
Lucee Version: Lucee (attempting to upgrade to

Depends on how you setup lucee, one way is to edit the lucee\tomcat\conf\server.xml file:

<Host name="" appBase="webapps">
     <Context path="" docBase="/var/sites/" />
     <Context path="/admin" docBase="/var/sites/" />

Thanks for the reply Michael. I found out it was pilot error. Somehow I had managed to remove the leading slash on that path on that machine. (face_palm)

1 Like