Questions tagged [grails-2.5]

Use this tag for version 2.5 only, use grails tag for general question about grails Web application framework

85 questions
0
votes
1 answer

How do I get controller method params when using @Secured closure?

I have successfully set up my Grails application to authenticate the user. I map controller method arguments using URL params, in my UrlMappings.groovy: "/$source/owner/$ownerId/show"(controller:"myController", action: "show", method: "GET") How do…
RMorrisey
  • 7,637
  • 9
  • 53
  • 71
0
votes
2 answers

grails run-app works but not run-war (war deployment fails)

I am seeing the following error message while trying to execute grails run-war. It works fine with grails run-app. Later I realized it is not only related to grails. Even if I create war and deploy it on tomcat, I am seeing the same error message.…
Balkrishna
  • 2,897
  • 3
  • 23
  • 31
0
votes
0 answers

Grails 2.5.4 Error occurred during initialization of VM

I'm trying to run an application in Grails but I have a problem with the execution. I'm using grails version 2.5.4 and Java version 1.7. I checked my enviroment variables and they turned out to be OK. This is the error: Error occurred during…
Feer Sixx
  • 21
  • 2
0
votes
1 answer

Why does @GrailsCompileStatic allow calling dynamic GORM finders but not domainClass.withTransaction()?

Adding the @GrailsCompileStatic annotation to a method or class allows the usage of dynamic GORM finders, e.g. findAllByIdAndProperty(). However, adding the annotation does not allow for domainClass.withTransaction(), which is also a GORM AST…
Daniel Salvadori
  • 427
  • 6
  • 15
0
votes
1 answer

How I can change the default spring-security 2.0 login page in grails app?

I need configurate my web application to login with spring-security using username store in my DBs' app(im using PostgreSQL) from my auth.gsp page. How i performance this? Thanks in advance
Ale
  • 226
  • 1
  • 9
  • 17
0
votes
1 answer

Grails url mapping doing wrong action call

I'm trying to call the index action and keep calling the count action and i don't know why. This is the code in the urlmapping group "/api/product",{ "?"(controller: 'product', action: 'save', method: 'POST') "?"(controller: 'product',…
0
votes
2 answers

How to disable digest in asset pipeline grails

I am using asset pipeline 2.5.0 and Grails 2.5.0, while creating a war all the static files like js, css, etc are renamed ( a digest gets appended to it ). Is there a way to avoid the renaming or to disable the digest? Thanks
Swaprks
  • 1,553
  • 11
  • 16
0
votes
1 answer

Not able to create hello world program using Grails 3.1.3 or Grails 2.5.4

My project is based on Grails 2.2.2. Now I need to upgrade to Grails 2.5.4 in order to upgrade Groovy version 2.4.4 Hence, I downloaded Grails 2.5.4 and set up the Grails Home in environment variable and bin folder in class path. From command line…
0
votes
0 answers

Grails rest render src/groovy classes from rest controller as JSON and create custom JSON renderer

I am working with grails 2.5.0. I want to render src/groovy class as JSON and custom JSON. If I perform same with domain classes, its working fine for me. I want same thing with src/groovy classes. For rendering data with json and custom json I…
user1791574
  • 1,729
  • 2
  • 16
  • 30
0
votes
1 answer

Grails 2.5.3 domain class with List of embedded objects

In a Grails 2.5.3 domain class with, how can I create a List property of embedded objects (not domain objects, and not basic types like String, Integer, etc.)? I've tried many combinations of static embedded, static hasMany, etc., but none seem to…
XDR
  • 4,070
  • 3
  • 30
  • 54
0
votes
1 answer

force the browser to use HTTPS while login in Grails

In my Grails project i'm using spring core plugin , i want to force the browser to use HTTPS while login , i found this setting : grails.plugin.springsecurity.auth.forceHttps = true but when i put it in the Config file,but when i try to access an…
grails
  • 67
  • 1
  • 4
0
votes
1 answer

Grails 2.5.x GORM persistent artificial properties

Is it possible to persist an artificial property in Grails 2.5.x GORM? Using Hibernate 4 annotations / settings would also be possible. e.g., I'd like to be able to persist DomainObjectC to a domain_object_c table with 3 columns (id, do_b_id,…
XDR
  • 4,070
  • 3
  • 30
  • 54
0
votes
1 answer

Calling Jquery from external file in Grails

Having a jquery file inside the assets folder,and i want to call a function from it in , I used :