Open Molnfront opened 12 years ago
I am using cb 3.1.0.
when I add this to the Coldbox.cfc: wirebox = { enabled = true, singletonReload = true, };
I no longer get the binder error. But instead I get:
Railo 3.3.1.000 Error (org.hibernate.hql.ast.QuerySyntaxException) Message User is not mapped [select count(*) from User] Cause org.hibernate.hql.ast.QuerySyntaxException Stacktrace The Error Occurred in /Users/hgjhgjhghj/cloudbees/orm/webapp/Coldbox/system/orm/hibernate/BaseORMService.cfc: line 730 728: // execute query as unique for the count 729: try{ 730: return ORMExecuteQuery( buffer.toString(), arguments.params, true, options); 731: } 732: catch("java.lang.NullPointerException" e){
I removed the if around the methods:
if( userService.count() == 0 && roleService.count() == 0 ){
setupRoles();
setupUsers();
}
So now it sets up the tables in db but then I got a new error:
Railo 3.3.1.000 Error (expression) Message variable [R] doesn't exist Stacktrace The Error Occurred in /Users/hjgjhghgg/cloudbees/orm/webapp/modules/solitary/model/install/Install.cfc: line 62 60: // try and find the role by name 61: var r = roleService.findWhere({name=listGetAt(user.xmlChildren[6].xmlText,x)}); 62: u.addRole(r); 63: } 64:
Don't know what it could be, maybe ACF and Railo handles xml differently.
With an sql dump I could circumvent the xml error. Does any one have a sql dump of the schema and the data that the xml file should create?
I tried solitary on my Railo 3.3.1 installation, with latest stable Coldbox.
Do I have to configure wirebox in some way?
This is the error I got:
Railo 3.3.1.000 Error (expression) Message variable [BINDER] doesn't exist Stacktrace The Error Occurred in /Users/uhjhg/cloudbees/ormtest/webapp/modules/solitary/ModuleConfig.cfc: line 91 89: 90: // wirebox mappings 91: binder.map("SecurityService@Solitary") 92: .to("#moduleMapping#.model.security.SecurityService") 93: .asSingleton();