ModelGlue Config Path

I am trying to use Commandbox to run an old ModelGlue app that I manage. The ModelGlue files are in a shared folder that I have mapped with cfconfig. When I try to run the site it finds the ModelGlue files, but then fails when trying to load the config file.

An error occurred when performing a file operation read on file /var/folders/7p/g_crsl7j20q8xr8sjr3lhpfw0000gn/T/config/ModelGlue.xml

The ModelGlue.xml file resides in a config folder just below my document root, but it appears that it is looking for the config folder in the temp directory used by my JRK. Is there a root path setting that I am missing in Commandbox or cfconfig setup? I am running on OSX 13.4.1 (Ventura) and I have Commandbox set to run ACF 2018 with JDK11, the same as the live site.

Can you provide the full stack trace. That sounds like a permission error of sorts.

Also, can you confirm /var/folders/7p/g_crsl7j20q8xr8sjr3lhpfw0000gn/T/config/ModelGlue.xml is the correct path and that file exists?

Hi Brad. The /var/folders/7p/g_crsl7j20q8xr8sjr3lhpfw0000gn/T/ exists and is the temp folder that JRE is using. The /config/ModelGlue.xml file is in root directory where I launched the Commandbox server.

Here is the complete stack trace:

An error occurred when performing a file operation read on file /var/folders/7p/g_crsl7j20q8xr8sjr3lhpfw0000gn/T/config/ModelGlue.xml.
The cause of this exception was: java.io.FileNotFoundException: /var/folders/7p/g_crsl7j20q8xr8sjr3lhpfw0000gn/T/config/ModelGlue.xml (No such file or directory).

The error occurred in /Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/module/XMLModuleLoader.cfc: line 74
Called from /Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/modules/internal/configuration/controller/ConfigurationController.cfc: line 44
Called from /Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/eventrequest/EventContext.cfc: line 326
Called from /Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/eventrequest/EventContext.cfc: line 253
Called from /Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/eventrequest/phase/Configuration.cfc: line 46
Called from /Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/eventrequest/EventRequestPhase.cfc: line 39
Called from /Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/eventrequest/EventContext.cfc: line 178
Called from /Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/ModelGlue.cfc: line 243
Called from /Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/ModelGlue.cfm: line 83
Called from /Users/dean/Sites/DocuBank/wwwroot/index.cfm: line 41
Called from /Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/module/XMLModuleLoader.cfc: line 74
Called from /Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/modules/internal/configuration/controller/ConfigurationController.cfc: line 44
Called from /Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/eventrequest/EventContext.cfc: line 326
Called from /Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/eventrequest/EventContext.cfc: line 253
Called from /Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/eventrequest/phase/Configuration.cfc: line 46
Called from /Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/eventrequest/EventRequestPhase.cfc: line 39
Called from /Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/eventrequest/EventContext.cfc: line 178
Called from /Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/ModelGlue.cfc: line 243
Called from /Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/ModelGlue.cfm: line 83
Called from /Users/dean/Sites/DocuBank/wwwroot/index.cfm: line 41
72 :
73 :
74 :
75 :
76 : <!—
Resources:
Check the ColdFusion documentation to verify that you are using the correct syntax.
Search the Knowledge Base to find a solution to your problem.
Browser Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36
Remote Address 127.0.0.1
Referrer
Date/Time 11-Aug-23 12:33 PM
Stack Trace
at cfXMLModuleLoader2ecfc1591314384$funcLOAD.runFunction(/Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/module/XMLModuleLoader.cfc:74) at cfConfigurationController2ecfc1128238198$funcLOADINITIALXMLMODULE.runFunction(/Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/modules/internal/configuration/controller/ConfigurationController.cfc:44) at cfEventContext2ecfc1587583796$funcEXECUTEEVENTHANDLER.runFunction(/Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/eventrequest/EventContext.cfc:326) at cfEventContext2ecfc1587583796$funcEXECUTEEVENTQUEUE.runFunction(/Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/eventrequest/EventContext.cfc:253) at cfConfiguration2ecfc722636167$funcLOAD.runFunction(/Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/eventrequest/phase/Configuration.cfc:46) at cfEventRequestPhase2ecfc1707059851$funcSETUP.runFunction(/Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/eventrequest/EventRequestPhase.cfc:39) at cfEventContext2ecfc1587583796$funcEXECUTE.runFunction(/Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/eventrequest/EventContext.cfc:178) at cfModelGlue2ecfc545934202$funcHANDLEREQUEST.runFunction(/Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/ModelGlue.cfc:243) at cfModelGlue2ecfm545934192.runPage(/Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/ModelGlue.cfm:83) at cfindex2ecfm1600541153.runPage(/Users/dean/Sites/DocuBank/wwwroot/index.cfm:41) at cfXMLModuleLoader2ecfc1591314384$funcLOAD.runFunction(/Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/module/XMLModuleLoader.cfc:74) at cfConfigurationController2ecfc1128238198$funcLOADINITIALXMLMODULE.runFunction(/Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/modules/internal/configuration/controller/ConfigurationController.cfc:44) at cfEventContext2ecfc1587583796$funcEXECUTEEVENTHANDLER.runFunction(/Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/eventrequest/EventContext.cfc:326) at cfEventContext2ecfc1587583796$funcEXECUTEEVENTQUEUE.runFunction(/Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/eventrequest/EventContext.cfc:253) at cfConfiguration2ecfc722636167$funcLOAD.runFunction(/Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/eventrequest/phase/Configuration.cfc:46) at cfEventRequestPhase2ecfc1707059851$funcSETUP.runFunction(/Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/eventrequest/EventRequestPhase.cfc:39) at cfEventContext2ecfc1587583796$funcEXECUTE.runFunction(/Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/eventrequest/EventContext.cfc:178) at cfModelGlue2ecfc545934202$funcHANDLEREQUEST.runFunction(/Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/ModelGlue.cfc:243) at cfModelGlue2ecfm545934192.runPage(/Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/ModelGlue.cfm:83) at cfindex2ecfm1600541153.runPage(/Users/dean/Sites/DocuBank/wwwroot/index.cfm:41)

