Comments (12)
When using Play 2.9.2 you do not have to add guice yourself. Just make sure you have libraryDependencies += guice
then Guice 6.0 will be pulled in automatically from Play itself.
from playframework.
Play 2.8 does not support Java 17 out of the box, you need to upgrade guice yourself to make it work, see this guide:
https://github.com/playframework/playframework/releases/tag/2.8.15#user-content-java17
If you say you also tried with Play 2.9.2, did you run sbt clean
before or remove the target
folder before?
I am pretty sure Play 2.9.2 with Java 17 works well.
from playframework.
yeah, I did try deleting the target folder and did sbt clean before compile
from playframework.
Can you post your build.sbt
and project/plugins.sbt
? And/or run sbt dependencyTree
so we find out which dependencies get pull in?
from playframework.
Can you please let me know what is the guice version while using paly 2.9.2?
Currently it is "com.google.inject" % "guice" % "4.2.3",
from playframework.
dependencyTree.txt
plugins.txt
build.txt
from playframework.
Let me know if it works, so we can close this issue, thanks!
from playframework.
It didn't work, I still see the same exception
from playframework.
So, in the logs you posted you still use Play 2.8.16
.
If you want to use Ply 2.8 and Java 17 you have to add following dependencies listed here: https://github.com/playframework/playframework/releases/tag/2.8.15#user-content-java17
Just add
// In your build.sbt add:
libraryDependencies ++= Seq(
"com.google.inject" % "guice" % "5.1.0",
"com.google.inject.extensions" % "guice-assistedinject" % "5.1.0"
)
libraryDependencies += "net.jodah" % "typetools" % "0.6.3"
to your build.sbt
from playframework.
I have changed it to 2.9.2, addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.8.16") this remains same, right? or should I change the plugin
from playframework.
I have added this
//libraryDependencies += guice
libraryDependencies ++= Seq(
"com.google.inject" % "guice" % "5.1.0",
"com.google.inject.extensions" % "guice-assistedinject" % "5.1.0"
)
libraryDependencies += "net.jodah" % "typetools" % "0.6.3"
Got the below error:
[error] (update) lmcoursier.internal.shaded.coursier.error.FetchError$DownloadingArtifacts: Error fetching artifacts:
[error] https://repo1.maven.org/maven2/com/google/inject/guice/5.1.0/guice-5.1.0-no_aop.jar: not found: https://repo1.maven.org/maven2/com/google/inject/guice/5.1.0/guice-5.1.0-no_aop.jar
from playframework.
I took your config from above's comment and made it work with Play 2.9.2. I uploaded the result in to this repo https://github.com/mkurz/playframework-12630
You can see what I changed here: mkurz/playframework-12630@ea5dcc1
This is 100% not a bug in Play but you just messed up the config.
from playframework.
Related Issues (20)
- Replace `3.0.x` with next version HOT 5
- SSL certificate for www.playframework.com is expired HOT 2
- Search in documentation does not work HOT 1
- Support for Partitioned cookie attribute (AKA CHIPS) / make cookies more flexibel HOT 1
- Asset changes in subprojects HOT 2
- Recommend Scala Metals + VSCode as an IDE on this page: https://www.playframework.com/documentation/2.9.x/IDE HOT 1
- Timeout issue when using AsyncCacheApi and custom http filter HOT 2
- [2.8.20] CVE-2023-44487 in akka-http-core HOT 1
- Support for Application Secret rotation
- play 2.9 is trying to fetch guice-6.0.0-no_aop jar, caused not found error HOT 6
- Play gradle plugin fails to create playRun task when no compileScala task found in a project
- Dependency Dashboard
- Apache Pekko doesn't support autogenerated TLS certs HOT 1
- Application secret from env variable does not work HOT 3
- [UncheckedExecutionException: java.lang.IllegalStateException: Unable to load cache item] HOT 2
- Sbt dist command creates invalid .bat file under Windows HOT 2
- Gitandpio HOT 1
- Android HOT 1
- Brosver HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from playframework.