giangio
03/03/2025, 4:34 PMrss
03/03/2025, 8:24 PMgaolei
03/06/2025, 1:35 PMCaused by: java.lang.NoClassDefFoundError: org.grails.web.sitemesh.GroovyPageLayoutFinder
at org.codehaus.groovy.ast.decompiled.AsmReferenceResolver.resolveClass(AsmReferenceResolver.java:46)
at org.codehaus.groovy.ast.decompiled.AsmReferenceResolver.resolveNonArrayType(AsmReferenceResolver.java:79)
at org.codehaus.groovy.ast.decompiled.AsmReferenceResolver.resolveType(AsmReferenceResolver.java:70)
at org.codehaus.groovy.ast.decompiled.MemberSignatureParser.resolve(MemberSignatureParser.java:172)
at org.codehaus.groovy.ast.decompiled.MemberSignatureParser.createMethodNode(MemberSignatureParser.java:64)
at org.codehaus.groovy.ast.decompiled.DecompiledClassNode.lambda$createMethodNode$1(DecompiledClassNode.java:267)
at org.codehaus.groovy.ast.decompiled.DecompiledClassNode.createMethodNode(DecompiledClassNode.java:273)
at org.codehaus.groovy.ast.decompiled.DecompiledClassNode.lazyInitMembers(DecompiledClassNode.java:240)
at org.codehaus.groovy.ast.decompiled.DecompiledClassNode.getFields(DecompiledClassNode.java:218)
at org.codehaus.groovy.classgen.VariableScopeVisitor.findClassMember(VariableScopeVisitor.java:176)
at org.codehaus.groovy.classgen.VariableScopeVisitor.findVariableDeclaration(VariableScopeVisitor.java:244)
at org.codehaus.groovy.classgen.VariableScopeVisitor.visitVariableExpression(VariableScopeVisitor.java:600)
at org.codehaus.groovy.ast.expr.VariableExpression.visit(VariableExpression.java:71)
at org.codehaus.groovy.ast.CodeVisitorSupport.visitBinaryExpression(CodeVisitorSupport.java:201)
at org.codehaus.groovy.classgen.VariableScopeVisitor.visitBinaryExpression(VariableScopeVisitor.java:463)
at org.codehaus.groovy.ast.expr.BinaryExpression.visit(BinaryExpression.java:60)
at org.codehaus.groovy.classgen.VariableScopeVisitor.visitDeclarationExpression(VariableScopeVisitor.java:543)
at org.codehaus.groovy.ast.expr.DeclarationExpression.visit(DeclarationExpression.java:89)
at org.codehaus.groovy.ast.CodeVisitorSupport.visitExpressionStatement(CodeVisitorSupport.java:117)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitExpressionStatement(ClassCodeVisitorSupport.java:204)
at org.codehaus.groovy.ast.stmt.ExpressionStatement.visit(ExpressionStatement.java:41)
at org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisitorSupport.java:86)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(ClassCodeVisitorSupport.java:168)
at org.codehaus.groovy.classgen.VariableScopeVisitor.visitBlockStatement(VariableScopeVisitor.java:423)
at org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:72)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClassCodeContainer(ClassCodeVisitorSupport.java:142)
at org.codehaus.groovy.classgen.VariableScopeVisitor.visitConstructorOrMethod(VariableScopeVisitor.java:412)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitMethod(ClassCodeVisitorSupport.java:110)
at org.codehaus.groovy.ast.ClassNode.visitMethods(ClassNode.java:1132)
at org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:1125)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass(ClassCodeVisitorSupport.java:52)
at org.codehaus.groovy.classgen.VariableScopeVisitor.visitClass(VariableScopeVisitor.java:371)
at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1310)
at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:258)
at org.codehaus.groovy.tools.javac.JavaAwareCompilationUnit.lambda$new$0(JavaAwareCompilationUnit.java:82)
at org.codehaus.groovy.control.CompilationUnit$IPrimaryClassNodeOperation.doPhaseOperation(CompilationUnit.java:938)
... 34 more
Caused by: java.lang.NoClassDefFoundError: org.grails.web.sitemesh.GroovyPageLayoutFinder
at org.codehaus.groovy.ast.decompiled.AsmReferenceResolver.resolveClass(AsmReferenceResolver.java:46)
at org.codehaus.groovy.ast.decompiled.AsmReferenceResolver.resolveNonArrayType(AsmReferenceResolver.java:79)
at org.codehaus.groovy.ast.decompiled.AsmReferenceResolver.resolveType(AsmReferenceResolver.java:70)
at org.codehaus.groovy.ast.decompiled.MemberSignatureParser.resolve(MemberSignatureParser.java:172)
at org.codehaus.groovy.ast.decompiled.MemberSignatureParser.createMethodNode(MemberSignatureParser.java:64)
at org.codehaus.groovy.ast.decompiled.DecompiledClassNode.lambda$createMethodNode$1(DecompiledClassNode.java:267)
at org.codehaus.groovy.ast.decompiled.DecompiledClassNode.createMethodNode(DecompiledClassNode.java:273)
at org.codehaus.groovy.ast.decompiled.DecompiledClassNode.lazyInitMembers(DecompiledClassNode.java:240)
at org.codehaus.groovy.ast.decompiled.DecompiledClassNode.getFields(DecompiledClassNode.java:218)
at org.codehaus.groovy.classgen.VariableScopeVisitor.findClassMember(VariableScopeVisitor.java:176)
at org.codehaus.groovy.classgen.VariableScopeVisitor.findVariableDeclaration(VariableScopeVisitor.java:244)
at org.codehaus.groovy.classgen.VariableScopeVisitor.visitVariableExpression(VariableScopeVisitor.java:600)
at org.codehaus.groovy.ast.expr.VariableExpression.visit(VariableExpression.java:71)
at org.codehaus.groovy.ast.CodeVisitorSupport.visitBinaryExpression(CodeVisitorSupport.java:201)
at org.codehaus.groovy.classgen.VariableScopeVisitor.visitBinaryExpression(VariableScopeVisitor.java:463)
at org.codehaus.groovy.ast.expr.BinaryExpression.visit(BinaryExpression.java:60)
at org.codehaus.groovy.classgen.VariableScopeVisitor.visitDeclarationExpression(VariableScopeVisitor.java:543)
at org.codehaus.groovy.ast.expr.DeclarationExpression.visit(DeclarationExpression.java:89)
at org.codehaus.groovy.ast.CodeVisitorSupport.visitExpressionStatement(CodeVisitorSupport.java:117)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitExpressionStatement(ClassCodeVisitorSupport.java:204)
at org.codehaus.groovy.ast.stmt.ExpressionStatement.visit(ExpressionStatement.java:41)
at org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisitorSupport.java:86)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(ClassCodeVisitorSupport.java:168)
at org.codehaus.groovy.classgen.VariableScopeVisitor.visitBlockStatement(VariableScopeVisitor.java:423)
at org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:72)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClassCodeContainer(ClassCodeVisitorSupport.java:142)
at org.codehaus.groovy.classgen.VariableScopeVisitor.visitConstructorOrMethod(VariableScopeVisitor.java:412)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitMethod(ClassCodeVisitorSupport.java:110)
at org.codehaus.groovy.ast.ClassNode.visitMethods(ClassNode.java:1132)
at org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:1125)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass(ClassCodeVisitorSupport.java:52)
at org.codehaus.groovy.classgen.VariableScopeVisitor.visitClass(VariableScopeVisitor.java:371)
at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1310)
at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:258)
at org.codehaus.groovy.tools.javac.JavaAwareCompilationUnit.lambda$new$0(JavaAwareCompilationUnit.java:82)
at org.codehaus.groovy.control.CompilationUnit$IPrimaryClassNodeOperation.doPhaseOperation(CompilationUnit.java:938)
... 34 more
what could be possibly wrong here?Arjang
03/08/2025, 1:18 PMrss
03/08/2025, 4:14 PMgsandrew
03/12/2025, 11:20 PMJosé Ignacio Seluy
03/13/2025, 12:49 PMmailService.sendMail {
to "<mailto:your@name.com|your@name.com>"
from "fromEmail"
subject "titleMail"
html view: "/email/auth/verificationCode", model: [:]
}
i get the following error:
Could not locate mail body /email/auth/verificationCode. Is it in a plugin? If so you must pass the plugin name in the [plugin] variable.
The view file is located at: grails-app/views/email/auth/verificationCode.gsp
The error is thrown when I run the project with the generated war.
I found that the plugin searchs for the file under "`/WEB-INF/grails-app/views/email/auth/verificationCode.gsp`"
BUT the generated war saves the file under "`WEB-INF/classes/email/auth/verificationCode.gsp`"
So I was wondering why the war structure changed from /WEB-INF/grails-app/views
to WEB-INF/classes/
.
Is it related to the change of project type (now rest-api and before web-app)?
If so, what other changes should I be aware of regarding this new project type?
And finally, but most important, how can I solve this issue to be able to use the Mail plugin?
Thank you all!
Slack Conversationrss
03/24/2025, 1:44 PMMauro Inagoki
03/24/2025, 9:44 PMList<InformacoesJob> jobs = getJobs()
InformacoesJob jobAExecutar = jobs.find { it.classe.canonicalName.equals(jobCanonicalName) }
if (!jobAExecutar) return
def jobBean = Holders.grailsApplication.getMainContext().getBean(jobAExecutar.classe.canonicalName)
error occurred while calling getBean():
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'classeTestJob' available
at io.micronaut.spring.context.factory.MicronautBeanFactory.doGetBean(MicronautBeanFactory.java:768)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:209)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1171)
at br.unisantos.jobs.JobDetectorService.executar(JobDetectorService.groovy:55)user
03/25/2025, 11:46 AM<form id="form-request-registration" controller="registrazione" role="form" action="GeneraRichiestaPdf" method="post" autocomplete="off">
When submit button is pressed, client makes POST request to /GeneraRichiestaPdf but I receive a 403 ‘not authorized’.
The application is a porting from Grails 4 to Grails 7.0.0-M3..Thomas Rasmussen
03/28/2025, 1:24 PM./gradlew check
I get the following error:
FAILURE: Build failed with an exception
Where:
Build file '/home/thomas/workspace/ufst/kuda/kuda/dataplatform/build.gradle' line 6
* What went wrong:
An exception occurred applying plugin request [id: 'org.grails.plugins.views-markup', version: '4.0.0M3']
> Failed to apply plugin 'org.grails.plugins.views-markup'.
> Could not create task ':dataplatform:compileGmlViews'.
> Could not create task of type 'MarkupViewCompilerTask'.
> The constructor for type MarkupViewCompilerTask should be annotated with @Inject.
The constructor is not marked with the Jakarta @Inject annotation (as the error says):
https://github.com/apache/grails-views/blob/7.0.x/views/gradle-plugin/src/main/groovy/grails/views/gradle/markup/MarkupViewCompilerTask.groovy#L27
Some of the other tasks have the annotation, fx:
https://github.com/apache/grails-views/blob/7.0.x/views/gradle-plugin/src/main/groovy/grails/views/gradle/json/JsonViewCompilerTask.groovy#L19
I don't know if that could be the error or if I have some other issue?rss
03/29/2025, 7:54 AMpbarker
03/31/2025, 6:29 PMclass Grandparent {
static hasMany = [ parents:Parent ]
}
// Joins the 'Child' instances to the 'Grandparent' instance.
class Mother extends Parent {
static belongsTo = [ grandparent:Grandparent ]
}
// The superclass that holds the 'Child' instances.
class Parent {
static hasMany = [ children:Child ]
}
class Child {
belongsTo = [
mother:Parent
]
}
So to find all the Child instances that belong to a particular Grandparent (via the Mother), I assumed I could do:
def c = Child.createCriteria()
def children = c.list {
mother {
grandparent {
eq('id', 1L) // Looking Grandparent[1].
}
}
}
But it keeps complaining about No signature of method grandparent.call()
.
I'm guessing it's because 'mother' is not an actual Hibernate table whereas 'Parent' is the actual table. But I don't have a 'parent' property in the Child...
Should I be looking at aliases, to try and encourage the query to look at the right column?
Any ideas?Dave
04/01/2025, 2:23 PMrss
04/02/2025, 1:34 AMRicardo
04/03/2025, 8:20 AMPeter Evans
04/03/2025, 10:31 AMlucarossi93
04/04/2025, 4:06 PMSlackbot
04/04/2025, 4:06 PMuser
04/05/2025, 10:22 AMGetting Started
> Optional: Set a Context Path
and what does the application will be available at:
and nothing after that means? https://docs.grails.org/7.0.0-M3/guide/single.html#introduction
If you want to set a context path for your application, create a configuration property in the "grails-app/conf/application.yml" file:
server:
servlet:
context-path: /myapp
With this configuration, the application will be available at:
Alternatively, you can also set the context path via the command line:
grails> run-app -Dgrails.server.servlet.context-path=/helloworld
user
04/05/2025, 10:25 AMthe application will be available at: <http://localhost:8080/myapp>
?Felipe
04/08/2025, 6:44 PMgrails run-app
, the first login (/j_spring_security_check
) and the first render after logging in take an unusually long time to complete.
According to the browser's network tab, the first login takes around 3 seconds, while the initial post-login render takes about 20 seconds. After this first interaction, performance returns to normal.
Any suggestions on how to improve this behavior and what might be causing it?Dylan Kolson
04/08/2025, 7:49 PMLET 463 [length: 36] [source_file: bootstrap.unminified.js]
Node(OBJECT_PATTERN): bootstrap.unminified.js:463:15
for (let {
Parent(DESTRUCTURING_LHS): bootstrap.unminified.js:463:15
for (let {
user
04/09/2025, 5:38 PMlraynal
04/17/2025, 2:38 PMCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grails.plugin.formfields.FormFieldsTagLib': Error creating bean with name 'beanPropertyAccessorFactory': Cannot resolve reference to bean 'validateableConstraintsEvaluator' while setting bean property 'constraintsEvaluator'
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'beanPropertyAccessorFactory': Cannot resolve reference to bean 'validateableConstraintsEvaluator' while setting bean property 'constraintsEvaluator'
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validateableConstraintsEvaluator': FactoryBean threw exception on object creation
Caused by: java.lang.NullPointerException: Cannot get property 'config' on null object
rss
04/17/2025, 4:24 PMuser
04/17/2025, 11:59 PMrss
04/18/2025, 5:24 PMbilgehan
04/22/2025, 9:38 AMgopichand.bhaskaruni
04/29/2025, 7:15 PMExecution failed for task ':citss-web:compileFunctionalTestGroovy'.
> Unrecoverable compilation error: startup failed:
General error during instruction selection: java.lang.NoClassDefFoundError: org.openqa.selenium.interactions.HasInputDevices
java.lang.RuntimeException: java.lang.NoClassDefFoundError: org.openqa.selenium.interactions.HasInputDevices