Questions tagged [grails-2.2]

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 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.

136 questions
0
votes
0 answers

Inconsistency in grails command object validation

I have following command object with constraints : @Validateable class RefundCommand{ private static final Logger log = Logger.getLogger(RefundCommand.class) Double amount String order_id MerchantAccount merchant OrderReference…
Azhar
  • 1,035
  • 1
  • 8
  • 11
0
votes
2 answers

Grails 2.2.4/Spock: Stubbed Service Interaction: Why is a rejected value being ignored?

Given a simple domain with an injected service, which is used to perform a certain validation inside a constraint, like: package org.example.domain class Ninja { String name String sensei String village def ninjaService …
0
votes
1 answer

Grails 2.2.4: Transient Property: Why is the Custom Validator being called twice?

Given a simple domain with a transient property, such: package org.example.domain class Ninja { String name String sensei static transients = ['name'] static constraints = { name nullable:false, bindable:true, validator:…
0
votes
1 answer

How to set Set Vm Arguements for Grails 2.2.4

I am using Grail 2.2.4, in conf/spring/resources.xml, I try to import a file as ${realm}-config.properties, where realm is a vm arguement, I tried to set vm arguements in BuildConfig.groovy as below grails.tomcat.jvmArgs =…
Vinod Jayachandran
  • 3,726
  • 8
  • 51
  • 88
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
1 answer

Grails 2.5.0 Controller action method params from JSON POST body

In Grails 2.5.0, is it possible to inject a property value from a JSON POST body into a controller action method parameter that isn't a command object? e.g., into a String, a primitive, etc. This was possible in Grails 2.2.4, but I haven't found a…
XDR
  • 4,070
  • 3
  • 30
  • 54
0
votes
1 answer

GSP compilation failed in grails

When I run grails war I got the following error Compiling 30 GSP files for package [appInfo]. | Error GSP Compilation error in file /WEB-INF/plugins/app-info-0.4.3/grails-app/views/appinfo/hibernateEntityInfo.gsp at line 69: Tag [each] missing…
0
votes
1 answer

Compilation error start up failed Invalid command line for usage of javac

I am new to grails I first Installed Java 1.7 then I set path JAVA_HOME to C:\Program Files\Java\jdk1.7.0 and GRAILS_HOME to D:\grails\grails-2.2.4 and I set path to C:\Program Files\Java\jdk1.7.0\bin;D:\grails\grails-2.2.4\bin and I am…
0
votes
1 answer

Grails - How to add Oracle jdbc jar to classpath without placing in /lib?

I am attempting to get my grails application running locally with tomcat, but without placing ojdbc6.jar in /lib. My grails application is deployed to Glassfish and works fine on the server (because the ojdbc6.jar is available there). As expected…
bigfatony
  • 63
  • 5
0
votes
0 answers

Grails 2.2.3 : Logging - Log from Java Classes from All Packages into a log file

I have successfully configured logging in Grails 2.2.3 My log file has logs from all grails artifacts. But I am trying to to get Logs from my Java Classes. I have defined private static final Logger log = Logger.getLogger(getClass()); with this I…
emphywork
  • 448
  • 1
  • 4
  • 15
0
votes
2 answers

Grails unit test case showing Completed 0 spock test, 0 failed

I am new to Grails. I am using version 2.2.2 My test cases are not running even it says test cases passed. I get the following message after running the test case. Resolving [test] dependencies... Resolving [runtime] dependencies... |…
Braj Kishore
  • 351
  • 2
  • 11
0
votes
1 answer

Grails g:ifLoggedIn tag not recognised

When the user successfully logs into the system i want to display the LOGOUT link. And if the user has not logged into the system i want to display LOGININ link. It says that is not recognised. I am using grails 2.2.4
Sharon Watinsan
  • 9,620
  • 31
  • 96
  • 140
0
votes
1 answer

Error Occur When Grails project Import

Good day all members I see error When I import Grails project to GGTS. Error is below. Import Grails project has encountered a problem.Invalid project description. Project is overlaps the location of another project. If anyone know help me…
user3588466
  • 23
  • 1
  • 4
0
votes
1 answer

Grails: how to remove AppName from production url

I am trying to deploy Grails 2.2.3 project to a production and having issue with URL. I setup reverse proxy in Apache and have http://example.com -- as example. I set following property in Config.groovy: grails.serverURL = "http://example.com/" and…
MeIr
  • 7,236
  • 6
  • 47
  • 80
0
votes
1 answer

How to fix this Grails error?

I'm tried to install spring security core plugin and I have this error: Loading Grails 2.2.4 | Configuring classpath | Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information): -…