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
20
votes
5 answers

How big a war file should be?

Tomcat 7 manager limit the war file size to 50 Mo. Why this limitation of 50 Mo ? What should be the maximum war file size ? (in practice) I'm working with Grails 2.2 which generate a minimal WAR of 28 Mo. So, the limit of 50 Min is very easy to…
jvmvik
  • 319
  • 1
  • 3
  • 9
12
votes
4 answers

broken pipe exception with MySql in Grails app

I have deployed a Grails 2.2.1 application to a remote server. After a few hours, when I access to home page of the application, I see the following exception: Error 500: Internal Server Error URI /DocGemStudioZoccali/ Class …
FrancescoDS
  • 1,077
  • 4
  • 21
  • 55
11
votes
2 answers

Change login page for spring security plugin in grails

Is there a way that I can create my own custom login page and send the data to login controller of spring security plugin. I currently see my code redirecting directly to the default login page of spring security plugin.
Rammohan
  • 493
  • 6
  • 27
8
votes
3 answers

grails run-app randomly throws: java.lang.NoClassDefFoundError: Lorg/codehaus/groovy/grails/plugins/web/async/api/ControllersAsyncApi

When starting my grails 2.2.0 app, I am randomly getting the error message as below, but it also randomly succeeds starting the up without an error. No changes to the code, I just try to run the grails dev run-app multiple times. $ grails dev…
Mathias Conradt
  • 28,420
  • 21
  • 138
  • 192
8
votes
1 answer

Mixing private and public/protected methods of the same name causes multimethods to be disabled and is forbidden to avoid surprising behaviour

I just upgraded one of my Grails apps to 2.2.0 which is using Groovy 2.0 and I am now getting this compile error: Mixing private and public/protected methods of the same name causes multimethods to be disabled and is forbidden to avoid…
Gregg
  • 34,973
  • 19
  • 109
  • 214
7
votes
1 answer

Grails 2.2 to 2.3 - Error running forked test-app: Could not load grails build listener class

I'm migrating my project from grails 2.2 to 2.3 and when I do test-app (on IDEA 12.1.6), I got this error | Error Error running forked test-app: Could not load grails build listener class java.lang.RuntimeException: Could not load grails build…
Thermech
  • 4,371
  • 2
  • 39
  • 60
6
votes
1 answer

Applying Groovy extensions in Grails produces MissingMethodException for String#toBoolean()

Background Groovy have the feature of adding methods to the existing classes, and I've found some interesting ones. Then I discovered that I need to customize my Grails bootstrap to load them, so I add: def init = { servletContext ->…
user800014
5
votes
1 answer

grails.project.war.file is not creating a war with the correct file name, seems to be caching previous name?

I am having trouble building my Grails 2.2.3 project from Groovy/Grails Tool Suite. The war filename is dynamic and is not always set properly. The first build will be fine, but any successive builds will have the previous filename. I am using…
bigfatony
  • 63
  • 5
5
votes
1 answer

Grails null id error on constraints during integration test

Grails 2.2.0 I am trying to create a custom constraint to force user to have only one master email. Here is the simplified code causing the error: User domain class class User { static hasMany = [emails: Email] static constraints = { …
Raipe
  • 786
  • 1
  • 9
  • 22
4
votes
3 answers

Upgrade an application from Grails 2.2.5 to 3.0

I have a running Grails application, started some years ago with Grails 2.0.0.RC1 and updated, version after version, to 2.2.5. After this update I worked only occasionally on it, since the project was "completed", doing only bug fixing. Now I need…
lifeisfoo
  • 15,478
  • 6
  • 74
  • 115
3
votes
1 answer

Grails 3 - Resource Plugin

i would like to ask you, if you know something about great Grails plugin (https://grails.org/plugin/resources) for new Grails 3 (working with 3.0.4). This plugin allow to create resource (JS, CSS ...) bundles, dependencies etc. ... It would be…
Mato.Duris
  • 253
  • 1
  • 4
  • 15
3
votes
1 answer

Grails 2.2.x unresolved dependencies without any changes to previously working build

We have a Grails 2.2.4 project that I was looking to do some work on. There has been no work done on it for six months, but it built just fine back then. When I try to run grails clean now I get a host of UNRESOLVED DEPENDENCIES errors. This is…
Scott
  • 16,711
  • 14
  • 75
  • 120
3
votes
1 answer

Grails 2.2 to 2.3 - jersey jaxrs plugin dependencies could not be resolved

I'm migrating my project from grails 2.2 to 2.3 and everything work fine except jaxrs plugin My BuildConfig.groovy looks like: ... grails.project.dependency.resolver = "maven" grails.project.dependency.resolution = { plugins { compile…
Thermech
  • 4,371
  • 2
  • 39
  • 60
3
votes
1 answer

No such property: org.codehaus.grails.INCLUDED_JS_LIBRARIES

The requirement I'm trying to run my JavaScript tests in a custom test phase based in the functional test phase. Basically it needs to: Startup embedded Tomcat Open a controller Check the result of the executed tests What I've done First, I…
user800014
3
votes
3 answers

Custom Plugin transitive Dependency resolution in BuildConfig.groovy Grails 2.2.3

tl;dr version Dependencies of my custom grails plugin weren't getting inherited and resolved by projects I installed the plugin to. Install the latest version of the release plugin to your plugin (fixes the issue for jar dependencies) Clear out any…
jonnybot
  • 2,435
  • 1
  • 32
  • 56
1
2 3
9 10