Grails upgrade from 1.0.4 to 1.1 problems – part 2
Posted by admin - 08/05/09 at 09:05:46 amIf after upgrade to version 1.1 you will be hit by error like this:
... log4j:ERROR Could not read configuration file from URL [file:/C:/GrailsApp/web-app/W java.io.FileNotFoundException: C:\GrailsApp\web-app\WEB-INF\classes\log4j.properties ...
go to web.xml template file in \src\templates\war\ directory of your project and delete lines:
... <context-param> <param-name>log4jConfigLocation</param-name> <param-value>/WEB-INF/classes/log4j.properties</param-value> </context-param> ...
Grails upgrade from 1.0.4 to 1.1 problems – part 1
Posted by admin - 07/05/09 at 02:05:16 pmRecently I have been upgrading Grails application from version 1.0.4 to version 1.1. After that my test fails with error:
No signature of method: roles.beans() is applicable for argument types: (roles$_run_closure1) values: [roles$_run_closure1@b7ad1a]
I found that problem was with fixtures. In version 1.0.4 of Grails code like this:
beans { roleOne(Role) { name = ConfigurationHolder.config.security.role.user } }
works correctly, but after upgrade instant beans{} we should use fixture{} statment:
fixture { roleOne(Role) { name = ConfigurationHolder.config.security.role.user } }
May 7, 2009 | In Grails | No Comments
Powered by WordPress with GimpStyle Theme design by Horacio Bella.
Entries and comments feeds.
Valid XHTML and CSS.