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

Can grails controller render text values twice to a client

In my application, the browser http requests are queued. On http request to server, the client should be notified by server that the request is been accepted (say with http status as 202 or just a message "In Progress"), so that client side queue…
0
votes
2 answers

How can I use a custom PropertyPlaceholderConfigurer in Grails

My project creates war files that get deployed in different tomcat instances. Instead of using properties files in all of these locations and remembering to update the property values in these files we extended Springs PropertyPlaceholderConfigurer…
lmcadory
  • 2,149
  • 3
  • 14
  • 15
0
votes
2 answers

Consuming a RestAPI JSON in grails 2.3.x

I am new to grails and I am learning. I want to consume a webservice API(Rest). I searched for the example but didn't get a good one. My requirement is: The address to consume is eg:localhost:8080/order/createOrder; which will provide the JSON. My…
SudeepShakya
  • 571
  • 3
  • 14
  • 34
0
votes
2 answers

Grails 2.3.4 SQL Exception thrown if project is not cleaned before running

I have a Grails 2.3.4 application that is behaving oddly. When ever I run the project (grails run-app) without first running the command grails clean, I following exception is thrown and the process terminates. 2015-06-10 14:01:43,328 ERROR -…
Xion Dark
  • 3,374
  • 2
  • 15
  • 23
0
votes
1 answer

Grails spock service test not calling service method

I'm seeing some strange behavior in a spock test for a service using Grails 2.3.7. This test works fine: void "create spot order"() { given: def createOrderCommand = newCreateOrderCommand(OrderType.S) when: def orderId =…
0
votes
1 answer

Grails new Domain object with property map not setting property

EDIT: Per my answer below, this seems fixed by a "grails clean". You bang your head in frustration and you overlook the obvious sometimes. For some time we've had the following structure of domain objects: abstract class Company { String…
Trebla
  • 1,164
  • 1
  • 13
  • 28
0
votes
2 answers

secure grails spring security controllers

I am using spring security plugin in my Grails project. In order to secure the URLs, I am using interceptUrlMap. My User and Role classes are User.groovy and Role.groovy respectively. Based on these classes, the s2-quickstart script has generated…
0
votes
1 answer

Preferred package of grails spring security plugin classes

Suppose I want to use Secured annotation of grails spring security core 2.0 plugin, which package should I use: either grails.plugin.springsecurity.annotation.Secured or org.springframework.security.access.annotation.Secured. I'm using the former…
Shashank Agrawal
  • 25,161
  • 11
  • 89
  • 121
0
votes
1 answer

JS and CSS file fails to load when the page is refreshed in grails application which uses Atmosphere Meteor plugin

In my grails 2.3.7 application, I am using atmosphere-meteor 0.8.3. On my home page load, I subscribe the client. And by default I run long-polling; and it works fine. On page refresh, I unsubscribe the client. However, if I refresh the page;…
sSaroj
  • 268
  • 4
  • 18
0
votes
0 answers

Error while running Grails 2.3.7 app

I have grails 2.3.7 installed under C:\Programs Files\Grails\grails-2.3.7, Created an app, while running it, i got this error below: Error occurred during initialization of VM Error opening zip file or JAR manifest missing :…
n92
  • 7,424
  • 27
  • 93
  • 129
0
votes
2 answers

How do I configure mime types in a grails Spock test?

Grails 2.3.10. How can I configure the available mime types for content type negotiation in a Grails Spock test? When I try to tell the controller to produce JSON content, it seems to want to return an HTTP 406 error. I send in the Accept header in…
RMorrisey
  • 7,637
  • 9
  • 53
  • 71
0
votes
0 answers

Error in grails 2.3.7 app while running and cleaning

I have cloned an app from git, grails-clean command was giving the below errors :::::::::::::::::::::::::::::::::::::::::::::: :: UNRESOLVED DEPENDENCIES :: :::::::::::::::::::::::::::::::::::::::::::::: ::…
n92
  • 7,424
  • 27
  • 93
  • 129
0
votes
1 answer

Why I can't get access to action(Spring Security plugin)

I create controlller security and action rights(). class SecurityController { static defaultAction = "rights" def rights() { new Requestmap(url:"/user/enterPage/**", configAttribute: "permitAll").save(flush: true) render…
0
votes
1 answer

how used Grails Spring Security Plugin (Requestmap)

Grails spring security fails to present the login page due to a redirect loop Where I must write this? new Requestmap(url: '/*', configAttribute: 'IS_AUTHENTICATED_ANONYMOUSLY').save();
0
votes
1 answer

How can I find out what test type is being executed?

I've written a plugin to do data migrations under mongodb which inserts test data under a test context (like liquibase does) but the test data is interfering with my functional tests. I was thinking rather than applying the test data during the test…
Shin
  • 181
  • 2
  • 5