Questions tagged [grails-2.4]

This is the release of version 2.4 of Grails, a dynamic web application framework built on Java and Groovy, leveraging best of breed APIs including Spring, Hibernate and SiteMesh.

Grails is a dynamic web application framework built on Java and Groovy, leveraging best of breed APIs including Spring, Hibernate and SiteMesh.

Se also:

116 questions
1
vote
2 answers

get the path of my file to upload in grails

my view gsp index.gsp Upload file and fullpath

Upload…

D.Sanxhez
  • 137
  • 8
1
vote
0 answers

Grails 2.4.2 on Java > 1.8.0_31 does not work with Tomcat but with Glassfish

Local Environment: Grails v2.4.2 Java v1.8.0_66 Tomcat v7.0.53 Windows 10 Server Environment: Grails v2.4.2 Java v1.8.0_66 Glassfish v4.1.1 Ubuntu v14.4.01 Issue Description: I recently migrated my grails app from a very old Debian Linux server…
nst1nctz
  • 333
  • 3
  • 23
1
vote
0 answers

Grails 2.4.4 and joda-time plugin not working

I have been struggling with this for 2 days now and everything I've read so far does not seem to work. Is it possible to use the joda-time plugin with Grails 2.4.4? Has anyone done this? I created a brand new 2.4.4 application, made a domain…
Scott
  • 1,690
  • 3
  • 13
  • 18
1
vote
1 answer

Grails 2.4.4 jdk8u60 SEVERE: Problems copying method. Incompatible JVM?

I created a project grails 2.4.4 in Intellij Idea 15 (jdk1.8u60) when I try to run my project I get this long endless log generated: Jan 27, 2016 1:09:41 PM org.springsource.loaded.jvm.JVM copyMethod SEVERE: Problems copying method. Incompatible…
Mahmoud Hashim
  • 108
  • 2
  • 13
1
vote
1 answer

Grails - How to send one ID from view to controller (many-to-many relationship)

I am trying to send an ID of an iterated item but I think the whole list is being sent. How can I send just one ID? I have STUDENT and COURSE domain class. Domain Model class Student { String fullName String toString() { …
monty_bean
  • 494
  • 5
  • 25
1
vote
0 answers

Problems with Groovy Doc

I'm trying to generate Java documentation of a Grails 2.4.3 project but I'm getting an error and nothing is generated. grails doc --verbose The result is: [groovydoc] java.lang.StringIndexOutOfBoundsException: String index out of range:…
xabedev
  • 31
  • 3
1
vote
2 answers

Grails - Many-to-Many Data persistance (EDITED)

Ok, I am lost... I have a domain class Student and Course. The class Course is set. I do not add any new Courses into the table. A student can have many courses and a course can have many students. Please take a look at what I have and direct me to…
monty_bean
  • 494
  • 5
  • 25
1
vote
1 answer

Grails - jQuery datepicker error when editing

I had my jQuery datepicker working and saving the date the way it should several days ago. But now I have an error when I'm trying to edit an entry. I think it has to do with the way Grails import the date from DB to form. Please pinpoint me to the…
monty_bean
  • 494
  • 5
  • 25
1
vote
0 answers

Error creating bean with name 'grailsEvents'

I'm trying to migrate grails to 2.4.4 version and I'm getting this error: No idea what could be the problem. Some suggestion is welcome, thanks in advance. Error | 2015-12-15 10:45:47,097 [localhost-startStop-1] ERROR…
S.P.
  • 2,274
  • 4
  • 26
  • 57
1
vote
3 answers

Grails 2.4.4 How do I export excel file?

I've looked at some plugins but no success. I tried Export Plugin 1.6 as well but the view doesn't recognize r:.. and export:.. tags. What is the best way to export rows of data from postgresql database into an excel file from a click of a…
monty_bean
  • 494
  • 5
  • 25
1
vote
2 answers

WAR name based on Environment in BuildConfig.groovy

I want to name my WAR files automatically depending on appName, appVersion and the short name of Environment.current. I have the following option setup in BuildConfig.groovy: String currentEnvShortName = Environment.envNameMappings.find{it.value ==…
nst1nctz
  • 333
  • 3
  • 23
1
vote
1 answer

@Resource is creating controller that shadows my own controller

To render JSON+HAL I've added @Resource anotation to my domain: @Resource(uri = "/rest/book", formats=['hal']) class Book { String title String author } The problem is that I already have BookController (no scaffolding) and creating ling…
MAGx2
  • 3,149
  • 7
  • 33
  • 63
1
vote
0 answers

Grails 2.5.0 UrlMappings with two consecutive slashes

I have inherited a Grails 2.2.4 UrlMappings (partially reproduced below) that I am trying to upgrade to 2.5.0. Named mappings api0 & api2 work, but the two consecutive slashes in api1 (between $controller & $id) do not seem to be matched properly in…
XDR
  • 4,070
  • 3
  • 30
  • 54
1
vote
0 answers

Using a Grails 2.4.2 plugin as a JAR dependency in a Grails 2.2.0 project

I have a custom plugin built using Grails 2.4.2 that is to be used with multiple Grails projects as a regular JAR dependency. I have successfully exported the plugin as JAR and installed into my local Maven repository and added the corresponding…
1
vote
1 answer

How to configure grails 2.4 with AngularJS and not using plugins

How do I configure a grails2.4 application (asset pipeline) with Angular js. (without using any plugins) So far, this is what I have and it doesnt seem to work. I put angular.min.js in the folder grails-app/assets/javascripts and I did this in the…
ThePearl
  • 151
  • 2
  • 14