java.io.FileNotFoundException: /var/folders/7p/g_crsl7j20q8xr8sjr3lhpfw0000gn/T/config/ModelGlue.xml (No such file or directory)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(Unknown Source)
at java.base/java.io.FileInputStream.(Unknown Source)
at java.base/java.io.FileInputStream.(Unknown Source)
at coldfusion.vfs.VFSFileFactory.getInputStream(VFSFileFactory.java:235)
at coldfusion.tagext.io.FileUtils.readFile(FileUtils.java:1158)
at coldfusion.tagext.io.FileTag.read(FileTag.java:576)
at coldfusion.tagext.io.FileTag.doStartTag(FileTag.java:393)
at cfXMLModuleLoader2ecfc1591314384$funcLOAD.runFunction(/Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/module/XMLModuleLoader.cfc:74)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:485)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:288)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:830)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:613)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:438)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3627)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3604)
at cfConfigurationController2ecfc1128238198$funcLOADINITIALXMLMODULE.runFunction(/Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/modules/internal/configuration/controller/ConfigurationController.cfc:44)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:609)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:835)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:641)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3549)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3524)
at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:479)
at cfEventContext2ecfc1587583796$funcEXECUTEEVENTHANDLER.runFunction(/Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/eventrequest/EventContext.cfc:326)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:288)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:4175)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:4155)
at cfEventContext2ecfc1587583796$funcEXECUTEEVENTQUEUE.runFunction(/Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/eventrequest/EventContext.cfc:253)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:288)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:830)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:613)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:438)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3627)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3604)
at cfConfiguration2ecfc722636167$funcLOAD.runFunction(/Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/eventrequest/phase/Configuration.cfc:46)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:485)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:288)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:4175)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:4155)
at cfEventRequestPhase2ecfc1707059851$funcSETUP.runFunction(/Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/eventrequest/EventRequestPhase.cfc:39)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:485)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:288)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:830)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:613)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:438)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3627)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3604)
at cfEventContext2ecfc1587583796$funcEXECUTE.runFunction(/Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/eventrequest/EventContext.cfc:178)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:288)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:830)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:613)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:438)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3627)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3604)
at cfModelGlue2ecfc545934202$funcHANDLEREQUEST.runFunction(/Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/ModelGlue.cfc:243)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:554)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:448)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:399)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:372)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:288)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:830)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:613)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:438)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3627)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3604)
at cfModelGlue2ecfm545934192.runPage(/Users/dean/Sites/SharedCode/ModelGlue_3.1.299/ModelGlue/gesture/ModelGlue.cfm:83)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:262)
at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:735)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:565)
at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:4329)
at cfindex2ecfm1600541153.runPage(/Users/dean/Sites/DocuBank/wwwroot/index.cfm:41)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:262)
at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:735)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:565)
at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:555)
at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:43)
at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:162)
at coldfusion.filter.IpFilter.invoke(IpFilter.java:45)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:96)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:60)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62)
at coldfusion.CfmServlet.service(CfmServlet.java:226)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:311)
at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:46)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:47)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:67)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
at org.cfmlprojects.regexpathinfofilter.RegexPathInfoFilter.doFilter(RegexPathInfoFilter.java:47)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:67)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:405)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:67)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
at runwar.undertow.SSLClientCertHeaderHandler.handleRequest(SSLClientCertHeaderHandler.java:144)
at io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:68)
at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:117)
at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.servlet.handlers.SendErrorPageHandler.handleRequest(SendErrorPageHandler.java:52)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:275)
at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:79)
at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:134)
at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:131)
at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:255)
at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:79)
at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:100)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:393)
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:852)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2019)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1558)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1423)
at org.xnio.XnioWorker$WorkerThreadFactory$1$1.run(XnioWorker.java:1282)
at java.base/java.lang.Thread.run(Unknown Source)

