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

How can I pass Java System Properties to the JVM when executing "run-app" in Grails 2.3.1

How can I pass Java System Properties to the JVM when executing "run-app" in Grails 2.3.1? When running "grailsw run-app" two JVM are started. The Grails Console and the tomcat container running my Grails Application. I have tried appending them…
Hugh Brien
  • 91
  • 1
  • 7
4
votes
1 answer

Does Grails 2.3.2 support java8

I have a grails application which is running properly with jdk1.7.0_72 and tomcat-7.0.47 Can I use jdk1.8.0_77 insted of jdk1.7.0_72?
Aniket Bhatt
  • 105
  • 1
  • 10
4
votes
1 answer

Data binding not working if index is greater than 255

I am working on a application using grails version 2.3.9. There I am rendering a list with check-box. User can select any row(s) and submit the page. And at server side I am using command object to bind the data. My command…
MKB
  • 7,587
  • 9
  • 45
  • 71
4
votes
1 answer

Grails Spring Security sample application not working

I got grails Spring security sample application from https://github.com/grails-plugins/grails-spring-security-core I did not change anything, I am getting below error: 2014-06-16 17:10:00,397 [localhost-startStop-1] ERROR context.ContextLoader -…
Sun
  • 3,444
  • 7
  • 53
  • 83
4
votes
1 answer

Grails 2.3.6 Scaffolded index page throws ArrayIndexOutOfBoundsException

I have a grails application which is failing at runtime in a cryptic way (cyptic to me anyway) with a ArrayIndexOutOfBoundsException when I visit the scaffolded /imca2/imcaReferral/index. * now edited to put solution at end * There are about a dozen…
4
votes
2 answers

Grails 2.3 IntegrationSpec cannot be transactional false

I upgrade to Grails 2.3 recently and try to migrate all old tests to spock integration test. But it fails at cleanup because my test is non-transactional. The Grails doc says test can be non-transactional, but we need to handle it manually, but it…
xat
  • 85
  • 2
  • 5
3
votes
1 answer

Grails 2.3 Error initializing the application: No bean named 'urlMappingsTargetSource' is defined

I am using Grails 2.3.11. In BootStrap.groovy I call: def ctx = servletContext.getAttribute(ApplicationAttributes.APPLICATION_CONTEXT) HotSwappableTargetSource ts = ctx.getBean("urlMappingsTargetSource") I am getting a…
eamon316
  • 101
  • 7
3
votes
2 answers

Grails 2.3 integration test behaving badly - ServletContext must not null

I've seen a few posts about issues with Grails 2.3.x and integration testing, but nothing has helped my situation yet, so here goes: I want to test my Grails services against a real live database (Oracle) and so I wrote some integration tests in…
3
votes
0 answers

How do you use Grails asset pipeline and resources plugins together?

I am trying to build a Grails 2.3.8 application using the new asset-pipeline plugin (because it is much easier to integrate with sass), but I also need to pull in a plugin (one of my own but used by other applications) that uses the resources…
DaveLC
  • 31
  • 2
3
votes
1 answer

Export plugin broken in Grails 2.3.7

We recently encountered a problem with the excel-export plugin with Grails 2.3.7. We've tried both 0.1.4 and 0.1.6, and can recreate the issue in a couple of lines. import pl.touk.excel.export.WebXlsxExporter def headers = ['Name',…
janDro
  • 1,426
  • 2
  • 11
  • 24
3
votes
1 answer

grails spring security rest plugin

I'm trying restful spring security rest plugin from https://github.com/dmahapatro/grails-spring-security-rest-sample.git I upgrade grails to 2.3.7 and spring security rest to 1.3.4. And all running smoothly. I'm using postman for testing the rest…
didinj
  • 31
  • 4
3
votes
1 answer

Grails 2.3 domain class save crashes application

I have created a Grails-based web application and it crashes on startup if I attempt to save anything in the BootStrap.groovy file. If I comment out all of the save() statements in the BootStrap.groovy file then the application starts and all of the…
thewidgetsmith
  • 194
  • 1
  • 8
3
votes
3 answers

Gsp pages preserve html tags when replacing with string

I am using grails 2.3 ${params?.query?name.replace(params.query,''+params.query+''):name} In the above statement of a gsp page, i want to highlight the name property if params.query value is available. But the generated code…
CSR
  • 770
  • 1
  • 14
  • 30
3
votes
1 answer

Cannot install Grails plugin with Eclipse (Grails 2.3.1)

i have Grails 2.3.1. when i try to install new plugins , i have the following console message : Since Grails 2.3, it is no longer possible to install plugins using the install-plugin command. Plugins must be declared in the…
Abdennour TOUMI
  • 87,526
  • 38
  • 249
  • 254
3
votes
1 answer

Grails 2.2 to 2.3 - jersey jaxrs plugin dependencies could not be resolved

I'm migrating my project from grails 2.2 to 2.3 and everything work fine except jaxrs plugin My BuildConfig.groovy looks like: ... grails.project.dependency.resolver = "maven" grails.project.dependency.resolution = { plugins { compile…
Thermech
  • 4,371
  • 2
  • 39
  • 60
1
2
3
11 12