Questions tagged [grails-2.4]

This is the release of version 2.4 of Grails, a dynamic web application framework built on Java and Groovy, leveraging best of breed APIs including Spring, Hibernate and SiteMesh.

Grails is a dynamic web application framework built on Java and Groovy, leveraging best of breed APIs including Spring, Hibernate and SiteMesh.

Se also:

116 questions
11
votes
4 answers

Upgrading grails from 2.1.1 to 2.4.3

I am upgrading a grails app from 2.1.1 to 2.4.3 and solving errors along the upgrade is a never ending story. Now I am stuck at this point. Any ideas how to solve this? Thanks! C:\workspace\grails_apps\monitoring>grails run-app | Running Grails…
user955732
  • 1,330
  • 3
  • 21
  • 48
8
votes
1 answer

Mongo CursorNotFound exception in active cursor via Grails domain criteria

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 =…
Shashank Agrawal
  • 25,161
  • 11
  • 89
  • 121
8
votes
1 answer

How to write a spock unit test case for traits in grails 2.4?

I am using Traits for making my controllers DRY. I want to unit test the Trait class using Spock. Here is my sample trait and Spock test case respectively: trait SomeTrait { public void checkSomething (Closure c ){ // Do some operation …
8
votes
3 answers

Upgrade issue to Grails 2.4.4

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…
Brandon Wagner
  • 893
  • 9
  • 27
8
votes
1 answer

Grails 2.4.3 fails to reload controller or service

I have upgraded a Grails 2.3.8 project to 2.4.3. In 2.3.8 we had problems with forked execution, so I have disabled it. Now, when I enable it, and try to reload a changed service or controller class, I get error like these: 2014-09-25 19:50:37,043…
Bámer Balázs
  • 169
  • 1
  • 9
6
votes
3 answers

Grails auto-reloading new controller actions

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…
Xeon
  • 5,949
  • 5
  • 31
  • 52
5
votes
1 answer

How to import jQuery DataTables into Grails 2.4.4

I have a Grails 2.4.4 app and am trying to implement a GSP that leverages a jQuery DataTable. I see there is an old DataTable plugin but it looks unmaintained and incompatible with Grails 2.x. Not to mention, there ought to be a way to simply…
smeeb
  • 27,777
  • 57
  • 250
  • 447
4
votes
4 answers

Grails - Forked Grails VM exited with error when compiling

It happens when grails tries to compile the project, when --stacktrace and --verbose are used it shows the same output. I tried to reinstall the plugins and grails. I'm using grails 2.4.3 Here's the error: Running without daemon... Compiling 230…
3
votes
2 answers

How to get Authenticated with spring security rest plugin in Grails

I'm using Grails version 2.4.3 . I am creating an application that supports RESTful APIs. Since access to these APIs should be authenticated , I tried out the Spring Security REST plugin. I checked out this example and what I could understand is ,…
user4260260
3
votes
1 answer

Grails 2.4.3 number of unit tests incorrect

I created a new grails app, with an empty controller that just renders "hello". Then i created a bunch of unit tests that just verify that it says hello, basically this x 4: void "test something"() { when: controller.index() then: …
Charlotte Tan
  • 2,452
  • 2
  • 20
  • 24
3
votes
0 answers

Remove flash object from session Grails

I want to remove the flash object from the session in Grails Application. I am doing with session.removeAttribute('org.codehaus.groovy.grails.FLASH_SCOPE') in the filter but it is throwing the following error:…
Biswas
  • 598
  • 2
  • 16
  • 34
2
votes
4 answers

Fetching some value from message.properties in Grails

Want to fetch a value from message.properties file in grails in a job , how can I do that ?? My Job: def execute() { // execute task List emails = NayaxUser.findAllByEmailSent(false)*.username emails.each {emailAddress-> …
Nikhil Sharma
  • 2,221
  • 6
  • 25
  • 31
2
votes
2 answers

How to register eureka client from Grails on eureka server in Spring boot

I want to register my eureka client that is in Grails 2.4.4 on a eureka server which is in spring boot. I already have registered another eureka service from spring boot on the same eureka server and it is working fine. When I run grails app, it…
Pawan Tiwari
  • 518
  • 6
  • 26
2
votes
2 answers

Grails 2.4.2 bean spring bean injection

Sample app located here : https://github.com/rushidesai1/Grails2_4_2_BeanIssue Question: In resources.groovy if we declare a bean like this beans = { testObject(TestObject){bean -> bean.scope = "prototype" map = new HashMap() //…
2
votes
1 answer

Grails - jQuery UI Autocomplete not working

I'm trying to use jQuery UI Autocomplete in my input field. This is my code in controller. import grails.converters.* class SomeController { def someClassList = { def list1 = SomeClass.list() def scList = [] list1.each…
monty_bean
  • 494
  • 5
  • 25
1
2 3 4 5 6 7 8