Questions tagged [grails-2.4]

This is the release of version 2.4 of Grails, a dynamic web application framework built on Java and Groovy, leveraging best of breed APIs including Spring, Hibernate and SiteMesh.

Grails is a dynamic web application framework built on Java and Groovy, leveraging best of breed APIs including Spring, Hibernate and SiteMesh.

Se also:

116 questions
1
vote
0 answers

Assignment to dataSource properties behaviour change between grails 2.3 & 2.4

I run grails applications in AWS Elastic Beanstalk; I pass DB authentication credentials via command line parameters and retrieve them via System.getProperty(). In DataSource.groovy for grails 2.3.x, the following worked: environments { development…
1
vote
1 answer

Grails SpringSecurity Spock functional tests UserDetailsService: user not found in

I'm on Grails 2.4.4, using Spring Security Core 2.0-RC4, Spring Security REST 1.5.0.M1 with functional Spock 0.7. I'm using a functional test to test a controller for the REST API I'm building. When I set up the test, I create a User, an admin Role…
1
vote
1 answer

Grails 'grails-rest-client-builder' plugin with PATCH request method

I'm using grails2.4.4 and grails-rest-client-builder: 2.0.0 plugin. I need to invoke a REST URL which accepts request method, PATCH. But i'm not able to do with this plugin: I'm using below code: def rest = new RestBuilder() def resp =…
kaluva
  • 621
  • 8
  • 27
1
vote
1 answer

Grails Filter regexs

I am new to grails and so far i have only been able to use simple filters. I want to use filter in an efficient manner. (I am using grails 2.4.3, with jdk_1.6) I want to create a filter to allow accessing AppName/ and AppName/user/login and i could…
Amanuel Nega
  • 1,899
  • 1
  • 24
  • 42
1
vote
1 answer

grails mongodb 3.0.2 plugin join queries on associations using createCriteria()

I am trying to search for users with particular role using createCriteria().I have three domain classes: User, Role and UserRole (they are from SpringSecurity). class UserRole implements Serializable { User user Role role static…
Swapnil Sawant
  • 620
  • 8
  • 21
1
vote
0 answers

Issues with maven compiler

I am trying to use jetty plugin for a grails project. I am currently using jdk 1.6.0_45. It seems that the jre version used by jdk 1.6 is a little old one for jetty plugin and it generates the following error. Fatal error during compilation…
1
vote
1 answer

Is 'applicationContext' forbidden as a domain property name in Grails 2.4.3?

After migrating from Grails 2.2.4 to 2.4.3, a domain class with a property named applicationContext throws exceptions when using that property in criteria queries. class WebResource { String applicationContext } class ResourceService { …
mwersch
  • 105
  • 7
1
vote
0 answers

JPA @MappedSuperclass realisation in Grails 2.4

I found this solution, that doesn't solve the problem. In JPA we can do this: @MappedSuperclass public class BasicEntity { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; @Column(updatable = false) …
1
vote
0 answers

Grails Database Migration Plugin using a ton of Memory

I'm using the Grails Database Migration plugin (1.4.0) in a Grails 2.4.3 (UPDATE: have upgraded to Grails 2.5.0 and face same memory issues) application with Java JDK 8 Update 45 on Windows 7 64bit. When I changed to Java 8 I know that the PermGen…
Brandon Wagner
  • 893
  • 9
  • 27
1
vote
1 answer

Grails Domain Class Transactions

It's obviously best to put transactional code in Grails services for a lot of different reasons. However, are Domain classes transactional like services are? It seems to make intuitive sense to put my data-binding for domain specific fields in the…
Brandon Wagner
  • 893
  • 9
  • 27
1
vote
0 answers

Serving static files from grails plugin

I wrote a private plugin(MyPlugin) that is being used by other applications. It has a controller named MyPluginController and a bunch of REST actions. They all work fine when access through the mainapp. The plugin also comes with a single page app…
1
vote
0 answers

Grails 2.4 - parse json array contained inside a json object to groovy class

I'm new to grails, the problem i'm trying to solve is pretty simple : my server should receive some json data in a request validate the data and save it to a DB. To my best understanding I use Command Object to validate the data. the problem is that…
NoamRab
  • 41
  • 1
  • 7
0
votes
0 answers

grails module "app-name"-grailsPlugin isn't automatically loaded in IntelliJ on Windows but is on Mac

I am supposed to get a "app-name"-grailsPlugins folder/module under my project structure, however I am not getting it. enter image description here I am not sure if it's a maven issue, since I am getting a sucessful "maven compile" as well as…
0
votes
1 answer

JVM Crashing for Grails 2.4.2 application while upgrading from Java 7 to Java 8

Following are the configurations that our current application: Grails 2.4.2 Java: jdk-7u80 MySQL: 5.7 Tomcat: 7 MySQLConnector: 5.1.39 Now I am trying to upgrade Java 8 from Java 7. I am trying with the "jdk-8u25" version(To avoid issue mentioned in…
Awesome
  • 5,689
  • 8
  • 33
  • 58
0
votes
1 answer

Grails 2.4.4 - How to store config variable at war phase and get it in a Tomcat env?

When running "war" command from Grails, I want to store the build commit for use it in a GSP thereafter. In my Config.groovy def proc = 'git rev-parse HEAD'.execute() proc.waitFor() build_commit.number = proc.in.text In my…
el_gars
  • 11
  • 2