So… is that a no, the path does not exist? If ModelGlue is looking in the wrong location for a file, I’d check on a ModelGlue help forum. I don’t know how MG works.

The configuration file is located in the root directory of the website. However, ModelGlue is looking for it in the Java temp directory, where the file is not present. As a result, the error occurs. I have been using the same setup for the last 15 years, but now I am trying to use Commandbox to serve ColdFusion instead of ACF Enterprise. I use a cfmapping for the ModelGlue directory, which is what I added to the Commandbox server as well. It is obviously working, in that it is actually trying to execute the ModelGlue code. It is just this odd issue of looking in the wrong folder. I’m new to Commandbox, and I’m not sure if there’s a specific command to set the document root. That’s why I asked here. Thanks for at least looking at it, Brad; I appreciate it.

Can you tell me where on a Mac Commandbox stores it global server setting, such as cfmappings? I know the per site settings are in the server.json file in my root. Maybe if I look at the global settings, I might find something.

I found the .CommnadBox folder with the global configs. I’ll dig around in there. Thanks again, Brad. Hopefully, I can figure something out. Damn Apple having to go and change their chipset. Grrr.

Right, which is why this sounds like a ModelGlue bug. If I were to guess, MG is not expanding the path.

CommandBox is not a CF engine, it’s a CLI tool and servlet. It can start either Lucee Server or Adobe CF for you. If you just typed server start and didn’t specify a cfengine then you’re using the Lucee CF engine. Is Model Glue compatible with Lucee?

Added where? Are you talking about an alias in the server.json, because that’s just a web server virtual directory, it’s not the same as a CF Mapping. Well, in Lucee it’s not, lol. Adobe CF and their “magic” IIS connectors create a link between the too, but Lucee doesn’t support that.

CommandBox just knows about the web root, which both Adobe and Lucee will point their / CF mapping to. I don’t think that is part of your issue though. it sounds like Adobe has a slightly different behavior than Lucee when it comes to expanding paths. This really has nothing to do with CommandBox per se, It’s just the servlet container.

Again, CommandBox is not a CF engine. It doesn’t have CF mappings (well, not any that matter here, lol). If you’re using Lucee Server and asking where the web based administrator is for Lucee, you can access it easily via the CommandBox server tray icon menu under “Open…” > “Server Admin”. Or just add /lucee/admin/server.cfm to the URL.

There are no CF engine settings like CF mappings in the server.json. There is a CommandBox module named CFConfig which will manage all your CF engine settings for you via a JSON file however.

I really think you’re just hitting a difference in Lucee, but stuck on the fact that you thin it’s CommandBox. If you just want to run your sit eon Adobe CF, then stop the server and restart it like so

start cfengine=adobe

If you’re trying to figure out if the ModelGlue framework is compatible with Lucee, then that’s another question entirely, and it seems the answer is no. At least, not out the box. I would assume if you foud the part of the MG core framework code that loads the config file and pass the relative path through the CF expandPath() BIF, it would work fine.

I highly doubt what you want is in there. Unless you’re talking about the actual server home inside of .CommandBox/servers, but again, just use the web admin for Lucee or Adobe-- whichever you’re using like you always do.

Sorry for the poor vernacular. Been doing CF for 25 years, but feel like a noob with CB. Yes, I realized that Lucee was the default server and had previously configured CB to fire up CF2018 and JVM11 to match my server setting.

Thanks for giving me a better understanding of how CB is working under the hood. I didn’t realize that I could still hit the CF admin, which is great. It will save me from comparing xml files between setups. You have been a great help, Brad. Thanks again.

In that case, see if you had a /config CF mapping on your old servers. You can actually use CFConfig to export your old 2018 server’s config into a .cfconfig.json file, which you can place in the web root to get automatically sucked into the CommandBox serer every time it starts.

Yeah, unfortunately it doesn’t, as it is a physical directory in my document root. Other non-ModelGlue sites run off of the same CF engine on my live server, so having a config mapping would cause issues. That is an interesting idea though, to dump my previous config into a .cfconfig.json file, I will have to give that a try.

On a related note, I am able to hit the CF admin login screen from my CB site, but since it was installed by CB, I have no idea what the password is. I tried a number of the usual suspects, but nothing worked. Is there an easy way to reset that? Or is there a default that is used when CB downloads and installs the engine?

Duh. RTFM Dean!! Never mind about the admin password, I just looked at the docs and found it.

Right, well I’d recommend finding the code in the ModelGlue framework that tries to read the config.
Figure out how it’s supposed to work. Then figure out why it’s not working.

There’s a default for Adobne (commandbox), but not for Lucee. I recommend setting a global env var called cfconfig_adminPassword so all your local servers just automatically have a password of your choice set.

propertyFile set ~/.box.env cfconfig_adminPassword Password123!

Awesome! Thanks, Brad!