grails-2.4

Grails 2.4.2 - ERROR context.ContextLoader - Context initialization failed

痴心易碎 提交于 2019-12-08 09:21:33
问题 I have a Grails 2.4.2 application that runs fine in one environment. Now, we need to set it up in another environment wherein we have some restrictions related to accessing the Maven Repositories. So, I had to make some changes in BuildConfig.groovy file to make the application run fine in the new environment. I have access to the JARs and the local version of code for a custom plugin. I have installed the JARs into my local Maven repository and placed the code files for the custom plugin

Upgrade issue to Grails 2.4.4

帅比萌擦擦* 提交于 2019-12-05 21:46:12
问题 I keep getting an error when starting my Grails application after I upgraded from Grails 2.4.3 to 2.4.4 . The full error can be read here: http://pastebin.com/UXQ34JKD 2014-10-31 16:26:32 ERROR [context.GrailsContextLoaderListener] Error initializing the application: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager':

Mongo CursorNotFound exception in active cursor via Grails domain criteria

被刻印的时光 ゝ 提交于 2019-12-05 02:58:24
I'm using Grails 2.4.4, mongo plugin 3.0.2, MongoDB 2.4.10 using a remote database connection. grails { mongo { host = "11.12.13.14" // A remote server IP port = 27017 databaseName = "blogger" username = "blog" password = "xyz" options { autoConnectRetry = true connectTimeout = 3000 connectionsPerHost = 40 socketTimeout = 120000 threadsAllowedToBlockForConnectionMultiplier = 5 maxAutoConnectRetryTime=5 maxWaitTime=120000 } } } In a part of our application, a service method iterates over a 20,000 user's and sends them an email: Person.withCriteria { // Line 323 eq("active", true) order(

Grails auto-reloading new controller actions

泪湿孤枕 提交于 2019-12-04 07:18:35
I've created new Grails 2.4.3 project created TestController set grails.reload.enabled = true in BuildConfig.groovy run application with grails -reloading run-app My controller action code: def index() { render "test" } When I change the string test to test2 - I see in console (in Eclipse): .................. |Compiling 1 source files And after reloading page I see test2 - ok. But when I try to add new method: def test3() { render "test3" } I see: Why? Why there isn't even the url? Example - action does't exist: Interesting thing is - when I create a whole new controller the index action of

Upgrade issue to Grails 2.4.4

蹲街弑〆低调 提交于 2019-12-04 04:39:34
I keep getting an error when starting my Grails application after I upgraded from Grails 2.4.3 to 2.4.4 . The full error can be read here: http://pastebin.com/UXQ34JKD 2014-10-31 16:26:32 ERROR [context.GrailsContextLoaderListener] Error initializing the application: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested