Hello all, I wish to share session data between some apps that reside on different subdomains. In the past I would make sure each application's application.cfc had the same app name, and this has been working for a while. These are legacy apps and do not use ColdBox.
I set up ColdBox 4 running on ACF 2016 on my dev machine, and changing the application name from the default "
this.name = hash( getCurrentTemplatePath() );" to "
this.name = 'mysite;" works fine. However, when I upload the same code to production (also ACF 2016), I get the following error:
Element CBBOOTSTRAP is undefined in a Java object of type class [Ljava.lang.String;.
The error occurred in application.cfc: line 50
48 : public boolean function onRequestStart( string targetPage ){
49 : // Process ColdBox Request
50 : application.cbBootstrap.onRequestStart( arguments.targetPage );
51 :
52 : return true;
Changing the application name back to "this.name = hash( getCurrentTemplatePath() );" means the app runs fine (but session is not shared).
Any clues? I've read several posts that deal with this general issue, but none that directly address this particular error. I am not using any mappings or anything -- everything is
right there in the webroot (changing that is a topic for another day!).
In case it helps, here is my production server:
Server Details |
Server Product | ColdFusion |
Version | 2016,0,03,300466 |
Edition | Enterprise |
Operating System | Windows Server 2012 R2 |
OS Version | 6.3 |
Update Level | /C:/ColdFusion2016/cfusion/lib/updates/chf20160003.jar |
Adobe Driver Version | 5.1.4 (Build 0001) |
Tomcat Version | 8.0.32.0 |
JVM Details |
Java Version | 1.8.0_72 | Java Vendor | Oracle Corporation | Java Vendor URL | http://java.oracle.com/ | Java Home | C:\ColdFusion2016\jre | Java File Encoding | Cp1252 | Java Default Locale | en_US |
|
And on dev, it's ACF 2016,0,06,308055 on OS X 10.12.6. My JVM is 1.8.0_25. I'd appreciate any help at all! I have tried changing several lines of code, but I keep getting that same error and it all seems to stem from changing the application name from the default.
Thanks in advance!!