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
3
votes
0 answers

Grails memory leak

We are developping a Grails (2.2.1) application with mongodb, and during stress tests we have found that there is a domain class that keeps a lot of instances actived even before garbage collection is done. We have used jmeter to make more than 5000…
kNo
  • 479
  • 1
  • 4
  • 14
3
votes
4 answers

Grails 2.2.1 war fails to deploy

Using grails 2.2.1 I created a war but it fails to depoly in my Tomcat 6 on linux and windows server. At first I ran into this problem of "org.apache.catalina.loader.WebappClassLoader-…
AKJ
  • 141
  • 1
  • 7
3
votes
1 answer

Grails upgrade to 2.2.2 fails with ClassNotFoundException on migration script

I'm getting a strange stack trace when trying to upgrade my Grails project from 2.1.1 to 2.2.2, | Error 2013-05-01 17:54:46,935 [localhost-startStop-1] ERROR context.GrailsContextLoader - Error initializing the application: Error creating bean with…
James McMahon
  • 48,506
  • 64
  • 207
  • 283
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
2
votes
0 answers

Grails 2.2.4 unresolved dependencies commons-imaging

So I'm kinda lost here. I've had the same BuildConfig for over a month, and since the beginning of the week I have the following problem: I'm trying to use the Apache commons-imaging 1.0-SNAPSHOT in my grails 2.2.4 project using the following…
Sir Celsius
  • 822
  • 8
  • 22
2
votes
2 answers

Jasypt: read configuration from external file

I am using grails Jasypt Encryption plugin to encrypt my data in the DB. If I set jasypt configurations in my Config.groovy file like: jasypt { algorithm = "PBEWITHSHA256AND256BITAES-CBC-BC" providerName = "BC" password =…
MKB
  • 7,587
  • 9
  • 45
  • 71
2
votes
1 answer

How to load or bootstrap data into grails from JSON external file?

I have a bunch of data that exists in a separate file and am trying to figure out how to automatically load this data into the db when the grails application starts up.
Charlotte Tan
  • 2,452
  • 2
  • 20
  • 24
2
votes
1 answer

Grails static resource unacessible from root

I have a file named favicon.ico in the web-app folder (grails 2.2.1). My app is configured to run as root app / If I open the url http://mydomain/favicon.ico I got a not 404 not found. If I try to move the file in any subfolder it works. For…
Fabiano Taioli
  • 5,270
  • 1
  • 35
  • 49
2
votes
2 answers

How can grails "dependency error" be resolved?

Grails was running fine till I decided to re-install it: Its now started showing up the below error during "run-app" or create-app command process- Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more…
Sanket Deshpande
  • 293
  • 2
  • 3
  • 10
2
votes
3 answers

What can make performance different between dev and prod mode?

The Example I'm writing an utility to transform domain classes, pojos and pogos in CSV, using OpenCSV. The example that I created is available on git. The idea is to go to the index action of the TestController and hit the button that will make an…
user800014
2
votes
2 answers

Unable to run Grails project using Spring Security Core in GGTS on Windows 7

I’m new to Grails and I’m trying desperately to get the Spring Security plugin to run. I added the following line to my project’s BuildConfig.groovy: plugins{ ... compile ":spring-security-core:1.2.7.3" ... } Then I tried to install…
Dominik H
  • 303
  • 2
  • 6
  • 15
2
votes
2 answers

Grails: How to put a minSize constraints on map

I have this object @Validateable class Foo { Map items static constraints = { items minSize: 1 } } but this test fail: @Test void shouldNotValidateIfItemsIsEmpty() { Foo foo = new Foo(items: [:]) assert…
Thermech
  • 4,371
  • 2
  • 39
  • 60
1
vote
1 answer

how to make sure milliseconds of the date are stored in database?

I am using grails 2.2 with mysql. I get the time as unix timestamp. def raceStartTime = params.raceStart //milliseconds epoch time I then convert the time to date as shown below Date startDateTime = new Date(raceStartTime.toLong()) and persist it…
kofhearts
  • 3,607
  • 8
  • 46
  • 79
1
vote
0 answers

is there any performance benefits in coding java style in groovy/grails?

You can specify types and also use interfaces in groovy. So in other words you can code in java style in groovy. Coming from java background some people find it comfortable to treat groovy as java and start development in java style. I am wondering…
kofhearts
  • 3,607
  • 8
  • 46
  • 79
1
vote
1 answer

Error creating bean with name 'pluginManager' due to java.lang.reflect.MalformedParameterizedTypeException in Grails

I had used Grails-2.2.0, JDK-1.7.0 for Grails Application Development along with Maven for dependency management. Application runs fine but receives following error when I deploy grails application war build from Maven on Tomcat 7.0: `SEVERE:…
Pramod
  • 11
  • 6
1
2
3
9 10