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

Investigate why play-pac4j-java-demo is not working with Scala 3 #12870

Open
mkurz opened this issue Sep 27, 2024 Discussed in #12867 · 0 comments
Open

Investigate why play-pac4j-java-demo is not working with Scala 3 #12870

mkurz opened this issue Sep 27, 2024 Discussed in #12867 · 0 comments

Comments

@mkurz
Copy link
Member

mkurz commented Sep 27, 2024

Discussed in https://github.com/orgs/playframework/discussions/12867

Originally posted by HenningHeinz September 25, 2024
Dear Community,

I first posted this on
https://stackoverflow.com/questions/79019063/the-latest-pac4j-play-framework-3-java-demo-does-not-compile-start

but the error message seem to be based on a change in Play Framework (3 Java). I am using Pac4J Security library and the recent demo application release does not run / compile on my JDK 17, Linux environment, Pekko engine).

[NoSuchMethodError: 'void play.api.mvc.EssentialFilter.$init$(play.api.mvc.EssentialFilter)']

org.pac4j.play.filters.SecurityFilter.<init>(SecurityFilter.scala:63)
org.pac4j.play.filters.SecurityFilter$$FastClassByGuice$$c834f8.GUICE$TRAMPOLINE(<generated>)
org.pac4j.play.filters.SecurityFilter$$FastClassByGuice$$c834f8.apply(<generated>)
     com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:82)
     com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114)
     com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
[...]

2.9.5 works with pac4j-play, but complains that it is missing the jakarta.x.validation class (documented in the migration guide though).

The problem should be reproducible by compiling the demo app from github.
https://github.com/pac4j/play-pac4j-java-demo

Any help/feedback is appreciated.

Thanks in advance.

Henning

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

1 participant