jaliss/securesocial — Issue #26: Duplicate provider registration when running in eclipse
Author: francisdb
Created: 2012-01-26 19:15:47+00:00
State: open

Could be gae-enabled problem, not sure

How to reproduce
play eclipsify
load project in eclipse
Use the generated .launch file to start the server in eclipse

When opening the first page I get this

Listening for transport dt_socket at address: 8000
20:11:21,146 INFO ~ Starting /home/francisdb/workspace/xxx
20:11:21,153 INFO ~ Module analytics is available (/home/francisdb/workspace/caramblaplay/mods/analytics)
20:11:21,153 INFO ~ Module securesocial is available (/home/francisdb/workspace/xxx/modules/securesocial-0.2.3)
20:11:21,154 INFO ~ Module less is available (/home/francisdb/workspace/xxx/modules/less-0.3)
20:11:21,154 INFO ~ Module gae is available (/home/francisdb/workspace/xxx/modules/gae-1.4)
20:11:22,392 WARN ~
20:11:22,392 WARN ~ Google App Engine module
20:11:22,392 WARN ~ ~~~~~~~~~~~~~~~~~~~~~~~
20:11:22,392 WARN ~ No Google App Engine environment found. Setting up a development environement
20:11:22,403 WARN ~
20:11:22,403 INFO ~ Detected that plugin 'play.modules.gae.GAEPlugin@353c375' disabled the plugin 'play.jobs.JobsPlugin@56c163f' the old way - should use Play.disablePlugin()
20:11:22,480 WARN ~ Using implementation version: Rhino 1.6 release 7 2007 08 19
20:11:22,975 WARN ~ You're running Play! in DEV mode
20:11:23,045 INFO ~ Listening for HTTP on port 9000 (Waiting a first request to start) ...
20:11:31,609 INFO ~ Registered Identity Provider: facebook
20:11:31,611 INFO ~ Using custom user service: class controllers.UserService
20:11:31,614 ERROR ~ Tried to register provider for type: facebook but it is registered already. Providers: {facebook=facebook}
20:11:33,175 ERROR ~

@697g8dnao
Internal Server Error (500) for request GET /

Oops: RuntimeException
An unexpected error occured caused by exception RuntimeException: There is already a provider registered for type: facebook

play.exceptions.UnexpectedException: Unexpected Error
at play.Play.start(Play.java:545)
at play.Play.detectChanges(Play.java:618)
at play.Invoker$Invocation.init(Invoker.java:198)
at Invocation.HTTP Request(Play!)
Caused by: java.lang.RuntimeException: There is already a provider registered for type: facebook
at securesocial.provider.ProviderRegistry.register(ProviderRegistry.java:46)
at securesocial.plugin.SecureSocialPlugin.onApplicationStart(SecureSocialPlugin.java:58)
at play.plugins.PluginCollection.onApplicationStart(PluginCollection.java:480)
at play.Play.start(Play.java:515)
... 3 more