Scott Conklin
04/05/2023, 9:59 PMpublic void function setupSession() {
// set up a default session
variables.userService.defaultUserSession();
}
function before( struct rc = {} ) {
// reset the application
if(structKeyExists(rc, 'resetApp')) {
userService.logout();
}
// user session data
rc["userSession"] = variables.userService.getUserSession();
}
I am getting
Original exception in onSessionStart
The action main.default failed.
Component [Application] has no accessible Member with name [USERSERVICE]
(expression)cfvonner
04/05/2023, 11:16 PMpublic void function setupSession() {
// Get the beanFactory
var bf = variables.framework.getBeanFactory();
var userService = bf.getBean( 'userService' );
...
}