I wish to share session data between some apps that reside on different subdomains (same server). In the past I would make sure each application had the same name in their respective application.cfc. That's been working fine for a while -- people log in at one app; session is shared with the others.
Now we wish to convert one of these apps to ColdBox. So I set up ColdBox 4 running on ACF 2016 on my dev machine. Changing the default Coldbox application name from
this.name = hash( getCurrentTemplatePath() );
to
this.name = 'mysite;'
works fine on the development machine, no issues. But just as soon as 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;
Just as soon as I change the application name back to
this.name = hash( getCurrentTemplatePath() );
the app runs fine with no error (but session is not shared). I think the message about line 50 may be a red herring. I've tried all sorts of modifications there, but nothing changes the original error message short of changing the application name back to what it was.
I've unchecked component caching in the CF admin and restarted (several times) to no avail. I do not know enough about ColdBox to hazard a guess at what might be going on, but I am totally stumped. I do not know why it would work on ACF 2016 on one machine, but not on another. If anybody has any clues, I would really appreciate it! Thanks very much!