Questions tagged [grails-3.1]

Version 3.1 of the grails Open Source web application framework that uses the Spring, Hibernate, Groovy programming language, which is in turn based on the Java virtual machine (JVM) and Java. Use it in addition to the grails and grails-3 tags in specific question to grails 3.1.

From the Grails documentation:

What's new in Grails 3.1?

Grails 3.1 is at the milestone stage, but already includes the following new features.

Spring Boot 1.3 and Spring 4.2

Grails 3.1 has been upgraded to Spring Boot 1.3 and Spring 4.2.

Improvements to Grails 3 Profiles

Profile Publishing and Repositories

The following improvements are available in Grails profiles:

  • Profiles are now published as regular JAR files to any Maven compatible repository (Artifactory, Nexus etc.).
  • Additional profiles can be created easiy with the new create-profile command.
  • Profiles can now contribute to the generation of the build
  • Profiles can now have one or many features

For more information see the new section on Profiles in the user guide.

175 questions
0
votes
2 answers

Grails 3: IllegalStateException after running integration test

I keep getting an exception when I run my integration test: import grails.testing.mixin.integration.Integration import grails.transaction.Rollback import org.springframework.beans.factory.annotation.Autowired import…
Erando
  • 811
  • 3
  • 13
  • 27
0
votes
2 answers

variable's value is not being rendered properly

I've used tag like this: and used the extraStyle variable like this:
${myValue}
And it should be rendered as:
sgiri
  • 691
  • 12
  • 28
0
votes
1 answer

How to enable webapp as distributable in grails 3+

How do i enable webapp to be distributable in grails 3+ since there is no web.xml?
0
votes
0 answers

groovy.lang.MissingPropertyException: No such property: state for class: org.hibernate.event.spi.PreDeleteEvent

package products import fiscalYears.FiscalYear class Catagorie { String productCatagory; Date dateCreated Date lastUpdated String lastUpdatedBy String createdBy static constraints = { lastUpdatedBy nullable:…
ujjwol shrestha
  • 145
  • 1
  • 12
0
votes
1 answer

Grails 3 serverURL in application.yml

I'm trying to set the serverURL per environment in application.yml as follows: environments: development: grails: serverURL: http://localhost:8089 dataSource: dbCreate: create url:…
user903772
  • 1,554
  • 5
  • 32
  • 55
0
votes
1 answer

Grails 3 Cannot resolve local plugin

I'm developing a plugin and working locally before publishing. I'd like to avoid publishing until the work is finished. I've read the latest Grails Plugins entry but it doesn't address my issue, nor do the few similar questions here. My dir…
beechovsky
  • 133
  • 2
  • 17
0
votes
1 answer

Config variable not being fetched as expected from application.yml

I have config variable(in application.yml) as: xyz: exception.emails: ['abc@gmail.com'] While fetching this in local works fine but after deploying war I am getting config variable as: xyz: [ exception: [ emails[ 0 …
0
votes
1 answer

In Grails 3.1.x, how do I configure grails logging to include the class name in the logging statement?

The class that gets printed is the logger's class, not the class that contains the log statement. logback pattern: pattern = "%date{ISO8601} [%level] %class{100} %msg%n" Calling logger in MyController.class: log.info("Some message); results…
Ed J
  • 2,466
  • 4
  • 26
  • 20
0
votes
1 answer

Grails 3 application works locally, but unable to resolve view when deployed to a remote Tomcat

I've created a Grails 3.1.1 app that uses a form to load a table with data. Running locally, everything works fine. When deployed to a remote Tomcat however, submitting the form results in a javax.servlet.ServletException error. Typical…
0
votes
1 answer

Issue in deploying Grails 3.1.9 application in WebSphere 8.5.5.8

I am trying to deploy an app developed in Grails 3.1.9 in WebSphere 8.5.5.8 I've generated .war file and installed successfully but, when I'm trying to access through link http://localhost/MyAPP/ following error appears: Error 404: SRVE0190E: File…
Pundarik
  • 3
  • 5
0
votes
1 answer

Using the Grails Cache Plugin on Normal Spring Service Bean

i have some standard Spring @Service classes in a separate jar lib that use the standard @Cacheable Spring annotation, in a Spring boot project i declare the dependency, configure a CacheManager and just works! i try to do the same in a Grails 3.1…
0
votes
2 answers

grails.plugin.springsecurity.annotation problem - secured plugin is not resolving

I used grails 3.1.X in NetBeans 8.1. Secured plugin is not resolving wen a used annotation. Code below: package securityplugintest //import grails.plugins.springsecurity.Secured import grails.plugin.springsecurity.annotation.Secured //not esolved…
Alex Titov
  • 91
  • 1
  • 2
  • 9
0
votes
1 answer

Target specific package when running Grails integration tests using Gradle

I can target a specific package with the grails command: grails test-app com.mypackage.* -integration How to do the same using Gradle wrapper? Tried ./gradlew integrationTest com.mypackage.*, but no luck. (Grails 3.1.10, Gradle wrapper 2.13)
rlovtang
  • 4,860
  • 2
  • 30
  • 30
0
votes
0 answers

Grails sass asset pipeline does not work on production

I am using sass-asset-pipeline plugin and sass in my project. Everything works as expected in devel. However, in production my css and js assets are not loaded properly into my project. Build.gradle buildscript { ext { grailsVersion =…
Michael.D
  • 179
  • 1
  • 15
0
votes
1 answer

Grails 3 plugins configuration

New to Grails 3- starting to port. Have tried placing config values in application.groovy and application.yml within plugin conf dir to no avail - trying to read values from within plugin service fails. Adding values to the main application's…