Comments (4)
I make a project like the simple of 3.0-M7
but it has some errors:
! @73fdc6a99 - Internal server error, for (GET) [/] ->
play.api.UnexpectedException: Unexpected exception[ProvisionException: Unable to provision, see the following errors:
1) No implementation for securesocial.core.RuntimeEnvironment was bound.
while locating securesocial.core.RuntimeEnvironment
for parameter 1 at controllers.CustomLoginController.<init>(CustomLoginController.scala:12)
while locating controllers.CustomLoginController
for parameter 11 at router.Routes.<init>(Routes.scala:67)
while locating router.Routes
while locating play.api.inject.RoutesProvider
while locating play.api.routing.Router
for parameter 0 at play.api.http.JavaCompatibleHttpRequestHandler.<init>(HttpRequestHandler.scala:200)
while locating play.api.http.JavaCompatibleHttpRequestHandler
while locating play.api.http.HttpRequestHandler
for parameter 4 at play.api.DefaultApplication.<init>(Application.scala:221)
at play.api.DefaultApplication.class(Application.scala:221)
while locating play.api.DefaultApplication
while locating play.api.Application
1 error]
at play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(DevServerStart.scala:180)
at play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(DevServerStart.scala:131)
at scala.Option.map(Option.scala:146)
at play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1$$anonfun$apply$1.apply(DevServerStart.scala:131)
at play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1$$anonfun$apply$1.apply(DevServerStart.scala:129)
at scala.util.Success.flatMap(Try.scala:231)
at play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1.apply(DevServerStart.scala:129)
at play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1.apply(DevServerStart.scala:121)
at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
Caused by: com.google.inject.ProvisionException: Unable to provision, see the following errors:
1) No implementation for securesocial.core.RuntimeEnvironment was bound.
while locating securesocial.core.RuntimeEnvironment
for parameter 1 at controllers.CustomLoginController.<init>(CustomLoginController.scala:12)
while locating controllers.CustomLoginController
for parameter 11 at router.Routes.<init>(Routes.scala:67)
while locating router.Routes
while locating play.api.inject.RoutesProvider
while locating play.api.routing.Router
for parameter 0 at play.api.http.JavaCompatibleHttpRequestHandler.<init>(HttpRequestHandler.scala:200)
while locating play.api.http.JavaCompatibleHttpRequestHandler
while locating play.api.http.HttpRequestHandler
for parameter 4 at play.api.DefaultApplication.<init>(Application.scala:221)
at play.api.DefaultApplication.class(Application.scala:221)
while locating play.api.DefaultApplication
while locating play.api.Application
1 error
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1025)
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1051)
at play.api.inject.guice.GuiceInjector.instanceOf(GuiceInjectorBuilder.scala:405)
at play.api.inject.guice.GuiceInjector.instanceOf(GuiceInjectorBuilder.scala:400)
at play.api.inject.guice.GuiceApplicationBuilder.build(GuiceApplicationBuilder.scala:123)
at play.api.inject.guice.GuiceApplicationLoader.load(GuiceApplicationLoader.scala:21)
at play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1$$anonfun$apply$1$$anonfun$1$$anonfun$2.apply(DevServerStart.scala:168)
at play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1$$anonfun$apply$1$$anonfun$1$$anonfun$2.apply(DevServerStart.scala:164)
at play.utils.Threads$.withContextClassLoader(Threads.scala:21)
at play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(DevServerStart.scala:164)
from securesocial.
@tigaly it seems you are not binding your RuntimeEnvironment properly. Did you define a module with the bindings and registered it in the application.conf file?
See https://github.com/jaliss/securesocial/blob/master/samples/scala/demo/app/DemoModule.scala and https://github.com/jaliss/securesocial/blob/master/samples/scala/demo/conf/application.conf#L13.
Let me know if this helps.
from securesocial.
BTW this is an old post but can clarify some things as well: http://www.filtercode.com/play/play-scala-securesocial. See the sample apps as well since some comments in that post might not be valid any more. Will try to update the docs soon.
from securesocial.
@jaliss thanks a lot
I miss "play.modules.enabled += "DemoModule"" in the application.conf....
from securesocial.
Related Issues (20)
- Build breaks after new release. HOT 3
- Security: password reset email host injection HOT 2
- Facebook oauth token format change causes error (suspected) HOT 3
- Getting weird issue with email sending
- Inconsistent error from Facebook Sign-in
- Ready-made Backend
- compatible HOT 2
- Control the number of rest API calls with securesocial HOT 1
- Support Play 2.6 HOT 2
- scala 2.12 HOT 1
- After hitting the /logout api, Session is not getting cleared it is only redirecting to login_page. And i am able to login again with the same token id HOT 1
- Add cookie SameSite HOT 1
- Can't use with Scala 2.12 HOT 4
- Ambiguous implicit values HOT 1
- Action Not Found For request 'GET /authenticate/github? HOT 1
- Documentation has not been update for play 2.6
- push secure social jar with support for play 2.6 to maven
- NoSuchFieldError: state (facebook provider error) HOT 1
- Looking for a maintainer?
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 securesocial.