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
1
vote
1 answer

Grails 2.3: Caching http tags for serving static content

We work on a web application in Grails 2.3.5. It comprises of web service with REST API. Web UI is developed in ExtJS and packaged into Grails war file (in web-app). Web UI is bootstraped by loading a static index.html that loads css, js files and…
matejk
  • 798
  • 1
  • 14
  • 27
1
vote
1 answer

Deploy grails 2.3.4 to heroku - Error loading DataSource.groovy

I want to deploy my grails app to heroku. I have created a stack and am now at the stage where I want to push it: git push heroku master However, I receive that: Done precompiling AST Transformations! | Compiling 3 source files …
Carol.Kar
  • 4,581
  • 36
  • 131
  • 264
1
vote
1 answer

Unable to resolve Grails custom validator issue

I am using spring security core plugin in my grails project and the Person domain looks something like this. class User { transient springSecurityService //Mandatory Fields String employeeId String firstName String lastName String password String…
1
vote
3 answers

Upgrading from Grails 2.1.0 to 2.3.7 with postgres test-app is breaking

I keep getting this error at the end of a test-app. Error Error executing script TestApp: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested…
zeitgeist
  • 13
  • 4
1
vote
1 answer

OAuth 2.0 for Grails without Spring security

I am currently implementing Shiro-Authentication along with OAuth for Google SignIn. It all works great and lets me authenticate a gmail account against a users email in my database. My build config looks as follows: //User roles and…
1
vote
1 answer

Custom CSS and JS in Grails plugins

I am building a Grails plugin (grails-myorg.zip) that will contain reusable code/artifacts that should be used by every Grails app in our organization. This includes custom CSS/JS files that help give our apps a consistent look-and-feel. I'm…
1
vote
2 answers

Grails maven-install not working on Windows 7

I've installed grails-2.3.6 and Maven 3.2.1 on my Windows 7 machine. If I check to see that Maven is set up correctly, I get the following command-line output: D:\>mvn --version Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9;…
1
vote
2 answers

Prevent bootstraping of data in grails data source update mode

How to prevent bootstraping of data in grails app. when we configured our DataSource.groovy like this development { dataSource { dbCreate = "update" url = "jdbc:mysql://localhost:3306/test" pooled = true …
Tushar Saxena
  • 345
  • 4
  • 15
1
vote
2 answers

Grails: Unable to generate views

This is a very basic thing and I have no idea why am not able to do this. I am using Grails 2.3.5 I have a domain class com.trail.AuditTrail and I want it scaffolded views. So, here are the steps I followed: ran grails create-controller…
rajugaadu
  • 686
  • 2
  • 17
  • 37
1
vote
3 answers

Repetitive method name/signature for method compilation error when using @I18nFields

I get repetitive method name/Signature compilation failure when i try to use i18nFields in my domain class to support multiple languages. Grails Version : 2.3.7 ( I tried with 2.3.4 and got the same issue and upgraded) Documentation from Grails…
user3405231
  • 13
  • 1
  • 3
1
vote
1 answer

How to resolve issue with Hibernate plugin after upgrading from grails 2.0.4 to 2.3.6

I have upgraded my grails app from 2.0.4 to 2.3.6, I have hibernate dependency as follows plugins{ compile ":hibernate:2.2.5" } When running, it gives me error like…
n92
  • 7,424
  • 27
  • 93
  • 129
1
vote
1 answer

GORM Grails 2.3.5 assigned id not persisting, overwritten by auto-generated id

I have a class as: class Facebook { long id String username String email String first_name String last_name Date birthday String gender String link static hasMany = [friends: FacebookFriend] static constraints = { …
Lostlinkpr
  • 1,453
  • 2
  • 12
  • 13
1
vote
1 answer

GGTS (3.4.0) doesn't work with grails 2.3.3 on Mac OS X (10.7.5)

I can't get GGTS (3.4.0) to work with grails 2.3.3, java 1.7.0_u45 and groovy 2.1. I'm using Mac OS X 10.7.5. Everything works fine in Terminal, i.e. I can create projects (create-app), run them (run-app), clean-all, etc. But those commands just…
Tomato
  • 772
  • 8
  • 17
1
vote
1 answer

Grails 2.3.4 generated scaffolding validation

I am trying to understand how Grails 2.3.4 generated scaffolding methods perform validation. For instance this is what was generated for my Club domain save method: def save(Club clubInstance) { if (clubInstance == null) { notFound() …
bholl
  • 181
  • 1
  • 8
1
vote
0 answers

Grails - building modularized project with maven

I am developing grails 2.3.4 application and I'm trying to add maven (3.1.1) for build purposes. I do it so because my project is modularized (2 plugins, 1 app - for now, there will be many more plugins later) and I would like to have tool that…
Tom
  • 181
  • 1
  • 8