COLDBOX_APP_MAPPING not being utilized?

Hi, CB’ers:

We have just recently upgraded an application from CB 3.8 to 4.2. For the most part everything is working fine; however, occasionally and for no apparent reason, the Coldbox application just stops working. Other CFMs are fine.

We are running on the following environment:

· Windows Server 2012

· SQL Server 2008 R2

· Adobe Coldfusion 11 with Update 8

· Apache 2.x

The Coldbox application is a REST API platform that we built. No issues in 3.8. Very strange; however, is we see this message in the Application.log:

“Error”,“ajp-bio-8014-exec-1”,“07/29/16”,“18:30:55”,“1FB2DBF8C48B953B57890DFD2C02C1F2”,"Directory does not existDirectory: D:\APPROOT\CIDNE\cbcommons\models The specific sequence of files included or processed is: D:\APPROOT\CIDNEMobile\wwwroot\index.cfm, line: 277 "

The Coldbox application runs under the CIDNEMobile directory, with an AppMapping of “/mobile”. I’m a bit uncertain as to why it would be looking at the directory that is referenced above. Following is a snippet of what we have in the Application.cfc:

// COLDBOX STATIC PROPERTY, DO NOT CHANGE UNLESS THIS IS NOT THE ROOT OF YOUR COLDBOX APP

COLDBOX_APP_ROOT_PATH = getDirectoryFromPath( getCurrentTemplatePath() );

// The web server mapping to this application. Used for remote purposes or static purposes

COLDBOX_APP_MAPPING = getIniSetting(key=“appMapping”);

// COLDBOX PROPERTIES

COLDBOX_CONFIG_FILE = “”;

// COLDBOX APPLICATION KEY OVERRIDE

COLDBOX_APP_KEY = “”;

/* CUSTOM MAPPING */

this.mappings["/coldbox"] = getDirectoryFromPath(expandPath("/#COLDBOX_APP_MAPPING#/coldbox/junk.jpg"));

this.mappings["/classes"] = getDirectoryFromPath(expandPath("/#COLDBOX_APP_MAPPING#/classes/junk.jpg"));

this.mappings["/models"] = getDirectoryFromPath(expandPath("/#COLDBOX_APP_MAPPING#/models/junk.jpg"));

this.mappings["/modules"] = getDirectoryFromPath(expandPath("/#COLDBOX_APP_MAPPING#/modules/junk.jpg"));

this.mappings["/#COLDBOX_APP_MAPPING#"] = getDirectoryFromPath(expandPath("/#COLDBOX_APP_MAPPING#/junk.jpg"));

Does anybody have any ideas on what may be cause this, and if it could be resulting in the Coldbox application becoming unresponsive? (Note: The appMapping is getting set to “/mobile”)

Cheers!

Kevin S. Anderson

Hi, CB’ers:

We have just recently upgraded an application from CB 3.8 to 4.2. For the most part everything is working fine; however, occasionally and for no apparent reason, the Coldbox application just stops working. Other CFMs are fine.

We are running on the following environment:

<![if !supportLists]>· <![endif]>Windows Server 2012

<![if !supportLists]>· <![endif]>SQL Server 2008 R2

<![if !supportLists]>· <![endif]>Adobe Coldfusion 11 with Update 8

<![if !supportLists]>· <![endif]>Apache 2.x

The Coldbox application is a REST API platform that we built. No issues in 3.8. Very strange; however, is we see this message in the Application.log:

“Error”,“ajp-bio-8014-exec-1”,“07/29/16”,“18:30:55”,“1FB2DBF8C48B953B57890DFD2C02C1F2”,"Directory does not existDirectory: D:\APPROOT\CIDNE\cbcommons\models The specific sequence of files included or processed is: D:\APPROOT\CIDNEMobile\wwwroot\index.cfm, line: 277 "

The Coldbox application runs under the CIDNEMobile directory, with an AppMapping of “/mobile”. I’m a bit uncertain as to why it would be looking at the directory that is referenced above. Following is a snippet of what we have in the Application.cfc:

// COLDBOX STATIC PROPERTY, DO NOT CHANGE UNLESS THIS IS NOT THE ROOT OF YOUR COLDBOX APP

COLDBOX_APP_ROOT_PATH = getDirectoryFromPath( getCurrentTemplatePath() );

// The web server mapping to this application. Used for remote purposes or static purposes

COLDBOX_APP_MAPPING = getIniSetting(key=“appMapping”);

// COLDBOX PROPERTIES

COLDBOX_CONFIG_FILE = “”;

// COLDBOX APPLICATION KEY OVERRIDE

COLDBOX_APP_KEY = “”;

/* CUSTOM MAPPING */

this.mappings["/coldbox"] = getDirectoryFromPath(expandPath("/#COLDBOX_APP_MAPPING#/coldbox/junk.jpg"));

this.mappings["/classes"] = getDirectoryFromPath(expandPath("/#COLDBOX_APP_MAPPING#/classes/junk.jpg"));

this.mappings["/models"] = getDirectoryFromPath(expandPath("/#COLDBOX_APP_MAPPING#/models/junk.jpg"));

this.mappings["/modules"] = getDirectoryFromPath(expandPath("/#COLDBOX_APP_MAPPING#/modules/junk.jpg"));

this.mappings["/#COLDBOX_APP_MAPPING#"] = getDirectoryFromPath(expandPath("/#COLDBOX_APP_MAPPING#/junk.jpg"));

Does anybody have any ideas on what may be cause this, and if it could be resulting in the Coldbox application becoming unresponsive? (Note: The appMapping is getting set to “/mobile”)

Cheers!

Kevin S. Anderson