Hey everybody, I’m running into a strange problem on our first Lucee 6 instance. We’re running 2 projects there, “api-live” and “api-stage” which are basically the same project, but different git branches for production and user testing.
If i use following line in my /api/v2/Application.cfc’s onRequestStart: local.test = createObject('component', 'api.v2.path.to.component')
And dump local.test, getMetaData(local.test) or getComponentMetaData(local.test), all the paths, sources point to “E:\projects\api-live\api\v2\path\to\component.cfc” (live), even tho I’m dumping from “E:\projects\api-stage\api\v2\Application.cfc” (stage) and I cannot figure out why.
Unfortunately I cannot upgrade the Lucee Version yet due to permission
I saw in .CFConfig.json, that “mode” is set to “single”
Both Application.cfc have a unique this.name and this.applicationName
I tried adding an Application.cfc to the root of the project with a unique name too
I tried clearing component, application and function cache in the Lucee Admin
I tried using the new xyz() syntax
Don’t forget to tell us about your stack!
OS: Windows Server 2022 10.0.20348 Java Version: 16.0.2 (from /lucee/jre/release) Tomcat Version: 9.0.62 Lucee Version: 6.1.0.243
We had the same problem. We ended up having to take Lucee out of single mode and that resolved the issue. Next week I will see if I can figure a way to duplicate it and share the results.
In my testing, I was able make things work by clearing the caches in the admin area in a specific order. It would then work for a bit until both sites applications were loaded.
I wasn’t able to find a pattern as to why, but some cfcs would load correctly, while other CFC/functions would load from the other site.
I know this wasn’t exactly helpful in figuring out what is going on, but wanted to share my experience.
On the admin overview page, at the bottom, what does the web context listing look like? (single mode still has lightweight mini web contexts for each site, I know the screenshot is from multi mode, single mode still has them)
I have just updated a server to 6.2.1.122 and are also seeing this problem. We have put server into multi mode to get around it, but am aware that multi mode will be disappearing with version 7.
I know that this does not help, but I just wanted to let people know that others are seeing this too.
OS : Debian 12 Java Version : 21.0.7 (Eclipse Adoptium) 64bit Tomcat Version : 11.0.6 Lucee Version : 6.2.1.122