Questions tagged [grails-2.3]

Grails is a web application framework that uses Groovy and Java. The framework is oriented around high-productivity application development, and uses common Java technologies such as Hibernate and Spring.

Grails is a coding-by-convention framework that leverages well-established Java frameworks (Spring, Hibernate) to allow programmers to quickly develop web applications. It touts features such as a zero-XML configuration and a typical web-application MVC architecture.

Along with its core, Grails has a plugin architecture and library that can provide developers with common web application features like Security and dynamic UI tools.

Grails 2.3 adds (Not an exhaustive list):

  • Improved Dependency Management
  • Data Binder
  • Binding Request Body To Command Objects
  • Domain Classes As Command Objects
  • Forked Execution
  • Test Runner Daemon
  • Server-Side REST Improvements
  • New Scaffolding 2.0 Plugin
  • URL Mappings May Specify A Redirect
  • Async support
  • Encoding / Escaping Improvements
  • Hibernate 3 and 4 support
  • Controller Exception Handling
  • Namespaced Controllers

More information:

See for more information.

167 questions
39
votes
5 answers

Grails 2.3.0 Auto-reloading not working

I recently upgrade our project to grails 2.3.0. Everything works fine except I've been having problems with auto-reload not working whenever I make changes to our code. This include all projects artefacts - controllers, domain, services, gsps, css…
Emmanuel John
  • 2,296
  • 1
  • 23
  • 30
16
votes
6 answers

Differences between the Grails @Transactional vs. the Spring @Transactional annotations

Well there was a point in the Grails Declarative Transactions. It said: The grails.transaction.Transactional annotation was first introduced in Grails 2.3. Prior to 2.3, Spring's @Transactional annotation was used. But I can't seem to find out…
haedes
  • 612
  • 2
  • 10
  • 23
11
votes
2 answers

"Where query" creates wrong SQL on production

I had to update Spring from 1.2.7 to 2.0, as well Grails from 2.2.0 to 2.3.11. After solving a few typical update problems, I started to build a WAR to the testing server. Everything seemed ok. But after a few deployments I encountered a…
user2040547
  • 141
  • 1
  • 6
10
votes
4 answers

Grails 2.3.7 error when creating a new project

I just a fresh install: I downloaded and installed JDK and GGTS. I then created a new Grails 2.3.7 project and I get the error message below. Is this a known issue or am I doing something wrong? Command terminated with an exception:…
Xion Dark
  • 3,374
  • 2
  • 15
  • 23
10
votes
1 answer

Grails 2.3.1 not running

I have what looks to be exactly the same problem lamented here: Grails 2.3.0 Not Running However none of the tenetative solutions had any effect. When I attempt to run grails clean --stacktrace I get: | Environment set to development. | Error…
Dave
  • 618
  • 6
  • 17
9
votes
2 answers

Grails 2.3 changes css font-face url to "resource:/..."

I want to include a custom font in my CSS like this: @font-face { font-family: TheFont; src: url(fonts/SourceSansProLight.ttf); } The CSS is served with Grails 2.3 and the CSS is modified to become this @font-face { font-family:…
matejk
  • 798
  • 1
  • 14
  • 27
7
votes
3 answers

Grails 2.3.5 generate-all doesn't exist but it's in the documentation

Should it work or has it been removed? Here's the commands that fail: grails create-app my_new_app cd my_new_app grails generate-all my_new_app.Book Results in Script 'GenerateAll' not found, did you mean:.5 1) CreateFilters 2)…
Jason
  • 11,709
  • 9
  • 66
  • 82
7
votes
1 answer

Grails 2.2 to 2.3 - Error running forked test-app: Could not load grails build listener class

I'm migrating my project from grails 2.2 to 2.3 and when I do test-app (on IDEA 12.1.6), I got this error | Error Error running forked test-app: Could not load grails build listener class java.lang.RuntimeException: Could not load grails build…
Thermech
  • 4,371
  • 2
  • 39
  • 60
7
votes
0 answers

Test Grails app with daemon option

I’m using Grails version 2.3 RC2. When running grails> test-app Something, Grails says “running without daemon”. How can I run test-app with a daemon (if it really has this option)?
no1of
  • 71
  • 2
6
votes
2 answers

An integration test fails when running with other integration tests which have transactional enabled

I am having a problem with an integration test which tests several services. I had to disable transactional to get the test working without any transactional related runtime errors. The integration test works fine when running it on its own but when…
6
votes
2 answers

Search records bases on latest record in a hasmany relationship

I have two domains class DomainA { String name Date dateCreated Date lastUpdated static transients = ['email'] static hasMany = [domainBs: DomainB] public String getEmail() { …
MKB
  • 7,587
  • 9
  • 45
  • 71
6
votes
2 answers

Which plugin I should use for db migration for hibernate4?

I am using grails2.3.7 and hibernate4. However, the default database-migration plugin is not working with hibernate4. Is there any other plugin that can do the same thing but support hibernate4? Thanks.
evanwong
  • 5,054
  • 3
  • 31
  • 44
5
votes
1 answer

Grails mixins not working when using JVM forking

Having upgraded to Grails 2.3.5 I found my mixins only work when JVM forking is turned off. All my controllers have code like this import util.MyMixin @Mixin(MyMixin) class MyController { Where MyMixin is defined in src/groovy/util and looks…
Jason
  • 11,709
  • 9
  • 66
  • 82
5
votes
2 answers

How to navigate Grails core source code to better understand framework?

Typically in Spring Source Tool Suite IDE or Eclipse Maven project, if I want to see what a framework/library method is doing behind the scenes, I can ctrl + click on the method name and it will take me to the source code. I understand that a lot of…
bholl
  • 181
  • 1
  • 8
5
votes
5 answers

Grails 2.3 & GGTS 3.4 stop button not working

How to stop grails processes in GGTS 3.4 with grails 2.3. the stop button of GGTS is not stopping the server running and the java.exe processes are still showing in task manager.
CSR
  • 770
  • 1
  • 14
  • 30
1
2 3
11 12