17,278 questions
0
votes
1
answer
64
views
Default URL redirection after login
When logging in with a FormClient how can I change the default URL I get redirected to ?
It seems to be "/" by default. Is this the same thing as "callback URL" ?
0
votes
0
answers
30
views
Play Framework 2.9 upgrade: getMinKeyLength method not found due to io.jsonwebtoken version conflict
I am upgrading my Play Framework project from version 2.8 to 2.9. As part of this, I upgraded my Java version to OpenJDK 17 and updated my build.sbt and plugins.sbt files accordingly.
The project ...
0
votes
1
answer
96
views
Migration to playframework 3.0 - Error while emitting Routes.scala
I try to migrate old playframework 2.8 to 3.0.8 (jdk 11 -> jdk 21).
And when try to compile: ./sbt clean compile see this error:
[error] Error while emitting Routes.scala
[error] assertion failed: ...
0
votes
1
answer
70
views
play-pac4j: keep track of active sessions
What's the difference between PlayCacheSessionStore and PlayCookieSessionStore. I mean I understand that one stores data with play cache and the other stores data in cookie but I'm not sure to ...
-1
votes
0
answers
57
views
Newest Java 24 can't run Play because of class file version mismatch [duplicate]
I've created a project that ran perfectly fine 2 weeks ago with Scala and Play Framework. It worked, but now it doesn't, but the error confuses me a lot. I used Java 24 and also tested on Java 17, but ...
0
votes
0
answers
21
views
Using the data of the children to order with eBean fails
I have two ebean object in Playframework 3.0.5 and ebean 3.0.0.
MessageThread, which has MessageItems:
In MessageThread:
@OrderBy("addDate ASC")
@OneToMany(mappedBy = "thread", ...
0
votes
1
answer
59
views
play.api.UnexpectedException: Unexpected exception[NoClassDefFoundError: javax/validation/ConstraintValidatorFactory]
Title:
Migration Issue to Play Framework 3.0.0: NoClassDefFoundError: javax/validation/ConstraintValidatorFactory
Body:
I'm migrating a Play Framework application from 2.9.4 to 3.0.0 to adopt Jakarta ...
1
vote
3
answers
192
views
How to write for play framework scala 3 enums reads, writes and format
I could see many threads pointing to solutions for Playframework json to work with scala 2 enums but none I could get working for scala 3 enums. Tried below solutions but not working
case class A(freq:...
0
votes
1
answer
58
views
Testing play framework controller with multipartdata
He guys,
I'm having issues with testing play controller that handles multipart form data. It expects text field and some files.
The controller uses temporary files def insert(): Action[...
1
vote
0
answers
67
views
Storing secrets in Play Framework
I am currently migrating all my auth related microservices from Node.js to Scala 2.13 and Play.
Where do you actually store your various password (like DB login, JWT secret, etc.) in your play ...
0
votes
0
answers
94
views
Play Framework 3.0.5 and jackson-databind version 2.17.0
I have a Play Framework 3.0.5 project on which I needed to update a module which has a requirement for jackson-databind version 2.17.0.
Since get the following error, and don't seem to be able to find ...
0
votes
1
answer
63
views
Scala/Play cant find custom library
I am a Scala beginner, having some initial issues with classpaths which I think may stem from sbt.
play.api.PlayException: Execution exception[[InjectionException: Injection error, interface my....
0
votes
1
answer
83
views
Sbt FlywayMigrate Command Hanging after Upgrading Flyway Sbt
After upgrading flyway-sbt from 7.4.0 to 9.22.0 the sbt flywayMigrate command now hangs, e.g. | => root / flywayMigrate {x}s . In our migration scripts, we are creating the indexes concurrently.
...
1
vote
0
answers
82
views
SAXParseException Being Thrown When Attempting to Upgrade From Scala 2.12.20 to 2.13.0
We're attempting to upgrade our Scala app from 2.12.20 to 2.13.0 but as soon as we do, we get the following error when trying to compile:
[error] (update) org.xml.sax.SAXParseException; lineNumber: 1; ...
0
votes
1
answer
51
views
GuiceApplicationBuilder and PlayTest tests erroring with play/Configuration not found on run path
We have our Playframework tests setup with fakeApplication using GuiceApplicationBuilder
class BaseSpec extends AnyFunSpec/PlaySpec with GuiceOneAppPerSuite {
override def fakeApplication(): ...