onSessionEnd does not respect per-app mappings?
Application.cfc - I setup my timeout to 2 seconds, so I can see the onSession end errors come up quicker.
Then I have an index file with the following:
This is mappings Test.
I execute the page, the page executes the component and dumps it correctly. After two seconds I fire up the cf admin and this is what the logs say:
OnSessionEnd : coldfusion.runtime.CfJspPage$NoSuchTemplateException: Could not find the ColdFusion Component or Interface coldbox.system.beans.requestContext.
Now, if I am totally wrong on this one, please comment. However, I do believe the correct behavior would be that onSessionEnd() would respect my per-application mappings. Do you agree?
To solve this, I have to actually create a CF Mapping in the administrator and then it works. But it gets weirder!! Let's say my application is not in the root but here:
http://localhost/testing/appmappingTest/index.cfm
I placed a cfc under /testing/cfc/requestContext.cfc. I then modified the code to use this create statement:
And again, it breaks, so it can do absolute references to cfc's either. I moved it to inside the test application and then it works. So there you go, I am totally confused in this behavior. Any comments??