Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UserPasswordEncoderListener.groovy: 8: unable to resolve class grails.events.annotation.gorm.Listener #996

Closed
muehlboeck opened this issue Jan 4, 2024 · 5 comments

Comments

@muehlboeck
Copy link

Expected Behavior

application should run with
./gradlew bootRun

Actual Behaviour

./gradlew bootRun fails with:
UserPasswordEncoderListener.groovy: 8: unable to resolve class grails.events.annotation.gorm.Listener

Steps To Reproduce

sdk use grails 6.1.1
sdk use groovy 3.0.11
sdk use java 11.0.21-sem

grails create-app test
cd test
create file grails-app/conf/spring/resources.groovy
with content:
beans = {
}

./gradlew runCommand "-Pargs=s2-quickstart me.test.main User Role"

will complete

but:

./gradlew bootRun

fails

Environment Information

linux 22.04
sdk use grails 6.1.1
sdk use groovy 3.0.11
sdk use java 11.0.21-sem

Example Application

No response

Version

6.1.1

@matrei
Copy link
Contributor

matrei commented Jan 5, 2024

Should be fixed when 6.1.2 is released.

Can be worked around by adding:

implementation 'org.grails.plugins:events:5.0.2'
implementation 'org.grails.plugins:async:5.0.2'

Related grails/grails-core#13324 and grails/grails-core#13331

@muehlboeck
Copy link
Author

muehlboeck commented Jan 5, 2024 via email

@ewcole
Copy link

ewcole commented Nov 26, 2024

It is still a problem in Grails 6.2.2. Fortunately, matrei's workaround is still a solution.

@matrei
Copy link
Contributor

matrei commented Nov 26, 2024

The actual problem is in grails-spring-security-core. It is fixed in #1005 but there has not been a release with that change. If you update to org.grails.plugins:spring-security-core:6.1.2-SNAPSHOT it should work.

@matrei matrei mentioned this issue Nov 26, 2024
@jamesfredley
Copy link
Contributor

org.grails.plugins:spring-security-core:6.1.2 has been released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants