Questions tagged [grails-2.3]

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 coding-by-convention framework that leverages well-established Java frameworks (Spring, Hibernate) to allow programmers to quickly develop web applications. It touts features such as a zero-XML configuration and a typical web-application MVC architecture.

Along with its core, Grails has a plugin architecture and library that can provide developers with common web application features like Security and dynamic UI tools.

Grails 2.3 adds (Not an exhaustive list):

  • Improved Dependency Management
  • Data Binder
  • Binding Request Body To Command Objects
  • Domain Classes As Command Objects
  • Forked Execution
  • Test Runner Daemon
  • Server-Side REST Improvements
  • New Scaffolding 2.0 Plugin
  • URL Mappings May Specify A Redirect
  • Async support
  • Encoding / Escaping Improvements
  • Hibernate 3 and 4 support
  • Controller Exception Handling
  • Namespaced Controllers

More information:

See for more information.

167 questions
1
vote
2 answers

How to terminate Grails 2.3 application started with "run-app"?

Prior to version 2.3 a Grails application started in a console window with "run-app" (development mode) could be terminated with Ctrl-C. It doesn't work anymore with Grails 2.3, the keystroke is simply ignored. There's "stop-app" command, but it…
curd0
  • 2,300
  • 3
  • 27
  • 32
1
vote
1 answer

g:formRemote doesn't create proper code to update RESTful resource

We are using grails 2.3.3 for our application. Access to resources needs to be done with REST interfaces, because it will be accessed from web browser and other applications. To achieve that, an UrlMapping.groovy contains REST mappings…
matejk
  • 798
  • 1
  • 14
  • 27
1
vote
0 answers

grails 2.3 java.lang.NoClassDefFoundError: org/apache/batik/dom/svg/SVGOMDocument

When i run my grails application in tomcat i get the following error java.lang.NoClassDefFoundError: org/apache/batik/dom/svg/SVGOMDocument. But the batik-svg-dom.1.7.jar is packaged in the war and in the classpath. I don't however get this error…
1
vote
1 answer

Grails 2.3.0 cannot access session in the view if session is not accessed before

java.lang.IllegalStateException: Cannot create a session after the response has been committed Caused by: org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error processing GroovyPageView: Error executing tag :…
sumnulu
  • 3,412
  • 1
  • 19
  • 31
1
vote
1 answer

Grails 2.3.0 and IntelliJ 12

Has anyone been able to make IntelliJ 12 work with Grails 2.3.0. When I try to create a project I get the following message: "create-app test"Error: Could not find or load main class org.codehaus.groovy.grails.cli.support.GrailsStarter
Dimitry
  • 19
  • 3
1
vote
2 answers

How do I export transitive dependencies of a plugin in Grails 2.3.0 using maven-install

In Grails 2.3.0, the plugins that my plugin depends on are not being exported when I run maven-install. This works in 2.2.3: $ which grails /Applications/grails-2.2.4/bin/grails $ grails create-plugin myplugin | Created plugin Myplugin # add…
Brian Deterling
  • 13,556
  • 4
  • 55
  • 59
1
vote
1 answer

Unresolved Dependencies Grails 2.3

I am unable to run my Grails app because of a dependency problem. BuildConfig.groovy is set to use Maven Central which has the dependencies that Grails cannot find. Any idea why? This is a project which I only just upgraded to Grails 2.3, if that…
Adam
  • 43,763
  • 16
  • 104
  • 144
1
vote
3 answers

Grails many-to-many on the same domain class

I want to build a 'Entity' class that can both have childs and parents: class Entity { static hasMany [childs: Entity, parents: Entity] } But I dont know how to map my data (should I use mappedBy?) My test: @Test void testEntityCanHaveAChild()…
Thermech
  • 4,371
  • 2
  • 39
  • 60
0
votes
1 answer

ERROR context.GrailsContextLoader - Error initializing Grails: Error creating bean with name 'grailsApplication'

I use grails 2.3.11 version with JDK 1.8_0_131, my project build correctly in my pc and works also when I deploy to my server, but the problem is the same version I checkout to my another pc, it gives the error when I deploy to my…
0
votes
0 answers

grails 2.3.7 data binding how assign database in multiple database

I am using grails 2.3.7 multiple database i am configured.in save databinding working fine.but update has occur issue table not found error Domain class : PurchaseItem.groovy class PurchaseItem { String item static mapping = { …
Nagaraj
  • 1
  • 1
0
votes
1 answer

How do I actually make Geb work with Grails 2.3.11?

Stumbled across Geb the other day. I'm on Grails 2.3.11. How do I actually install Geb correctly? I downloaded the jar files and included them but when I try to run my code I get ClassNotFoundException on org.openqa.selenium.WebDriverException I'm…
Bmoe
  • 888
  • 1
  • 15
  • 37
0
votes
1 answer

How to create a Rails project along with its database in Rails2?

I have the project built using Rails 2.3.18 ruby 1.9.3p551 (2014-11-13 revision 48407) [x86_64-linux] How to create the new project along with its Database. Like in rails 4 & 5 we do rails new app -d mysql
user8112782
0
votes
1 answer

How to include gems in the project using Rails 2 and Ruby 1.9.3?

I have the project built using Rails 2.3.18 ruby 1.9.3p551 (2014-11-13 revision 48407) [x86_64-linux] I do not have any Gemfile my project so how include gems in it.
user8112782
0
votes
1 answer

Grails 2.3.5 War not correctly working in Tomcat 7.0.47

While running the application in developement..it wrks fine. when i build the war and try to deploy in tomcat it's giving the following error: log4j:ERROR Error initializing log4j: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON…
Naresh
  • 333
  • 1
  • 2
  • 9
0
votes
0 answers

"Grails Repeated column in mapping for entity" error when same table is used for multiple hasMany relations

I have common table (entity_notes) to hold notes for all entities in my system, It had entity_id, entity_type_id columns to identify to which entity the notes belong to. So below are my grails domains. class EntityType { String name String…
JChap
  • 1,421
  • 9
  • 23