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
3
votes
1 answer

Grails 2.3 compiling issue

I have a Grails 2.3.0 project that uses CXF plugin. With CXF "wsdl2java" I have generated some java files which I have compiled into a JAR file. The JAR file I have put in the "lib" folder of my project. I use some of the types from the JAR in my…
Hoof
  • 1,738
  • 2
  • 17
  • 39
2
votes
0 answers

Intermittent Java Linkage Errors with Grails Release Plugin

I'm hitting occasional Java Linkage errors when using the Grails Release plugin and am completely stumped as to how to resolve the problem. I would appreciate some suggestions. The errors vary but are in the same area. I'm seeing the following types…
John Lear
  • 46
  • 4
2
votes
1 answer

Grails 2.3.9 - Error: ClassNotFoundException: grails.plugin.spock.test.GrailsSpecTestType

Whenever I enter the grails command: test-app I get this error: Error executing script TestApp: java.lang.ClassNotFoundException: grails.plugin.spock.test.GrailsSpecTestType (Use --stacktrace to see the full trace) In my BuildConfig.groovy I…
Igor
  • 1,397
  • 3
  • 24
  • 56
2
votes
0 answers

Grails convert Blob column to deserialize into object

Given below domain class, I want to convert the Blob data into Java object by deserializing the bytes. What is the approach to follow? Do I need to specify any converter to GORM to invoke it after fetching the data from DB? class SpringMessage { …
suman j
  • 6,710
  • 11
  • 58
  • 109
2
votes
3 answers

Method on class [] was used outside of a Grails application controller

Having below grails config: Datasource. environments { development { dataSource { dbCreate = "create-drop" // one of 'create', 'create-drop', 'update', 'validate', '' url =…
suman j
  • 6,710
  • 11
  • 58
  • 109
2
votes
2 answers

Can't run Grails app with mongodb plugin version 3.0.3

I'm trying to upgrade my mongodb plugin from 2.0.1 to 3.0.3. However I keep getting the following error: java.lang.NoClassDefFoundError: com/mongodb/AggregationOptions at java.lang.Class.getDeclaredMethods0(Native Method) at…
Alexander Suraphel
  • 10,103
  • 10
  • 55
  • 90
2
votes
0 answers

Grails Fixtures Plugin: How do I clean up fixtures after every integration test in Grails?

I want all the fixtures I've created for one test to be removed once it's done to keep my tests isolated. Is there a way to iterate over the fixture object and delete the GORM objects that are persisted?
Alexander Suraphel
  • 10,103
  • 10
  • 55
  • 90
2
votes
1 answer

how to check if a service implements an interface in grails

I have an interface "TestInterface" and grails service "TestService" that implements the "TestInterface". But when I test if I have a service that implements the interface like this: application.serviceClasses?.each { serviceClazz -> …
t31321
  • 763
  • 1
  • 7
  • 22
2
votes
2 answers

Redirect / in to a static page in UrlMappings.groovy

I have a Grails 2.3.11 application which has a static html page to load JS web ui developed in ExtJS. I wanted to load the static index page by default by using redirect in UrlMapping.groovy like this: "/"(redirect: '/static/app/index.html') This…
matejk
  • 798
  • 1
  • 14
  • 27
2
votes
1 answer

Query domain class associations in Grails

I have a few domain classes similar to the following: class Position { String code String title static hasMany = [relations: Relation] } class Unit { String code String title static hasMany = [relations: Relation] } class…
thewidgetsmith
  • 194
  • 1
  • 8
2
votes
0 answers

Grails won't read external config file?

I'm on Windows 7. Inside my Grails (2.3.6) app's Config.groovy file I have: grails.config.locations = [ "file:/etc/myapp/env.groovy" ] // fizz.buzz is defined inside env.groovy println "fizz.buzz=${fizz.buzz}" At the root of my D:\…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
2
votes
1 answer

Excude all the unnecessary jar from war file

I am a grails programmer and I want to remove the unnecessary jar files that are included in the war file. There are so many unnecessary jar files included in the war file. Is there any quick solution to do so? Also can you mention the jar files…
Biswas
  • 598
  • 2
  • 16
  • 34
2
votes
1 answer

How can I exclude a plugin from grails default gsp encoding?

I'm working in a grails application that is using default encoding of html for all gsp pages: grails { views { gsp { encoding = 'UTF-8' codecs { expression = 'html' scriptlet = 'html' …
Trebla
  • 1,164
  • 1
  • 13
  • 28
2
votes
0 answers

Grails Spring Security Plugin generating too many exceptions into statcktrace.log which results in out of disk space error

I am facing this problem when i deploy the application into Apache Tomcat in production mode. Apache tomcat version is : 7.0.54 Grails version is : 2.3.1 Java version is : 1.7.0_60 Server : Linux (Ubuntu) Below is the sample of statcktrace.log …
user2346867
  • 31
  • 1
  • 3
2
votes
3 answers

Grails Data Base Migration - dbm-gorm-diff is not working

I am using Grails 2.3.5 with database migration plugin in new project for understand how it is working. But sometimes dbm-gorm-diff provide empty changelog file,even changes is there. For example, i have the person domain class with out any…
Visme
  • 983
  • 8
  • 29
1 2
3
11 12