grails-core | The Grails Web Application Framework | Application Framework library
kandi X-RAY | grails-core Summary
kandi X-RAY | grails-core Summary
![Grails Joint Validation Build] [Grails] is a framework used to build web applications with the [Groovy] programming language. The core framework is very extensible and there are numerous [plugins] available that provide easy integration of add-on features. Grails development is lead by the [Grails Foundation] and is sponsored by [Object Computing Inc.] in St. Louis Missouri. Please contact <2gm@objectcomputing.com> for support inquiries. You need a Java Development Kit (JDK) installed, but it is not necessary to install Groovy because it’s bundled with the Grails distribution.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of grails-core
grails-core Key Features
grails-core Examples and Code Snippets
Community Discussions
Trending Discussions on grails-core
QUESTION
I have a grails application written in Groovy. It is built and works when it's launched with :
...ANSWER
Answered 2022-Feb-18 at 12:22I can't believe I wasted two days straight on this because someone wrote the package with an uppercase letter. There was a class in a package :
QUESTION
Recently, we migrated our backend APIs from Grails 3 to Grails 5.1.1 Together with it we also upgraded java version to 11. Everything is running on Docker. Otherwise, nothing else has changed.
After the migration, we are now facing performance issues. But it's a weird one.
First, we got some results from NewRelic:
NewRelic is showing that org.grails.web.mapping.mvc.GrailsControllerUrlMappingInfo
is to blame. There is nothing else underneath it that is slow.
Digging a bit deeper, we found an article (from a while ago) which claims that NewRelic is not instrumenting Grails very well.
At this point, we were trying to reproduce the issues locally and we did. Created a simple function that wraps whatever we need with a timer to measure how long things taking to execute:
...ANSWER
Answered 2022-Feb-04 at 12:38Run the siege command to check the total time of several users making the request at the same point.
I made a repository trying to do what you said
QUESTION
We recently upgraded our project from Grails 3 to 5.1.1. Actually, it was not really an upgrade but rather a migration. We ended up creating a fresh project with 5.1.1 and migrated all of our code into it. Everything is currently working with an exception of one warning:
...ANSWER
Answered 2022-Jan-18 at 07:22I managed to get the error to go away. All I needed to do it all the dependency config for the related tasks (in build.gradle):
QUESTION
I would like to disable the dynamic reload mechanism in Grails4/5.
In my case it's not effective enough so I rather avoid all the "File {} changed, recompiling..."
messages
I'm very well aware of suggestions like this
to put grails.agent.enabled = false
in build.gradle
but this seems not to work.
I found in the source code this if condition:
...ANSWER
Answered 2022-Jan-14 at 14:26You can remove org.springframework.boot:spring-boot-devtools
from your dependencies.
QUESTION
I get this error below when running a Grails 2.4.5 project (full stacktrace)
...ANSWER
Answered 2021-Dec-03 at 17:37Putting that line of code inside the Config.groovy file solved the issue and removed the exception: grails.cache.ehcache.cacheManagerName = 'default_grails_cache'
.
Solution comes from https://github.com/grails-plugins/grails-cache-ehcache/issues/41#issuecomment-985049476.
QUESTION
I'm currently trying to run our app that's in Grails 2.3.11 through docker-compose with the database. I have the database up and running without issue, and also the app container sets up grails and starts the compilation process, but it goes on to downloading all the packages every time I stop and restart the package. This becomes an issue because we have to download so many packages (And there's a bunch of errors we have to work around because Grails 2). I've tried to mount my local grails folders into the container to have it run off of those but it seems to not be having any success. Is there something obvious I'm doing wrong, or some way I can easily check where the issue might be?
I'm also attempting to map all local database information into the mysql container with issue. But I haven't looked into it much yet, if you see an obvious issue there that would be helpful.
docker-compose.yml:
...ANSWER
Answered 2021-Aug-02 at 18:44So the mapping I was using ended up not being correct. I was going off a file mapping from 1 article and ended up working after trying another working mapping. I made the switch below:
original:
QUESTION
I am working with Grails 3.3.11 and Java 1.8.0_275 (open).
All of a sudden my project stopped working. When I run grails clean, or run-app it says:
...ANSWER
Answered 2021-Jun-07 at 15:10This is likely due to a repository outage that is in progress right now. See https://github.com/grails/grails-core/issues/11825.
QUESTION
When I try to create a functional test using:
grails create-functional-test acceptance.tests.Logout
I'm getting this error, because Spock tries to use a wrong Groovy version:
| Error Failed to compile GenerateAsyncController.groovy: startup failed: Could not instantiate global transform class org.spockframework.compiler.SpockTransform specified at jar:file:/Users/reinaldoluckman/.gradle/caches/modules-2/files-2.1/org.spockframework/spock-core/2.0-M2-groovy-3.0/396867de1bbbe11e85e197c22f0e6de07643185a/spock-core-2.0-M2-groovy-3.0.jar!/META-INF/services/org.codehaus.groovy.transform.ASTTransformation because of exception org.spockframework.util.IncompatibleGroovyVersionException: The Spock compiler plugin cannot execute because Spock 2.0.0-M2-groovy-3.0 is not compatible with Groovy 2.5.6. For more information, see http://docs.spockframework.org Spock artifact: file:/Users/reinaldoluckman/.gradle/caches/modules-2/files-2.1/org.spockframework/spock-core/2.0-M2-groovy-3.0/396867de1bbbe11e85e197c22f0e6de07643185a/spock-core-2.0-M2-groovy-3.0.jar Groovy artifact: file:/Users/reinaldoluckman/.sdkman/candidates/grails/4.0.4/lib/org.codehaus.groovy/groovy/jars/groovy-2.5.6.jar
But in my project only Groovy 3 is a library.
Here is my build.gradle:
...ANSWER
Answered 2020-Oct-20 at 04:23A quick check shows that the current master of Geb still depends on spock-1.3-groovy-2.5, so I am not sure if you can use Geb with Spock 2.0. But it looks as if you cannot, see Geb issue #619. Consequently, you want to stick with Spock 1.3 and Groovy 2.5 for now.
QUESTION
In a fresh grails 4.0.4 application the settings of
...ANSWER
Answered 2020-Aug-25 at 06:17It works like a charm in Grails 4.0.3. Seems it is broken in Grails 4.0.4 ...
Maybe the problem came with the new Groovy Page Compiler Task. The config file (aka application.yml
) variable here is never used. But that's only an assumption after quick investigation with too little coffee ;-)
Some helper TagLib like this:
QUESTION
I'm trying to run my grails 4 application and I'm constantly getting this stacktrace:
...I did my research but I didn't find any working solution
ANSWER
Answered 2020-Jul-06 at 10:14We had two problems:
- we had declaration MessageSource messageSource in domain classes without having it in transient
- we had
@Transactional(readonly = true)
in domain class
The solution was to remove both cases from code.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install grails-core
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page