Questions tagged [grails-2.1]

Grails is an open source web application framework which uses the Groovy programming language (which is in turn based on the Java platform). It is intended to be a high-productivity framework by following the "coding by convention" paradigm, providing a stand-alone development environment and hiding much of the configuration detail from the developer. Grapils 2.1 is the stable release published at July 5, 2012

40 questions
11
votes
2 answers

grails 2.1.1 does not reload static resources

I have a fresh grails 2.1.1 installation, windows 7. Problem: Static resources (CSS) don't reload in development mode. According to http://grails.1312388.n4.nabble.com/Re-Grails-2-0-CSS-Changes-not-Picked-Up-td3680479.html I've tried in…
9
votes
4 answers

Adding child elements onto a domain object before the domain object is created

(Sorry if this is a noob question, I couldn't find the answers on the grails reference) I have the following domain heirarchy : User > (has many) Survey > (has many) SurveyQuestion > (has many) SurveyQuestionResponse These are two of the above…
Jimmy
  • 16,123
  • 39
  • 133
  • 213
8
votes
0 answers

Groovy Grails: how to set path of log4j.properties that works in Windows and Linux

In groovy grails project, I want to externalized log4j.properties file and I want to make generic relative path to make it work in Linux and Windows. To externalize, I have removed log4j = { ... } code from grails-app/conf/Config.groovy And updated…
User12111111
  • 1,179
  • 1
  • 19
  • 41
8
votes
2 answers

Grails refresh-dependencies doesn't download snapshot dependency from local maven repository

I am using Grails 2.1.1 and Maven 3.0.3. In my buildConfig.groovy, I have pom true and I generated the pom.xml via grails create-pom. In this pom I have a dependency with 1.0-SNAPSHOT which exists only in my local maven…
beldenge
  • 156
  • 2
  • 8
7
votes
2 answers

Double records inserted in grails using audit-logging plugin

I have installed the audit-logging plugin into my application. The grails version is 2.1.1 and the plugin version is 1.0.1. In my Config.groovy class, I have added this auditLog { verbose = true // verbosely log all changed values to db …
7
votes
1 answer

Does Grails 2.1.0 Require Groovy 1.8?

I recently updated a Grails app to 2.1.0, but when I war the project I get the following error: java.lang.NoClassDefFoundError: org/codehaus/groovy/transform/powerassert/ValueRecorder Groovy Version 1.7.5 Grails Version 2.1.0 Are these two…
John Giotta
  • 16,432
  • 7
  • 52
  • 82
6
votes
3 answers

Groovy AST Transformation does not get applied during Grails Compile, only during Auto-Reloading

I have written a Groovy AST Transformation which only runs for me when Grails auto-reloads the class it is to be applied to. If I clean the project and start the application using run-app, the AST transformation does not run. Touching the class so…
Dónal Boyle
  • 3,049
  • 2
  • 25
  • 40
4
votes
1 answer

Grails GORM, eager fetch mode for multiple layers of domain class

I have the following domain structure : class Survey { Integer id String title static hasMany = [questions: Question] static constraints = { id() title() questions() } String toString(){ …
Jimmy
  • 16,123
  • 39
  • 133
  • 213
3
votes
1 answer

Grails 2.1 How Can i add value in join table

I create 2 tables one Category and one Manufacturer, and There relationship is Many-to-Many, So i use a join table, I insert values into two tables individually. Now i want to join two table by their id, but i cannot do, Can you help me.... When i…
Omar Faruq
  • 1,220
  • 2
  • 12
  • 29
3
votes
1 answer

Can you use the Grails Wrapper to upgrade Grails?

I can't find anything in the Grails docs, but from the wording of the description of the Grails Wrapper, it should be possible. Can you use Grails (via an installed Grails Wrapper) to upgrade the version of Grails a project (and thus the Wrapper) is…
U47
  • 193
  • 14
3
votes
1 answer

Grails 2.1.1 sending mail

I installed the mail plugin: grails install-plugin mail I added my config according to the plugin: grails { mail { host = "smtp.gmail.com" port = 465 username = "youraccount@gmail.com" password = "yourpassword" …
marko
  • 3,736
  • 6
  • 29
  • 46
3
votes
1 answer

No application logging from Grails application?

I have a simple grails app and some logging in the controller. However, no matter how I configure the logging, I do not see my application log message (even though I can be overwhelmed with grails internal logging). Config: // log4j…
C. Ross
  • 31,137
  • 42
  • 147
  • 238
3
votes
0 answers

grails gradle plugin

I am new to Grails/Gradle. I am trying to write a simple build.gradle to build my sample project. I have a task "build" which internally should do the following in the given sequence. clean compile run tests create a war file I am using the…
swap
  • 31
  • 2
2
votes
2 answers

Exception occurs at the end of test cases

I'm using Maven for dependency management. When I run the test cases an exception occurs at the end of test cases though test cases pass successfully. Following is my stack trace: 2013-10-08 16:04:22,839 [Thread-15] ERROR…
user9873999
  • 311
  • 3
  • 15
2
votes
3 answers

groovy.lang.MissingPropertyException: No such property: configClass for class: java.lang.String

I am trying to run my grails project using grails run-app command, but the following error has occured: 2013-06-05 17:01:49,409 [pool-6-thread-1] ERROR StackTrace - Full Stack Trace: groovy.lang.MissingPropertyException: No such property:…
Diganta
  • 245
  • 1
  • 7
  • 21
1
2 3